Hi,
here is a simple example with openGL
// ortho to display 2d background
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
//... my code
// restore previous proj and cam pos
glMatrixMode(GL_PROJECTION);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
// display 3D model
glMatrixMode(GL_MODELVIEW);
glLoadMatrixd(Model matrix4 )
// other code
How can i do this with Urho3D and how can i set iModelMatrix in shader.
Edit: Addition informations
i’m working on an ARLib and using Urho3D as render lib and input lib.
i need to pass Matrix4 that is Pose of model to display it as AR model.
thank you