Hi Rubén,

The osg should be setting the osg_ModelViewMatrix uniform, which is
equivilant to the gl_ModelViewMatix found in GLSL on OpenGL 2.0.

Robert.

On Tue, Sep 6, 2011 at 2:42 PM, Rubén Díaz <[email protected]> wrote:
> Hi there,
>
> This should be a quick one. I am using OSG compiled for Android OpenGL ES 2.0.
> I have my app up and running on the device. My shaders for the object I am 
> displaying doesn't do anything special, but it works just fine.
>
> My problem is, I need to update the camera matrix manually, this means: I 
> update the view matrix for every frame (or whenever I need to).
> Well, my shader doesn't seem to care about my efforts. Nothing changes after 
> I attempt to change the matrix for the camera. For that purpose I use:
>
>
> Code:
> void OsgMainApp::setModelViewMatrix( osg::Matrixf osgMat ){
>
>        _viewer->getCamera()->setViewMatrix(osgMat);
>
> }
>
>
>
> that I use every frame I need to before doing:
>
> Code:
> _viewer->frame();
>
>
>
> But camera shader uniforms doesn't seem to be updating.
> What am I missing?? Any hint?
>
> As you can guess I am not very experienced with osg.
>
>
> Thanks a lot!
>
> Cheers,
> Rubén
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=42449#42449
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to