Archived

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

Carradine

Rational Bounding Box for buffer coordinates

Recommended Posts

Carradine    303
I wanted to know if there is a universal method to scaling the polygons that are on the screen in a scene. i.e. a 3D rendering of a baseball stadium for example. What would be the acceptable scale to display it in? Would the 4 corners of the field be 0.0f-1.0f, with all the polygons being within those numbers? Or is it also acceptable to push coordinates into the buffer at -100000.0f to 100000.0f?

Share this post


Link to post
Share on other sites
Steveyboy    122
It really depends on how accurate you want thigns to be. Bear in mind that with a Z-buffer, you want to stay away from huge Z-values, since the Z-buffer messes up. I always try to keep my coordinates in the range -5000.0 to +5000.0, which should be accurate enough.

HTH, Steve

Share this post


Link to post
Share on other sites