Sign in to follow this  
subsonix

Using the vertex3i function

Recommended Posts

subsonix    122
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
silvermace    634
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this