[osg-users] Model texture is distorted in HUD Camera Group

2014-03-17 Thread Mike Raider
Hi Everyone, I have a very simple sphere model in 3ds and obj, the sphere works fine when I place it in the root group. When I add the same model group to a Camera group that is my game's HUD the model's texture is distorted. The sphere mesh is fine. This Camera group works fine for Text

Re: [osg-users] Model texture is distorted in HUD Camera Group

2014-03-17 Thread Robert Osfield
Hi Mike, It's next to impossible for a 3rd party to know what is going wrong with the details provided. The best we can suggest is areas to look into and what extra information might be useful. First up, what do you mean by distorted - providing a before and after picture would be useful. As a

Re: [osg-users] Grayscale texture

2014-03-17 Thread Robert Osfield
H Boon, This is a driver/hardware specific issue rather than an OSG one. If you want to understand this then it would be best to approach the NVidia or Intel support forums. Robert. On 17 March 2014 02:22, Boon Wah boon...@gmail.com wrote: Hi, It appears that within texture.cpp in

Re: [osg-users] Keeping a Slave Camera Still While Tracking Node

2014-03-17 Thread Robert Osfield
Hi Patrick, If you want to decouple a slave Camera from the master simply use reference frame to absolute via Camera::setReferenceFrame(osg::Camera::ABSOLUTE_RF), then any settings of the slave Camera's view and projection matrix won't be affected by the master Camera's settings. See the osghud

Re: [osg-users] Keeping a Slave Camera Still While Tracking Node

2014-03-17 Thread Patrick Keenan
It works!! Thank you so much Robert. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58624#58624 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [3rdparty] Problem building osg application with osgAudio support

2014-03-17 Thread Michael Nolde
Hi there, I finally managed it. The way to go was to create a 'FindosgAudio'-file in the cmake/Modules folder by hand. For those interested, here's the summary of what I did: - compiled osgAudio with OpenAL-support (make/make install) - copied 'libosgAudio.so' from osgAudio-Build-dir to

[osg-users] Update Camera Position in callback

2014-03-17 Thread Conan
I want to update the position of one of the cameras in my app based on the position of a light. I am updating the light position via an update callback. What is the recommend way to update the camera position? From some of the OSG source code I have seen that it is possible to get the

Re: [osg-users] Model texture is distorted in HUD Camera Group

2014-03-17 Thread Mike Raider
Thank you Robert, I found a problem with my Camera, I had it set for setProjectionMatrixAsOrtho2D which worked fine for text and simple 2d lines. Can you, or anyone, suggest a Camera ProjectionMatrix that would be best for both 2d text and also a mesh model? I am thinking that I may need 2