Q3 map data.

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Rufjan

Q3 map data.

Post by Rufjan »

Hi,

I need to read variables from q3 map - like player start position, monster position or items etc. Do i need to write my own q3 map loader only for those variables or Irrlicht can read them for me?

Rufus.
Guest

Post by Guest »

irrlicht will not read them....
Myth
Posts: 81
Joined: Wed Apr 13, 2005 5:48 pm

Post by Myth »

You can either modify the irrlicht loader or - I advice this one - create your own map editor where you can set all info that will be added to a xml file.
In that way you are also independent of of other games.
JOIN MY (100mbs 2x 3GHZ CPU) IRRLICHT FORUMS
http://irrlicht.halo4you.com/forums/
For all your programming quesitons and irrlicht ones!.

My fan site: http://www.halo-center.com
_Dum0nde
Posts: 24
Joined: Thu Mar 17, 2005 3:26 pm

Post by _Dum0nde »

I need this functionality too. I'm thinking of loading the map in Irrlicht normally and then, independently parse the map's header for spawn positions.
area51
Posts: 338
Joined: Thu Mar 18, 2004 10:20 pm
Location: UK
Contact:

Post by area51 »

Cartoonit did a BSP entity reader a while back. Afecelis has it hosted here:
http://www.danielpatton.com/afecelis/fi ... latest.zip

or did you mean the .map file itself, and not .bsp?
________
American Dad! Advice
Last edited by area51 on Tue Feb 22, 2011 1:12 pm, edited 1 time in total.
_Dum0nde
Posts: 24
Joined: Thu Mar 17, 2005 3:26 pm

Post by _Dum0nde »

I made the little parser I talked about in my last post. One problem: I spawn on weird positions which are way off. I know vertices are stored strangely in the Q3 format... Could anyone tell me how I need to store the position? I tried switching y and z and doing z *= -1 but that didn't fix it...
Post Reply