Re: [osg-users] Retrieve MatrixTransform of a loaded model

2010-07-22 Thread lucie lemonnier
Hi, Thank you for your help. It works well! lucie -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30173#30173 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Calculate latitude, longitude, height with intersection point

2010-07-22 Thread lucie lemonnier
Hi, I want to obtain the latitude, longitude and height when I click with the mouse. Here is my code : osgGA::GUIEventAdapter ea; osgUtil::LineSegmentIntersector::Intersections intersections; std::string gdlist=; float x = ea.getX(); float y = ea.getY(); osg::ref_ptr

[osg-users] 3D objects that don't rescale

2010-07-22 Thread benedikt naessens
Can you make 3D objects that don't rescale in OSG ? To clarify : if you move the camera closer and further, they will still have the same size. Still, they need to rotate and translate according to the movement of the camera. An example of that is the

[osg-users] How to set new PAT position for every traversal run ?

2010-07-22 Thread Sanat Talmaki
Hi, I am trying to set new values for the position of my PAT node for every run of while(!viewer.done()) Code: while( !viewer.done() ) { osg::Vec3d positionVector; // fire off the cull and draw traversals of the scene. viewer.frame(); viewer.updateTraversal();

Re: [osg-users] Visual Studio 2010 3rd Party

2010-07-22 Thread Jason Alexander
Posting those binaries somewhere would be a fantastic help to me and others, it sounds like! Thanks!!! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30177#30177 ___ osg-users mailing list

Re: [osg-users] How to set new PAT position for every traversal run ?

2010-07-22 Thread Trajce (Nick) Nikolov
probably if you post the whole code someone might help you better. My advice is to use the updateCallback of the PAT node - you make sure then you are working on the right node. -Nick On Thu, Jul 22, 2010 at 2:41 PM, Sanat Talmaki sanat.sch...@gmail.comwrote: Hi, I am trying to set new

Re: [osg-users] 3D objects that don't rescale

2010-07-22 Thread Trajce (Nick) Nikolov
Yes. You can use osg::AutoTransform I think -Nick On Thu, Jul 22, 2010 at 2:09 PM, benedikt naessens benedikt.naess...@spaceapplications.com wrote: Can you make 3D objects that don't rescale in OSG ? To clarify : if you move the camera closer and further, they will still have the same size.

Re: [osg-users] 3D objects that don't rescale

2010-07-22 Thread benedikt naessens
Thanks ! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30180#30180 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Headtracking

2010-07-22 Thread Thomas Klemmer
Hi folks I'm sitting here trying to set up a head tracking... I got an api that spits out a viewmatrix for the camera and now I have to get this matrix in the write place. I wrote an updateCallback for the Cameras (left/right) that looks like this. class updateCameraPosCallback : public

Re: [osg-users] Headtracking

2010-07-22 Thread Frederic Bouvier
Hi, Maybe you already have a Matrix/Camera Manipulator that override your update callback ? -Fred - Thomas Klemmer klem...@uni-weimar.de a écrit : Hi folks I'm sitting here trying to set up a head tracking... I got an api that spits out a viewmatrix for the camera and now I have to

[osg-users] intersection and threading problem

2010-07-22 Thread Markus Lacay
Hey all, I'm using osg 2.9.8 and trying to do intersection tests in a thread. The code is real straightforwards and works well when not threaded: Code: osg::ref_ptrosgUtil::LineSegmentIntersector intersector = new osgUtil::LineSegmentIntersector(start, end); osgUtil::IntersectionVisitor

Re: [osg-users] intersection and threading problem

2010-07-22 Thread Jean-Sébastien Guay
Hi Markus, I'm using osg 2.9.8 and trying to do intersection tests in a thread. The code is real straightforwards and works well when not threaded: [...] Is this a known issue? Err, you say what you want to do, that it works when not threaded, but not what happens when you try to do it

Re: [osg-users] Making objects transparent without using textures at all

2010-07-22 Thread Dženan Zukić
Hi, Examples that come with the OSG source code? Cheers, Dženan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30186#30186 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] VS 2010 and OSG v2.8.3?

2010-07-22 Thread Dženan Zukić
Hi, I just compile-tested OSG 2.8.3 with VS2010, x64 target. It has build errors (full log attached). Furthermore, I cannot switch to VS2010 because Qt doesn't support it at the moment. Cheers, Dženan -- Read this topic online here:

Re: [osg-users] VS 2010 and OSG v2.8.3?

2010-07-22 Thread Keith Parkins
From your log it looks like the only problem you are having, which I encountered as well, is the new C++/stl problem. You need to add: #include iterator to the header file NodeCallBack. This should get rid of most of the errors, but you may have to add the above include to other files as well.

Re: [osg-users] VS 2010 and OSG v2.8.3?

2010-07-22 Thread Dženan Zukić
Hi, Thanks for the tips, they may come in handy once Qt 4.7 is out and I start migrating to VS2010, and new version of OSG which includes those includes is not published. Thank you! Cheers, Dženan -- Read this topic online here:

Re: [osg-users] Calculate latitude, longitude, height with intersection point

2010-07-22 Thread lucie lemonnier
Hi, Can you help me please? I am blocked on my project. I just want to know how to obtain the latitude, longitude and height from the local coordinates of the point of intersection. Thank you! Cheers, lucie -- Read this topic online here:

Re: [osg-users] How to set new PAT position for every traversal run ?

2010-07-22 Thread Robert Osfield
Hi Sanat, Have a look at the osganimation example. FYI, Viewer::frame() calls updateTraversal() for you, so you don't need to call it yourself. Robert. On Thu, Jul 22, 2010 at 11:41 AM, Sanat Talmaki sanat.sch...@gmail.com wrote: Hi, I am trying to set new values for the position of my PAT

Re: [osg-users] Calculate latitude, longitude, height with intersection point

2010-07-22 Thread Robert Osfield
Hi Lucie, The CoordinateSystemNode can map between Earth Center Earth Fixed coordinate frame and lats/longs. If you have local coordinates then you need to accumulate the model transforms to move the local coord into world coords. The LineSegmentInersector will accumulate the transforms for you

Re: [osg-users] Visual Studio 2010 3rd Party

2010-07-22 Thread Michael Weiblen
Hi, Way back when I built a package of 3rdParty binaries for my OSG 2.4 installer w/ VS8, I tried to capture all the cookbook steps in scripts. All that info is available at http://osgtoy.svn.sourceforge.net/viewvc/osgtoy/3rdParty/ With general updating of version info, those scripts will

Re: [osg-users] Headtracking

2010-07-22 Thread Michael Weiblen
Hi, osgVRPN uses VRPN as the interface to various VR devices, including trackers. You could use that software stack, or you can extract the OSG matrix manipulation code from http://osgtoy.svn.sourceforge.net/viewvc/osgtoy/osgvrpn/ cheers -- mew -- Mike Weiblen -- Black Hawk, Colorado USA --

Re: [osg-users] Calculate latitude, longitude, height with intersection point

2010-07-22 Thread lucie lemonnier
Hi, I also have wrong values when I use the world coordinates of the intersection when I make a translation. It's normal? Thank you! Cheers, lucie -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30197#30197

Re: [osg-users] How to set new PAT position for every traversal run ?

2010-07-22 Thread Sanat Talmaki
Hi Robert, I will definitely take a look at the osganimate example. But this is a question I asked in the post above: If I declare a PAT node in my main(), is the only way to access and modify it through update callbacks ? The reason why I'm asking this is that tough I'm passing the PAT node

[osg-users] OSG world coordinates to 2D screen coordinates, reverse picking

2010-07-22 Thread Luke Rice
Hi, I'm using OSG as part of a VR software package and I'm trying to implement picking with a 6DOF tracking system. I'm having trouble finding a way to convert the position of my tracking object (right now just a sphere) from its world coordinates to screen coordinates so I can use the xy

[osg-users] ANN: OSGUIsh updated (GUI-like events for OSG nodes)

2010-07-22 Thread Leandro Motta Barros
Hello, I've updated my old OSGUIsh library, so that it works with newer versions of OSG. This small library allows to register functions that get called when GUI-like events (mouse click, mouse move, key down...) happen on a specific OSG node. It can be used more or less like this: // First

Re: [osg-users] Making objects transparent without using texturesat all

2010-07-22 Thread Tomlinson, Gordon
I can think of at least 3 other options Use Alpha value on vertex color attributes Use Alpha value on a Material being applies (See the OSG example in the source on how to use vertex colors and materials And the other option would be to set the Alpha in shaders Gordon Tomlinson Product

Re: [osg-users] How to set new PAT position for every traversal run ?

2010-07-22 Thread Sanat Talmaki
Hi Nick, I followed your advice and set up an update callback. But I still can't seem to get rid of the problem that I was facing (i.e. positions getting set to (0,0,0) during callback traversal. I thought it might help if I attach the code for my callback functions instead of copying it

Re: [osg-users] How to set new PAT position for every traversal run ?

2010-07-22 Thread Tom Pearce
Hi Sanat, There's so much there, including functions that I have no idea what they do, that it'll be hard to figure out. There is definitely some unnecessary bits that make it even harder for people who aren't you to figure out what is going on - for example, Code: backhoeGroundPosition =

Re: [osg-users] ANN: OSGUIsh updated (GUI-like events for OSG nodes)

2010-07-22 Thread Torben Dannhauer
Hi LMB, Thanks for your intresting project! I'll take a look on it at weekend :) Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30206#30206 ___ osg-users mailing list