So, you don't care about the line appearing interacting with the water column, just with it interacting with the surfaces in the scene?
You could either slap a shader pass on EVERY surface in the scene that the laser line can fall upon, OR do a second render pass (possibly reading the Z-buffer) to apply the laser line effect. Which of these seems more feasible to you based on the preconditions and restrictions of your existing app and scene graph architecture? On Wed, May 29, 2019 at 6:22 PM Matheus Santos <matheus.b...@gmail.com> wrote: > Something like that: > > https://www.researchgate.net/profile/Jan_Albiez/publication/283269557/figure/fig6/AS:668780564865037@1536461120832/Screenshot-of-the-simulation-with-an-active-FlatFish-using-the-laser-line-projectors.ppm > ... > > Thank you! > > Cheers, > Matheus > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=76147#76147 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android @alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775) 623-PIXL [7495]
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org