[osg-users] Little ray-tracing example using the KD-tree

Adrian Egli OpenSceneGraph (3D) 3dhelp at gmail.com
Wed Jul 16 07:42:51 PDT 2008


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 <paul at science.uva.nl>:

> 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 <K.Bale at hull.ac.uk <mailto:K.Bale at hull.ac.uk>>:
>>
>>    Very tidy I like it!
>>
>>    Kim.
>>
>>    -----Original Message-----
>>    From: osg-users-bounces at lists.openscenegraph.org
>>    <mailto:osg-users-bounces at lists.openscenegraph.org>
>>    [mailto:osg-users-bounces at lists.openscenegraph.org
>>    <mailto:osg-users-bounces at lists.openscenegraph.org>] 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 at lists.openscenegraph.org
>>    <mailto:osg-users at lists.openscenegraph.org>
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>>
>>
>> --
>> ********************************************
>> Adrian Egli
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
********************************************
Adrian Egli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080716/7f9892ba/attachment-0003.htm>


More information about the osg-users mailing list