Hi, did you try setting the SphereSegment center to 0,0,0 and instead moving (and orientation) the sphereXtransform to the position of the intersection?
/ulrich Allen wrote: > osg::PositionAttitudeTransform *sphereXform = new > osg::PositionAttitudeTransform(); > root->addChild(sphereXform); > > v3 = osgViewer_ComputeTerrainIntersection( loadedModel, -2175161, > -4898049); > osg::ref_ptr<osgSim::SphereSegment> sphere = new > osgSim::SphereSegment( > osg::Vec3(-2174905, -4899561, > 3445526), // center > 500.f, // radius > osg::Vec3( 0 , 0, 0 ), > osg::DegreesToRadians(360.0f),// azRange > osg::DegreesToRadians(35.0f),// elevRange > 40); // density > //sphereXform->setAttitude( orientation ); _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
