[osg-users] Get current Billboard ModelView matrix?

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Fri Jul 1 01:11:30 PDT 2016

Hi Phillip,
> Hi,
> I'm using shaders to do some pre computations for a realtime radar simulation. (Some further processing is done with CUDA) The delta distance is required for the calculation of the doppler effect.
> So yes, I guess I'm using shaders in a weird way. Unfortunately it would be very difficult do migrate to CUDA, because that would require me to do all graphics calculations by myself in the cuda kernel (Z test etc.)
If you only need the movement towards/away from you, you can use the 
previous frames depth and perform difference computation based on the 
difference of the linear depth.

> So, to get back to my original question, is there any way to get a current Billboards modelMatrix? How do I use billboard->computeMatrix() properly?
I'd simply pass the view matrix inverse (pre frame) and calculate the 
modelmatrix via inverse_view * model_view_matrix.

> Thank you!
> Cheers,
> Philipp
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=67946#67946
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list