[osg-users] Get current Billboard ModelView matrix?

Julien Valentin julienvalentin51 at gmail.com
Wed Jun 29 08:20:15 PDT 2016


Hi mille25 
sorry for my previous post
Further, i was wrong, eyepos/poslocal are inout params and I don't have any exp with osgBillboard as I'd rather use shaders to achieve this effect

Please, forgive my lost of temper 



mp3butcher wrote:
> Hi mille25
> computeMatrix parameters are out params, so pass whatever you want you'll have result you desire in it.
> I guess you should learn a bit more about C++ syntax to avoid this kind of question
> 
> Julien
> 
> 
> mille25 wrote:
> > Hi,
> > 
> > is it possible to retrieve the current modelView matrix of a billboard node?
> > For matrix transforms, one can simply use ->getMatrix() and multiply that with the current view matrix.
> > 
> > I noticed that there is a method called "computeMatrix", but I'm a little bit confused in how to use it. What exactly are the "pos_local" and "eye_local" parameters?
> > 
> > My goal is to retrieve the final modelView matrix of the billboard node (including all parent transforms).
> > 
> > Thank you!
> > 
> > Cheers,
> > Philipp
> 


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








More information about the osg-users mailing list