help needed creating BoundingBox in 3DSMAX

Started by
2 comments, last by code_evo 20 years, 4 months ago
Okay so I have a 3DS MAX model with all of my objects. Heres what I want to do, I want to create a bounding box around each object (ie. physicaly draw the box), this is no problem. The problem is making sure that the verts for this box are the first verts in the array of the objects vertices. That way I can check the verts in my code by saying something like object->verts[0] to [7] or something along those lines. Any suggestions?
Advertisement
Give a name to the box, and when you parse the 3DS file, search for that name "BBOX" first, and assign its vertices to the VAR first...

Just a thought

[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][Yann L.][Enginuity]
Stop reading my signature and click it!

But Can I give a name to the box without making it its own object? I want to encapsulate the object with the box obviously, and if the box is found, do something/dont do something with the object. You get the picture.



[edited by - code_evo on December 16, 2003 9:14:54 AM]
Or you could generate the bounding box by locating min/max XYZ values when loading the objects.

This topic is closed to new replies.

Advertisement