Re: [osg-users] How to implement a Laser Simulation?

2019-05-30 Thread Matheus Santos
Hi, I have this example. The green line is the laser, projected on the scene. As you can see, the laser passes through the object. I want the laser bypasses the object (any object, not only spheres), as the example above. It's like a light spot ... Thank you! Cheers, Matheus

Re: [osg-users] How to implement a Laser Simulation?

2019-05-29 Thread David Heitbrink
I did a similar project with adaptive headlamps a couple years ago. The way I would do this is to think about this as sort of a spot light with a projector slide. So we can also think about this also a spot light with a shadow. So what I did was to setup a "slide" scene in which I would

Re: [osg-users] How to implement a Laser Simulation?

2019-05-29 Thread Chris Hanson
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)

Re: [osg-users] How to implement a Laser Simulation?

2019-05-29 Thread Matheus Santos
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

Re: [osg-users] How to implement a Laser Simulation?

2019-05-27 Thread Chris Hanson
On Mon, May 27, 2019 at 3:05 PM Matheus Santos wrote: > The laser is a fixed line projection, attached to the camera. It's for > work. > Do you have an example of how you'd want it to look? The classic scanning beam slice from "Aliens" is a little different, but I'd expect you'd want to see a

Re: [osg-users] How to implement a Laser Simulation?

2019-05-27 Thread Matheus Santos
The laser is a fixed line projection, attached to the camera. It's for work. Chris Hanson wrote: > Is this like a scanning sweep laser beam? > > I'd model it as a triangular frustum with a texture on it generated by a > shader with some kind of animated fBm (Fractal Brownian Motion) noise. >

Re: [osg-users] How to implement a Laser Simulation?

2019-05-24 Thread Chris Hanson
Is this like a scanning sweep laser beam? I'd model it as a triangular frustum with a texture on it generated by a shader with some kind of animated fBm (Fractal Brownian Motion) noise. Is this a work project or school or what? On Fri, May 24, 2019 at 7:35 PM Matheus Santos wrote: > Hi, I

[osg-users] How to implement a Laser Simulation?

2019-05-24 Thread Matheus Santos
Hi, I need to implement a laser inside an underwater simulation. The simulation uses the physics from the gazebo and renders the scene with OSG. Now I need to project a green laser (vertical or horizontal) from the robot, inside the scene. I have no idea how to do something like that (and have