Re: [osg-users] TerrainManipulator Questions

2009-11-04 Thread Allen Saucier
Hi, Thanks guys for all the help. I finally figured out how to setup a Rotation Matrix and I am now using the setByMatrix of the TerrainManipulator correctly to position the camera. It's awesome! But I have found a curious thing, it appears that the same method in Trackball Manipulator is not

Re: [osg-users] TerrainManipulator Questions

2009-10-31 Thread Robert Osfield
HI Allen, On Fri, Oct 30, 2009 at 7:43 PM, Allen Saucier allen.sauc...@itt.com wrote:  is osgkeyboardmouse a program?  Or a class?  osg::KeyboardMouse? osgkeyboardmouse is an example found in OpenSceneGraph/examples/osgkeyboardmouse. The convention in the OSG is for classes to follow the form

Re: [osg-users] TerrainManipulator Questions

2009-10-30 Thread Allen Saucier
Hi, is osgkeyboardmouse a program? Or a class? osg::KeyboardMouse? Here's my latest solution but still requires a hack at the moment: bool CSceneMatrixManipulator::intersect(const osg::Vec3d start, const osg::Vec3d end, osg::Vec3d intersection) const { std::coutMy Intersect\n;

Re: [osg-users] TerrainManipulator Questions

2009-10-29 Thread J.P. Delport
Hi, Allen Saucier wrote: Hi, I'm trying to use the TerrainManipulator class and I am scratching my head. Problem: I use a patch of terrain w/in a simple program and the terrainmanipulator works great. In another example of mine: I then add a sky-dome by simply putting a sphere around the

Re: [osg-users] TerrainManipulator Questions

2009-10-29 Thread Allen Saucier
Hi JP, thanks for the idea. I'd forgotten that about aspect of the Terrain Manipulator. Hum, so I've got to get the Terrain Manipulator (TM) to actually intersect w/ the terrain node I really want instead of the sphere surrounding the terrain. As for what I passed, I sent in the address of

Re: [osg-users] TerrainManipulator Questions

2009-10-29 Thread J.P. Delport
Hi Allen, Allen Saucier wrote: Hi JP, thanks for the idea. I'd forgotten that about aspect of the Terrain Manipulator. Hum, so I've got to get the Terrain Manipulator (TM) to actually intersect w/ the terrain node I really want instead of the sphere surrounding the terrain. As for what I

Re: [osg-users] TerrainManipulator Questions

2009-10-29 Thread Allen Saucier
Hi JP, thanks so much! I found a partial solution and I'm trying to understand why it works. hahahaha but here's what I found: 1. I have 3 nodes in my scene @ startup: terrain, light, and a sphere wrapping my terrain. All built/added to root node in that order. 2. the intersect routine found

Re: [osg-users] TerrainManipulator Questions

2009-10-29 Thread J.P. Delport
Hi, Allen Saucier wrote: Hi JP, thanks so much! I found a partial solution and I'm trying to understand why it works. hahahaha but here's what I found: 1. I have 3 nodes in my scene @ startup: terrain, light, and a sphere wrapping my terrain. All built/added to root node in that order. 2.

[osg-users] TerrainManipulator Questions

2009-10-28 Thread Allen Saucier
Hi, I'm trying to use the TerrainManipulator class and I am scratching my head. Problem: I use a patch of terrain w/in a simple program and the terrainmanipulator works great. In another example of mine: I then add a sky-dome by simply putting a sphere around the terrain and painted the