-1

I don't know how to draw a bounding box around my 3D object using visual C++/Opengl!

I have calculated min and max value of my obj, but now what do I do!?

Update to my above post: Have figured out how to draw the Bounding box! How can I align it to the axes?

genpfault
  • 51,148
  • 11
  • 85
  • 139
afr12
  • 21
  • 1
  • 3

1 Answers1

1

You have to generate a line-mesh (or whatever you want to display) for the bounding box. The vertices should be easy to find when you already have min and max value.

BDL
  • 21,052
  • 22
  • 49
  • 55
  • Hi BDL, thanks for your response! But like I said I'm a newbie and I did try drawing using geometric values of axis aligned x,y and z being 0. But all I get is a small triangle in the middle of my object... – afr12 Nov 01 '14 at 14:31