[osg-users] Setting the transform matrices

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Tue Aug 29 23:54:43 PDT 2017


Hi Chris,> Hi Robert,
> 
> For now it'd be too time consuming to isolate a test case. Supporting modern OpenGL does seem like it would be more natural if you had some way of hooking into the setting of the model matrix and vertex attributes so that you could assign / name / alter them yourself.

You can use any matrix you like. Simply set it up as uniform and use it 
in the shader. Since there is underlying scenegraph you need to consider 
disabling culling for the node or set its matrix accordingly.

Your hooking can be done by simply adding a transform-group over your 
element and set the the desired matrix from there.
A minimal example explaining what you want to achieve might be very 
helpful.


Cheers
Sebastian

> 
> Cheers,
> Chris
> 
> ------------------------
> http://www.hrwallingford.com/facilities/ship-simulation-centre (http://www.hrwallingford.com/facilities/ship-simulation-centre)
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=71557#71557
> 
> 
> 
> 
> 
> _______________________________________________
> 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