ryanslikesocool/Anaglyph3D

dark objects

Opened this issue · 2 comments

dear ryan,
thanks for your continued work on this! the last update fixed the transparency issue but intruduced a new one:
dark (or black) objects will have their anaglyph red&cyan channels in the same darkness as the object itself, resulting in sometimes black objects with anaglyph channels that are also black (depending on the material settings).
my current scene is abstract and has a totally white skybox with black lines – resulting in those lines appearing tripled (instead of black + red + cyan).
this worked great in the old version (v1), i suppose because the way the channels were derived differed from the new one.
do you think there's a solution to this?
thanks so much in advance!!!

I'm not able to reproduce your skybox issue. Though I did some testing and it seems that skyboxes don't work at all with the effect. I'm fairly certain it's due to the way Unity handles it, since it's not included in any render layers. The old version didn't work with skyboxes either.
What you're describing with the tripled lines shouldn't be happening other part of the skybox is white. Can you attach an image of what's happening?
I'll take a closer look at it soon (hopefully), but in the meantime, a workaround would be to attach a sphere with flipped normals to the camera to mimic a skybox.

Regarding the darker areas, that's technically correct, and it's how the old version worked, except I didn't actually handle the overlay correctly in version 1. It's been bugging me too and I've been looking into it.

I'll let you know if I discover anything 🙂

hi ryan,
the skybox is actually not that important – i'm using a solid color anyway. thanks for the suggestion regarding the sphere.
however i did have anaglyph results with black lines before,
i'm attaching 2 screenshots – first one from v1.3, the other from the recent 2.x

anaglyph1 3
anaglyph2 0
they are rather minimalist but i hope you see what i mean 😅
these lines are in motion, so i could not capture the exact same scene …

so am i understanding you correctly that both the old and new version worked the same way? so what is the reason that the dark lines did have anaglyph channels displayed in the old one?

it took me some time because i had to reconstruct the old settings with a duplicate project, sorry for the late response!
kind regards & thanks you!!!!
c

ps: the settings are different in the two versions, but as far as i can tell the triple lines in picture no.2 are what should be the main image channel plus red and cyan anaglyph channels!