Using the vertex3i function

Started by
0 comments, last by silvermace 19 years, 6 months ago
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.
Advertisement
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
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website

This topic is closed to new replies.

Advertisement