Hi J-S, yeah, it would be great if the osg system could be built with participating media in mind, even though not necessarily implemented. Myself, i've done some osg raytracing of both smoke and water, and i've been trying to think, based on the your and Adrian's replies, how Adrian's system works, and what, if anything, that might have in common with the approaches i've taken. Here is an osg raytraced animation of smoke:
http://www.asymptopia.org/gif/3D_SMOKE.gif Only the patch corresponding to the grid (ie grid used to calculate and advect the smoke) is raytraced. The mother volume is "checked-in" and reports to the raytracer, when asked, about it's position and dimensions. The raytracer then casts rays through the grid, and modify the background pixel value provided from osg. So, for each frame, i create an osg::Image of the scene, apply -> HUD overlay, raytrace desired 2D patches corresponding to objs that have been registered with the raytracer, and modify the osg::Image accordingly. Anyway, i'll be interested in whatever happens! -C On Dec 12, 2007 7:55 PM, Jean-Sébastien Guay <[EMAIL PROTECTED]> wrote: > Bonsoir Charles, > > > would the design of your current raytracer code lend itself to tracing > > voxels filled with smoke or water? > > Adrian would be the best placed to answer, as he wrote it, I only used > it. But from what I saw it only currently supports ray-triangle > intersection, nothing is done about participating media. > Reflection/refraction for the surface of water would be pretty easy, > but smoke or ripples on the surface of water (or any other fluid) is > another thing. ("une autre paire de manches!") > > Once we get a good basic raytracer going, it will be possible to > integrate effects into it fairly quickly. That's the great thing about > raytracing in general, it's a very intuitive technique. (but I think > I've said that before in a previous thread, not so long ago... :-) > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [EMAIL PROTECTED] > http://whitestar02.webhop.org/ > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- AsymptopiaSoftware | [EMAIL PROTECTED] www.asymptopia.org
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

