Hi David,
On 15 November 2012 12:32, David Hornung <[email protected]>wrote: > how could I mix setProjectionMatrixAsOrtho2D() and > setProjectionMatrixAsPerspective ? > You can't, they are mathematically in-compatible except for a placing all objects on a plane that is parallel to the image plane, which is to say that you'd need to collapse everything onto a 2D surface! > > Explanation : > I am already able to play my video in Ortho2D Mod an draw semitransparent > Objects in front of it (tag: Augmented Reality) > > But now for the Objects i want to use setProjectionMatrixAsPerspectiv() so > that the Video will play in Background as ortho2D and the Objects as > Perspective. Is this possible? If yes, how ? > What you want to do is layer the sets of data, with the movie drawn first then the 3D scene rendered on top of this. You can do this by rendering the movie like a hud, but render it first, then with the 3D scene just clear the depth buffer, you can use multiple cameras to do this as per the osghud example of simply put a quad into your scene with the movie on it, you can decorate the quad with an absolute transform to make sure it ignores the scene graphs view/model matrices. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

