Page 1 of 1
Anaglyph
Posted: Fri Feb 06, 2009 1:33 pm
by Kjell
Simple double pass rendering example. Use arrow keys to navigate. The trick is to calculate the translation Matrix for the "eyes" and offset the OnRender components for both passes. Should have thought about this when that Gamma3D event was still upcoming
A FBO / RenderFBO and SetRenderTarget ( that you can set to a FBO or Default ) component would still be valueable though
K
Posted: Fri Feb 06, 2009 2:24 pm
by jph_wacheski
Very nice,. If onlt I had some colored glasses to enjoy the 3D effects.
So you are moveing the camera position in between drawing each pass,. or everything else??
Posted: Fri Feb 06, 2009 2:32 pm
by Kjell
Hi jph,
There currently is no way to change the build-in camera properties halfway a render pass as far as I know ( the values are only read once at the beginning of OnRender ). In this particular example the App.Camera properties are always zero, but you could add multiple passes to each individual Model as well ( although I did experience problems with RenderSetColor in a Repeated Condition when taking that route ).
K