Hi Paul i just read back (z-Buffer) and trace for each pixel in the final frame a ray into the scene for shadow trace. :-) then i blend the shadow map and the frame buffer (color) for the final rendering :-)
/adrian 2008/7/16 Paul Melis <[EMAIL PROTECTED]>: > Adrian Egli OpenSceneGraph (3D) wrote: > >> Hi, >> get the code i wrote (kdTree challenge...) , then you will have also >> shadows :-) and multi-thread support :-) >> > I didn't notice your "challenge" was about ray-tracing. Interesting way of > transitioning from OSG rendering to raytraced rendering. It looks like you > put in a lot of effort to handle materials and such correctly, so that the > raytraced version comes close to realtime rendering. Or am I > misunderstanding the two "modes" of rendering and is the one during > interaction also raytraced, but without shadows and only simple shading? > > Paul > >> >> /regards >> adrian >> >> 2008/7/16 Kim C Bale <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>: >> >> Very tidy I like it! >> >> Kim. >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]> >> [mailto:[EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>] On Behalf Of Paul >> Melis >> Sent: 15 July 2008 22:51 >> To: OpenSceneGraph Users >> Subject: [osg-users] Little ray-tracing example using the KD-tree >> >> Hi all, >> >> Here's a small thingy that (ab)uses the new intersection code to >> do ray >> tracing, for a single viewpoint (i.e. not interactive) with shadows. >> See the attached screenshots for normal OSG rendering versus >> ray-traced >> rendering. See the source for a few instructions on use. >> >> Bye, >> Paul >> >> >> >> ***************************************************************************************** >> To view the terms under which this email is distributed, please go >> to http://www.hull.ac.uk/legal/email_disclaimer.html >> >> >> ***************************************************************************************** >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> <mailto:osg-users@lists.openscenegraph.org> >> >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> >> >> >> -- >> ******************************************** >> Adrian Egli >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- ******************************************** Adrian Egli
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org