bounding box of invisible entities and sprites

Posted By: sivan

bounding box of invisible entities and sprites - 11/07/11 15:42

Hi!
I would find it useful to include in the features of d3d_lines representing the bounding boxes of invisible models, and (visible) sprites too.
Sometimes I use hidden object for collision (e.g. now because of the new decal shadow system, which really works fine now after I revised my codes), and rarely, but I do use non-passable sprites too.
I hope it is not so complicated as collision representation... laugh
Posted By: Superku

Re: bounding box of invisible entities and sprites - 11/07/11 16:27

Yes, that would be nice.

Meanwhile you can use ent_next and draw_box3d as a workaround to show all bounding boxes.
Posted By: painkiller

Re: bounding box of invisible entities and sprites - 11/07/11 19:33

pressing F11 twice with default.c lets you see all the bounding boxes, I think invisible model boxes are not seen though
Posted By: Superku

Re: bounding box of invisible entities and sprites - 11/07/11 19:51

The function on F11 simply sets d3d_lines to specific values and yes, the bboxes of invisible models are not shown, that's why sivan has made the request.
Posted By: sivan

Re: bounding box of invisible entities and sprites - 11/07/11 21:50

thanx SuperKu, I'll try that! it is really what I need beside d3d_lines=1 laugh
but F11 would be easier grin
Posted By: sivan

Re: bounding box of invisible entities and sprites - 11/19/11 08:33

finally I implemented it because I really need it...
draw_box3d is okay only for axis aligned box drawing, and I have rotated entities too, so I had to use 12 pcs of 3D lines per entity with proper rotation for each... if someone is interested I can share it, the price is a beer laugh
Posted By: NnamueN

Re: bounding box of invisible entities and sprites - 02/05/19 21:22

Hello sivan, can i get your solution. I need exactly the same too

cu Roman
© 2024 lite-C Forums