[osg-users] Building an Altimeter

2011-04-09 Thread Rusty Shackleford
Hi, I'm working on a tool that visualizes a spacecraft in orbit around a planetary body. As it is set up now, the position of that spacecraft is given relative to the center of the body as an x,y,z coordinate. What I'm trying to do right now is set up a simple altimeter that looks essentially

Re: [osg-users] Building an Altimeter

2011-04-09 Thread Rusty Shackleford
I should add that the reason the marker dimension is being hardcoded into the x axis because at this point I'm positioning the spacecraft along the Y axis. I was considering creating in a way similar to this every time, then rotating it to match the lander, but would be open to a more dynamic

Re: [osg-users] Building an Altimeter

2011-04-11 Thread Rusty Shackleford
Thanks all, I tried setting the lighting mode to off and it worked fine, but extremely slowly. I managed to fix that by placing all the vertexes in a single Geometry object and using LINES to draw them in pairs, with the central line occupying [0] and [1], needing to only set the lighting mode

[osg-users] Camera Positioning with a Node Tracker Manip.

2011-04-24 Thread Rusty Shackleford
I'm using a NodeTrackerManipulator to lock the camera's motion around a model in space. This code below is all I have now: Code: camTracker = new osgGA::NodeTrackerManipulator(); camTracker-setTrackNode(someNode); camTracker-setMinimumDistance(30.0f); camTracker-setDistance(100.0f);