Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. matrix, inverse 3d orientation, Oo help..

matrix, inverse 3d orientation, Oo help..

Scheduled Pinned Locked Moved C / C++ / MFC
game-devjsonhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kuniva
    wrote on last edited by
    #1

    Well, i'm trying to write a plugin for a 3d application to read a certain 3d model format. I have it all worked out except for the bone part. The game the models come from came with some documentation about the file format used for the 3d models but its not very clear to me, so i was hoping maybe it would be to someone here, cause i'm really not that good with these things.. A bone in the format has the following properties: RestTranslate, RestMatrixInverse, SiblingID, ChildID and ParentID. The RestTranslate are just the coordinates of the bone in space. The siblingID, childID and parentID are the ID's of the sibling/child/parent bones but the part i dont get is the RestMatrixInverse which is supposed to give the "inverse orientation" of the bone, here's what description is given:

    Field Size Comment

    RestMatrixInverse Matrix34 The inverse orientation of the bone in the at-rest pose

    The type of this field is a float[3][4] and somehow it contains the orientation of the bone but i cant get it right.. Do i have to inverse the matrix and then i can get the orientation in euler format? or what? .. if this looks familiar to someone please help me out! Thank you for reading. Kuniva --------------------------------------------

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups