Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Ionut Costica

OOBB&&speed issues

This topic is 6670 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

1) How can I determine the smallest Object Oriented Box for an object, if i know its vertexes? 2) How come Tonic Troble/Rayman2''s fps is bigger than when I draw 2 cylinders 25&25 segments, 2 Cyls 15&15 segments, a Quad and I draw some Text using Nehe''s glPrint proc in OpenGL? "Everything is relative." -- Even in the world of computers.

Share this post

Link to post
Share on other sites
To find a bounding box for an object do soemthing like this :

vec3_t min(9999, 9999, 9999)
vec3_t max(-9999, -9999, -9999)

for all verts
for (int j = 0; j < 3; j++)
if (currvert[j] > max[j])
max[j] = currvert[j];
if (currvert[j] < min[j])
min[j] = currvert[j];

I don''t know about the speed issues. I looked at NeHe''s glPrint thing and if you are using the method from tutorial #13 that could be a problem. Drawing strings using that method is really slow, you should look at the method that is demonstrated in tutorial #17.

Nate Miller

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!