<div dir="ltr"><div>Hi Catalin,</div><div><br></div><div>I'm still a bit confused from your explanation.</div><div><br></div><div>Is it simply that you want a 2D overlay on your scene?  Have a look at the osghud example - this uses an osg::Camera to set a user define view and projection matrix for it's subgraph.<br></div><div><br></div><div>If you want object to be rendered like billboards within the 3D world then there is the osg::Billboard and osg::AutoTransform classes.</div><div><br></div><div>Robert.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 16 Jan 2020 at 09:07, Catalin <<a href="mailto:inbox.icf@gmail.com">inbox.icf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Robert,</div><div><br></div><div>I have an old code, as you know. Some objects are rendered with OpenGL, but before that the ViewMatrix is set to identity, as the the objects are having their position computed as follow:</div><div><br></div><div>ObjectPositionView = ViewMatrix * ObjectPosition + 2D Move Vector(x,y) in view space</div><div><br></div><div>ObjectPositionView already contains the ViewMatrix, so I am feeding it directly to the Open GL.<br></div><div><br></div><div>Those object are some billboards but with the option to be moved in the view space, like a 2D move.</div><div><br></div><div>If I give directly the ObjectPosition to OSG, it works fine with billboards but I don't know how to incorporated the 2D Move Vector, that vector is in the view space.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 16 Jan 2020 at 10:18, Robert Osfield <<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Catalin,<div><br></div><div>Could you explain what you are trying to do with the rendering of this node? What you are attempting to do will guide the best way to implement what you need.</div><div><br></div><div>Robert.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 16 Jan 2020 at 07:33, Catalin <<a href="mailto:inbox.icf@gmail.com" target="_blank">inbox.icf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>Is there a way to change the view matrix or projection matrix for a just a specific node in fixed pipeline mode?</div><div><br></div><div><br></div></div>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>