Re: [osg-users] A suspicious bug of MatrixD

2014-04-18 Thread Robert Osfield
HI Tianlan, On 17 April 2014 23:04, Tianlan Shao shaotianlan...@gmail.com wrote: I still have doubt about the interpretion of the experiment: ...so we'd expect the scale of the x and y axis to be swapped.. I think that means, after rotation, the scale is still represented in the original

Re: [osg-users] multi-threading troubles with 2 graphic cards

2014-04-18 Thread Robert Osfield
Hi Thierry, Ahhh,,, yep I get the issue now, the affinity code that is intended to separate the threads based on the assumption that it's the main application running on the machine, which normally is how vis-sim applications are run, but in multiple parallel OSG applications it forces the

Re: [osg-users] Wrong geode display on screen

2014-04-18 Thread Robert Osfield
HI Sylvain, I don't think there have been any changes to the clean up of GL objects since 3.2. There must be something odd in the way that the viewer is being closed down as I've tested the close/re-open of the viewer pretty extensively in the past. I guess there could have been a regression,

Re: [osg-users] [3rdparty] Probllem with rendering .obj model

2014-04-18 Thread Robert Osfield
Hi Dominik, There isn't anyway we can help if an unspecified model doesn't work in an unspecified way. Could you provide the model so that others can test it? Robert. On 14 December 2013 17:18, dominik mumi...@gmail.com wrote: Hi, I have simple model in .obj file. I am trying to render it

Re: [osg-users] [3rdparty] osgmovie example crashes when playing flv with alpha channel

2014-04-18 Thread Robert Osfield
Hi Moassin, Could you provide a link to the movie so that others can test it? Robert. On 30 November 2013 16:38, Mohasin Sayyad melprogram...@gmail.com wrote: Hi, I m trying to play flv file with alpha channel osgmovie -e ffmpeg The_wolf.flv it shows message transparent movie, enabling

Re: [osg-users] Mask projective texture

2014-04-18 Thread Robert Osfield
Hi Mateo, I don't have time to look at your attachment (I have many support posts to get through) so can't answer specifics. If you are having problems with the contents of your textures when you use the textures check to make sure the the RTT Camera that is rendering to the texture is run

Re: [osg-users] Wrong geode display on screen

2014-04-18 Thread Sylvain Comtois
Hi, I finally found that the problem is related with the display list of drawables. When the viewer is delete all display list and gl context are destroy but the drawable are still existing and keep a reference to the context and the display list. When we create the new viewer, we

[osg-users] osgAnimation Ragdoll Problem

2014-04-18 Thread Max Reimann
Hi, Im trying to build a Ragdoll with Bullet and a osgAnimation skeleton. Ive got the bullet side working and now trying to update the bones of the osg skeleton with the transforms. The problem is that I cant seem to get the conversion from worldspace to bone space right (every bone in bullet

[osg-users] How to set up PrimitiveRestart-Mode?

2014-04-18 Thread Maximilian Wurm
Hi, I already read through all posts, I could find for PrimitiveRestart in combination with OSG. The PrimitiveRestart-extension is definately included since OSG Version 3.2. But there is neither a description in the API nor an example, that explaines how to activate GL_PRIMITIVE_RESTART or how

Re: [osg-users] Wrong geode display on screen

2014-04-18 Thread Robert Osfield
Hi Sylvan, The Drawables that you keep around beyond the line of the view/context are they detached from the viewer prior to it's destruction? Doing this prevents the viewer/context cleanup from knowing that it needs to clean up those Drawables so they are left with dangling GL object id's. The

Re: [osg-users] snapshot with fixed size

2014-04-18 Thread F Lallauret
Hi Robert, The slave camera works well for the snapshot size but the saved image seems to be the image before my postprocess shader. I've try to play with the setRenderOrber of the slave camera with no success, any idea ? Fabrice -- Read this topic online here:

Re: [osg-users] A suspicious bug of MatrixD

2014-04-18 Thread Jolley, Thomas P
Hi Robert, I think Tianlan may be correct about the getScale function. Here's why: The osg Matrix class was written as row major ordering (layout in memory is column major so it works with OpenGl). If you look at the matrix in row major order with the rotation matrix separated from the

Re: [osg-users] A suspicious bug of MatrixD

2014-04-18 Thread Sebastian Messerschmidt
Hi, Hi Robert, I think Tianlan may be correct about the getScale function. Here's why: The osg Matrix class was written as row major ordering (layout in memory is column major so it works with OpenGl). If you look at the matrix in row major order with the rotation matrix separated from

Re: [osg-users] A suspicious bug of MatrixD

2014-04-18 Thread Tianlan Shao
Hi Thomas, Thank you very much for your support! I'd like to add an argument here. The document of the getRotate() function says: /** Get the matrix rotation as a Quat. Note that this function * assumes a non-scaled matrix and will return incorrect results * for scaled matrixces. Consider

Re: [osg-users] snapshot with fixed size

2014-04-18 Thread Robert Osfield
Hi Fabrice, Do you use a RTT Camera in the scene graph for the post-process or a slave RTT Camera? Robert. On 18 April 2014 14:41, F Lallauret fabrice.lallau...@fr.thalesgroup.com wrote: Hi Robert, The slave camera works well for the snapshot size but the saved image seems to be the image

Re: [osg-users] snapshot with fixed size

2014-04-18 Thread F Lallauret
Robert, I've used the main camera (viewer camera) as a RTT camera for the scene rendering and I display it on a quad geometry with a second HUD camera. Then, I've added a shader on quad geode. Is it clear enough? (English isn't my native langage :)) Cheers -- Read this

Re: [osg-users] osgQt QWidgetImage as HUD not getting events

2014-04-18 Thread Nick Modly
I've managed to get the HUD to process events. The problem is that it is now capturing all events, and I cannot use the camera manipulators underneath the HUD. It seems to be the case that the InteractiveWidgetHandler is always returning true, because the widget is full-screen and thus always

Re: [osg-users] A suspicious bug of MatrixD

2014-04-18 Thread Robert Osfield
Hi Tom, On 18 April 2014 15:27, Jolley, Thomas P thomas.p.jol...@boeing.com wrote: Hi Robert, I think Tianlan may be correct about the getScale function. Here's why: The osg Matrix class was written as row major ordering (layout in memory is column major so it works with OpenGl). OSG

Re: [osg-users] snapshot with fixed size

2014-04-18 Thread Robert Osfield
HI Fabrice, On 18 April 2014 17:14, F Lallauret fabrice.lallau...@fr.thalesgroup.com wrote: I've used the main camera (viewer camera) as a RTT camera for the scene rendering and I display it on a quad geometry with a second HUD camera. Then, I've added a shader on quad geode. Is it clear

Re: [osg-users] snapshot with fixed size

2014-04-18 Thread xbee
Le 18/04/2014 18:53, Robert Osfield a écrit : HI Fabrice, On 18 April 2014 17:14, F Lallauret fabrice.lallau...@fr.thalesgroup.com wrote: I've used the main camera (viewer camera) as a RTT camera for the scene rendering and I display it on a quad geometry with a second HUD camera. Then, I've