Sign in to follow this  

Using the vertex3i function

This topic is 4840 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

How is 3d space organized when it comes to signed integer vertex functions? Would I give up any flexibility compared to the vertex3f function? Is there any specific multiplier used to convert integer coordinates to float or vice-versa? The reason I want to stick with ints is because I want to use the radix sort in my engine.

Share this post


Link to post
Share on other sites
int's and floats are the same units, its just that if you use int's you can only use whole numbers as coordinates.

also, if you are using radix sort to sort by depth, you dont really need to use int's its possible to do with floats after a few modifications.

have you also considered that radix sort needs to be modified to work with signed (negative) integers?

cheers,
Danu

Share this post


Link to post
Share on other sites
Sign in to follow this