Jump to content
  • Advertisement
Sign in to follow this  
Technoid

OpenGL Serious Bone Problem

This topic is 5173 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 wonder if anyone can help me out. I'm trying to display a set of bones which are stored in the Serious Sam ascii format. The file format looks like this: BONES 4 { NAME "Chest"; PARENT "MidTorso"; LENGTH 0.257562; { 1,3.77454e-012,3.02441e-011,2.2423e-020, 0,0.992302,-0.123842,2.31046e-011, -3.04787e-011,0.123842,0.992302,-0.182372; } NAME "MidTorso"; PARENT "LowerTorso"; LENGTH 0.182372; { 1,6.3587e-013,1.02056e-011,-4.29551e-020, 0,0.998065,-0.0621855,3.23469e-009, -1.02254e-011,0.0621855,0.998065,-0.108716; } NAME "LowerTorso"; PARENT "Pelvis"; LENGTH 0.108716; { 1,2.35184e-010,2.53293e-012,3.02068e-021, 0,0.0107694,-0.999942,0, -2.35198e-010,0.999942,0.0107694,-0.152019; } NAME "Pelvis"; PARENT ""; LENGTH 0.152019; { 1,0,-4.58055e-012,2.73614e-008, 0,1,0,1.16604, 4.58055e-012,0,1,0.0936481; } According to the spec, the bone posistions are stored in the standard Opengl matrix format, with the last row omitted since it's assumed to be 0,0,0,1; How would I draw the bones once I have them loaded in? Any insights appreciated.:)

Share this post


Link to post
Share on other sites
Advertisement
It looks like you've got everything you'd want - the 12 values look like they show position and orientation. You've even got a bone length, which isn't really necessary.

Just draw some lines based on the info you've got.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!