matching quake 3 player start with Irrlicht map start

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
shabadam
Posts: 10
Joined: Sat Jul 03, 2004 11:39 am
Location: Italy

matching quake 3 player start with Irrlicht map start

Post by shabadam »

Hello.
How can i match the player starting point of a quake 3 map with the fps camera initial position in Irrlicht ?
This is a real problem , because every time I load a new quake 3 map , the camera , with the default position values , is placed somewhere in the middle of nowhere , and the player just "falls" from the map .
Apart from trying thousands of initial position values until you find a good one , is there a solution ?
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

there's a quake3 entity reader project around in the forums but I haven't gotten the chance to try it.

I had the same problem and the only solution I found (while the entity reader becomes available) was to re-place the player's position in Irrlicht and rotate it accordingly with my level start.
Image
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

Yeah, find out the position in terms of the map of where you want the camera to be and put it there. Irrlicht will load the same units as are in your map ( or more precisely, the other way around ) and so 200,0,0 in your map is 200,0,0 in Irrlicht.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Once you get a player start located properly and working in Irrlicht, keep using that map as template in your Quake3 editor for any new stuff you develop.

ps. It's not the smartest way but it's a good workaround.
Image
Post Reply