need 64bit geometry and vector data

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ayman
Posts: 51
Joined: Sat Feb 05, 2005 7:33 pm
Location: Piefke State

need 64bit geometry and vector data

Post by ayman »

Hi

I am searching for a 3d-lib that help me simulate a real space environment. I need to image at least a satellite rotating earth and earth rotating sun.

But with a basic floating point data type of 32 bit (Irrlicht's f32) this seems impossible, cause it only covers a precision of 6 digits.

It seems impossible to position a starting rocket in a position 250 meters above the earth's surface, when the earth has an orbit of about 149,597,870,691 km arround the sun.

Is it possible to make Irrlicht _and_ one of the background libraries (OpenGl or DirectX) work with double precision (that is 64 bit floating point?

Regards
Ayman
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Well, the FPU precision of the GPU is up to the GPU, no way to change a GPU's floating point precision that I know of. DirectX, will force you into single point precision when creating a device, unless you pass in D3DCREATE_FPU_PRESERVE. You can change the FPU precision of your application, using the control87 functions.

As far as being able to handle 3D worlds that big, you'll need to scale it down and most likely break it up into sectors of some sort( quadtree, octtrees, portals, etc. )
Image
Post Reply