Re: bytes_to_int

new topic     » goto parent     » topic index » view thread      » older message » newer message

your average Joe wrote:
> 
> 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

Why don't you put a temporary check in the code where you are appending
the 2 zeros to print an error if any byte in your 4 byte sequence
exceeds the 256 size limit ?

Bernie

My files in archive:
motor.eu w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu