Anaglyph

Share your ZGE-development tips and techniques here!

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1876
Joined: Sat Feb 23, 2008 11:15 pm

Anaglyph

Post by Kjell »

8)

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 :roll:

A FBO / RenderFBO and SetRenderTarget ( that you can set to a FBO or Default ) component would still be valueable though :)

K
Attachments
Anaglyph.zip
(40.92 KiB) Downloaded 531 times
User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

Post 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??
iterationGAMES.com
User avatar
Kjell
Posts: 1876
Joined: Sat Feb 23, 2008 11:15 pm

Post 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
Post Reply