Hi Ruben, I just noticed this thread. I don't suppose your student is interested in contributing his code to the osgOcean project?
Rivers have been asked for a number of times in the past and his approach would be a nice addition. Regards, Kim. On 10 May 2010 08:13, Smelik, R.M. (Ruben) <[email protected]> wrote: > Dear Daniele, > > I don't think Bruneton's research, although very impressive, is the > simplest way to render a river :-) > > The simplest way I see is to create the OSG geometry for this river with > some code. You would have to segment your curve/spline into small quad > sections, use a tiling texture and let the u-coords go from 0 to > width_of_river / texture_scale in the lateral direction and the v-coords > along the curve itself from 0 to total_length_of_river / texture_scale. > As the texture is tiling, you can "scroll" it along the river in a > fragment shader, where you add time-dependant amount to the v-coord > before the texture lookup. You can use osg_SimulationTime for this. > > If you're using Bezier curves, you might want to look at this > http://graphics.tudelft.nl/~ruben/PosterI3D2010.pdf, a student of mine > did work on rendering Bezier-curve based river networks, as an extension > of osgOcean. > > Kind regards, > > Ruben Smelik > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Mhondoz > Sent: woensdag 5 mei 2010 13:08 > To: [email protected] > Subject: Re: [osg-users] Create a simple river > > Hi, > > You may find something on creating rivers here: > http://www-evasion.imag.fr/Membres/Eric.Bruneton/ > > /Mhondoz > > On Wed, 05 May 2010 12:31:47 +0200, daniele argiolas <[email protected]> > wrote: > >> Hi, >> >> I have to make a river. What's the simplest way? >> I think try to import animated textures with ImageSequence class but >> is it possible to map texture on a curve surface? >> >> thanks >> daniele >> >> ------------------ >> Read this topic online here: >> http://forum.openscenegraph.org/viewtopic.php?p=27560#27560 >> >> >> >> >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. >> org > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or > g > This e-mail and its contents are subject to the DISCLAIMER at > http://www.tno.nl/disclaimer/email.html > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

