Hey
For some reason I just can't get this to work. I've looked at other code but the 3D box just won't draw.
I don't have code here but is there something special you have to do to get it to draw. Say I import a model. If I get the bounding box of it by
node->getBoundingBox()
and then I pass that aabbox<float> box into the add3DBox() function, it doesn't draw.
I also set the transform and the material, but it's still doesn't draw.
Thanks
draw3DBox
I think he's on about getting the dimensions of the bounding box and passing them to the driver->draw3DBox() function.saigumi wrote:BoundingBoxes aren't visible boxes. They are just data that defines the points of the area of the object.
So it isn't working eh? Hmm. Firstly, does the function work at all? Can you draw a box with some coords you make up?
If you do this and it draws fine then you need to printf the coords of the bounding box to the console so you can see if they are the problem. I suspect the overall function isn't working but that's the best way to figure out what is happening that I can think of.
Small search: http://irrlicht.sourceforge.net/phpBB2/ ... =box+light
Hey
I tried to make my own box with co-oords and it still didn't draw. It is in the drawing loop. I think. It has to be because it's the same way I do everything else.
Don't worry though, I'm going to do something else. I need to be able to select the light, so I'm going to make a little icon, if you wish, that I can select. Then I will just set the position of the light to wherever the icon is placed. I'll also give the icon and the same sought of thing flags to tell my game engine that it mustn't draw them.
I tried to make my own box with co-oords and it still didn't draw. It is in the drawing loop. I think. It has to be because it's the same way I do everything else.
Don't worry though, I'm going to do something else. I need to be able to select the light, so I'm going to make a little icon, if you wish, that I can select. Then I will just set the position of the light to wherever the icon is placed. I'll also give the icon and the same sought of thing flags to tell my game engine that it mustn't draw them.