[osg-users] Model attached to Camera

2013-11-14 Thread Trajce Nikolov NICK
Hi Community, I would like to do this mentioned in the subject and I am facing issues. Sounds pretty simple but need help. The model is attached to osg::MatrixTransform and I have osg::UpdateCallback attached to it that sets the Matrix based on the camera. So here is the snippet from the

Re: [osg-users] Model attached to Camera

2013-11-14 Thread Trajce Nikolov NICK
I gave up on this approach. Used another Camera that mimic HUD but with Prespective projection. Works now. Have to learn to stress less when looking for answers :-) Cheers, Nick On Thu, Nov 14, 2013 at 1:32 PM, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: Hi Community, I would

Re: [osg-users] Model attached to Camera

2013-11-14 Thread Robert Milharcic
On 14.11.2013 11:32, Trajce Nikolov NICK wrote: It doesn't look right. What is wrong with this code? Also, there is some delay (when I don't apply the orientation just for debug), the model when attached is sort of delayed following the camera. Any hints? Hi Nick, I'm just guessing here, but

Re: [osg-users] Model attached to Camera

2013-11-14 Thread Trajce Nikolov NICK
Hi Robert, thanks for the hint. I don't have CameraManipulator. Anyway I made it work with HUD like approach. Thanks again Nick On Thu, Nov 14, 2013 at 2:55 PM, Robert Milharcic robert.milhar...@ib-caddy.si wrote: On 14.11.2013 11:32, Trajce Nikolov NICK wrote: It doesn't look right.