• Advertisement

Archived

This topic is now archived and is closed to further replies.

Endian order of Ligwtwave objects.

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

I was hoping some one could tell me the endian order of Lightwave objects. Thanks ahead of time.. Im still here?

Share this post


Link to post
Share on other sites
Advertisement
From the docs:

"Integers can have 1, 2 or 4 bytes and can be signed or unsigned. The most significant byte comes first in the file, so bytes read into memory should be reversed before being interpreted on Intel and compatible CPUs."

Hope that helps. (I can never remember which endian is what)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Yeah.. that reverse byte order sure is a doosey

Share this post


Link to post
Share on other sites
In the lightwave SDK, there is a small program written in C to take a Lightwave object apart and create a text file on everything in it. That''s what my converter to OpenGL is based on.

You should be able to download the SDK fron Newtek''s website, if you can''t give me you''re email address and I''ll email you the code and a compiled program.

Share this post


Link to post
Share on other sites
Instead of assembly to byte shift c++ has the << and >> for shifting by the operator on the right hand side left or right.

Thanks for the web sites people.

Share this post


Link to post
Share on other sites

  • Advertisement