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.

Cheers
Sebastian

Thank you!

Cheers,
Philipp

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67946#67946





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to