howto use vector3d<f64> ?

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
zillion42
Posts: 324
Joined: Wed Aug 29, 2007 12:32 am
Location: Hamburg, Germany

howto use vector3d<f64> ?

Post by zillion42 »

I cant cast from vector3df to vector3d<f64>,
I cant add vector3df with vector3d<f64>,
I cant setPosition() with vector3d<f64>

is there any way I can actually use it ?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You can use it in any context that is compatible with core::vector3df<f64>. Your application code can do this as much as you want, but once you get into the Irrlicht layer, you have to do some adapting. You can write functions to convert between the types pretty easily. Unfortunately, as soon as you convert to f32 you lose all of the precision, so you'll have to keep that in mind.

Why would you want to use f64 anyways?

Travis
zillion42
Posts: 324
Joined: Wed Aug 29, 2007 12:32 am
Location: Hamburg, Germany

Post by zillion42 »

my solar system size... i get octagon orbits on neptune

i found this... looks like work
http://irrlicht.sourceforge.net/phpBB2/ ... system+f64

EDIT:
^sounds like this guy tried a 1:1 scale :lol:
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

There are currently no implicit conversions between different vector precisions. We could add them, but I'd have expected that if you're choosing to operate in vector3d<f64> then you'd want explicitly to control the points where you convert to f32 and lose the precision.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply