BSP Entities

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
jf03cg
Posts: 14
Joined: Sun Apr 24, 2005 12:12 am
Location: Ontario, Canada
Contact:

BSP Entities

Post by jf03cg »

Hello,

I am moving a project over from an old engine (Genesis3D) and I have a question about levels. Within a typical map editor (at least the map editor for genesis) you can add entities within the editor and later, call up data about the entity later. These entities are things like KeyFrames, Lights, Enemies, startup positions. Is there an easy way to do this in Irrlicht?

Example: In my current BSP Maps from genesis there is a structure defined as

Code: Select all

typedef struct dotdObject{
	#pragma GE_Published
	geVec3d origin;
	geVec3d rotation;
	geVec3d scale;
	int objectID;
	int rad;
	char *filename;
	char *intRef;
	#pragma GE_Origin(origin)
} dotdObject;
Is there any way I can pull those values into Irrlicht via the BSP file, or a similar technique? I have read some posts, and tutorials but have not found much pertaining to this directly....

Any help would be greatly appreciated,

Thank you
XargoL
Posts: 22
Joined: Sun Aug 01, 2004 7:55 pm

Post by XargoL »

I made something like that a while ago:

http://irrlicht.sourceforge.net/phpBB2/ ... php?t=3389

Beware, ugly code! :P
jf03cg
Posts: 14
Joined: Sun Apr 24, 2005 12:12 am
Location: Ontario, Canada
Contact:

Post by jf03cg »

Thanks ;)

It will be very useful :)
Post Reply