Objects

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Cleves

Objects

Post by Cleves »

Hey all,

Alright i created a level using 3ds max and i put some objects,let's say a box, also i created a player.i loaded the level and player with irrlicht.
Now the player wants to open that box so he presses on it but, here comes my question, How can i know if the player pressed on the box?
If i created the box with the level in max,irrlicht dosen't know about it's exsistence,maybe if i load the object sepreatly? but then i need to load hundreds of objects and it dosen't make sense.

Thanks alot.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

It's a good idea to load the object separetely. And why do you think loading hundrets of objects doesn't make sense? If they are all boxes, you'll only need to load the mesh once.
Cleves

Post by Cleves »

When i meant that if i got alot of objects the player needs to interact with it's a lot of code to load them all.
Alright thanks for clearing it up niko.
WhytWulf
Posts: 51
Joined: Mon Sep 08, 2003 11:14 am
Location: Australia, Tamworth, NSW
Contact:

Post by WhytWulf »

Cleves, wouldn't it be easier to do it this way.
1) create you world/game map
2) create another file-could be made on the like creating waypoints in quake/halflife games for bots, these waypoints represent various objects (chests, item spawns, etc), this file would also have to store the x,y,z.
3) iterate through the item file(s) to populate the world.

Yes you would still have to create the obejcts seperate, but think about it this way, if you create them as part of another mesh/model and if you want to change the shape later on, that could be alot of trouble, as you would have to change them all.
Cleves

Post by Cleves »

Mmmm..it may be a good idea.
Thanks for the advice 8)
Post Reply