hi list,
how does the render order in stereo (red/green) mode behave? it seems the green channel is rendered after everything else. is that right?
look into the pd line subpatch.
m.
Max wrote:
hi list,
how does the render order in stereo (red/green) mode behave? it seems the green channel is rendered after everything else. is that right?
look into the pd line subpatch.
yes. rendering in anaglyph stereo mode looks like: - render the entire[1] scene for the left eye in red - clear the depth buffer - render the entire scene for the right eye in green
[1] "entire" is the same "entire" as in mono mode. first all the positive renderorders, and then all the negative ones
though i'm not sure what you expected in the line subpatch.
fgamsdr IOhannes
Am 11.01.2010 um 12:43 schrieb IOhannes m zmoelnig:
Max wrote:
hi list,
how does the render order in stereo (red/green) mode behave? it seems the green channel is rendered after everything else. is that right?
look into the pd line subpatch.
yes. rendering in anaglyph stereo mode looks like:
- render the entire[1] scene for the left eye in red
- clear the depth buffer
- render the entire scene for the right eye in green
[1] "entire" is the same "entire" as in mono mode. first all the positive renderorders, and then all the negative ones
though i'm not sure what you expected in the line subpatch.
if you connect the gemhead in [pd line] it displays a horizontal line to indicate where the image is read. but since the green is rendered after it blocks the reading - see the tables after enabling the line. is there a solution or workaround for this? meaning still showing a line, but having a reading in the green channel. i've tried making the gemhead negative or the line blue but that doesnt' help.
m.
Max wrote:
if you connect the gemhead in [pd line] it displays a horizontal line to indicate where the image is read. but since the green is rendered after it blocks the reading - see the tables after enabling the line. is there a solution or workaround for this? meaning still showing a line, but having a reading in the green channel. i've tried making the gemhead negative or the line blue but that doesnt' help.
i see. (since there are no speakers connected, i didn't hear...) i completely missed the pix_snap/pix_data part.
anyhow.
when doing stereoscopic rendering, each [gemhead] will emit 2 rendermessages per cycle. the first message is for the left eye, the 2nd is for the right eye. the result you get are for the 2nd eye, since you simply overwrite the 1st value you get. so: by intelligent use of [spigot]s, [delay]s and whatnot you can make sure that only the left (first) view is taken into account (before the annoying rectangle is rendered).
the even simpler alternative would be to change the rectangle: either make it a rectangle outline (so the actual values are still visible), or move it a bit, so the pixels read are "just" visible...
bmadsr IOhannes