3D world coordinates

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
StargateSG1
Posts: 15
Joined: Sun Aug 22, 2004 2:06 pm
Location: Estonia

3D world coordinates

Post by StargateSG1 »

Hi,

I am making a GTA2 like game and I am very confused of the 3D world coordinate system.

I think weather is it a good idea to make the world start from (0, 0, 0) and end lets say at (1000, -1000, 0)? And not make the world so that (0, 0, 0) is the center of the map?

I hope you understand what I mean?
StargateSG1
Posts: 15
Joined: Sun Aug 22, 2004 2:06 pm
Location: Estonia

Post by StargateSG1 »

Oh, and what is the biggest number the camera coord could be?
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

there is no "center of world". Coordinate 0,0,0 is just one point in infinite space which have just coordinates 0,0,0.
You can choose any other coordinate to be center of your world.

Second question I don't know...
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Well, I don't know about Irrlicht, but if you create maps with the Tactical Ops editor (Unreal editor) it's like this:
the farer away from (0,0,0) the inaccurater the engine will calculate...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

I don't mean to waste space and I don't know the answer since my Irrlicht experience is almost entirly in GUI.

I just want to ask the question.. does this answer his question?

from what I gather he just wants to know the best way to configuare his map to the coords... my guess would be that it has to start at 0,0,0 and work up like 1000,1000,0 the center would be 500,500,0 and the bigger you get the slower your game is or rather less accurate.

as I sit here and think about it that makes perfect sense. but thats assuming your giving a map the size of 500 and it's largest coord 1000 effectivly making each world unit 2 map units in size. right?? now I'm confused.

seems like that would explain the positioning problems that GTA:VC has when converted to multiplayer... I have no clue but I sure like to talk =)

lmfao @ inaccurater & farer

farther...less accurate...was that for fun or just bad translation?
StargateSG1
Posts: 15
Joined: Sun Aug 22, 2004 2:06 pm
Location: Estonia

Post by StargateSG1 »

Ok thanks for the answers.

It just seems confusing that the (0, 0, 0) is somewhere in the middle of the world because then you have to mess with the negative numbers and so. It's just confusing.

Now I'll make it the start of the world.
Post Reply