Re: bytes_to_int
- Posted by your average Joe <spent_memory at hotmail.com> Feb 12, 2006
- 482 views
yes i have been using that method, and as far as i can tell, there seems to be some sort of clipping going on. by clipping i mean once i reach a certain magnitude it is not converting properly, if that makes sense. i can see it visually because i am mapping the returned values into a heightfield in opengl and they are all clipped at the exact same height so the tops of the hills at a certain elevation appear in the right spot x,z wise but appear below the other terrain points that arent clipped. The only thing i can trace it back to is this method of using {0,0} padding to convert them, note that the tops of the hills elevation wise map propely they just all have the same negative clipped magnitude