Hi Zeiki,
On 8 February 2013 06:56, Zeki Yugnak zeki.yug...@gmail.com wrote:
Hi Robert,
I found the problem yesterday. You are right, the problem is regarding to
floating point usage.
I am computing camera position using center of the object's BoundingSphere.
When I start debug whole
HI Zeki,
I don't know the specific cause of the problem but again as I don't
have your problem infront of me or the able to see the problem first
hand. Best I can do is stress that you need to use doubles. Go back
through your original code submission, is everything doubles???
Keeping looking
Hi Robert,
I found the problem yesterday. You are right, the problem is regarding to
floating point usage.
I am computing camera position using center of the object's BoundingSphere.
When I start debug whole code, I figure out that the BoundingSphere type is
floating point and
Hi everyone,
I just started using Openscenegraph. I have some questions regarding coordinate
systems. I am trying to develop simple debriefing application. I am using
geographic (lat, long and alt ) coordinates and rotations information that were
recorded on vehicle to transform objects in 3D
Zeki,
Don't transform the root scene (I assume you mean the terrain). Instead
just take the matrix you got
from computeLocalToWorldTransformFromLatLongHeight() and put that into a
MatrixTransform. Then any points under that MatrixTransform are local to
that world point, and you won't have any
Hi Glenn ,
I have been already doing what you're saying. Here is the transformation code
block;
Code:
osg::Vec3 rotation(currentRotation.Heading, currentRotation.Pitch,
currentRotation.Roll);
osg::Matrix hprRotationMat;
Util::HprToMatrix(hprRotationMat, rotation);
//Ellipsoid model of the
A couple of observations:
1) The units will be in millions because your database is a round earth
database using the WGS84 spheroid ECEF CS with units in meters.
2) I don't understand how your second code blocks maps correctly to the
geocentric cartesian round earth database built with osgdem
Hi Shayne,
Thanks for your help.
Your's transformation code block is the same as mine's. I really do not know
why object's translation is not smooth.
Also I could not use second code block because of terrain-object correlation
problem. But I hope that I will translate object smoothly using
8 matches
Mail list logo