Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About cofenen

  • Rank

Personal Information

  • Interests

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank you very much for both of your answers. Really great community you got here @lawnjelly That snippet really helped me understand how I can go with this. I am also curious about what you said for the orientation. Could you also share an example code for that when you have the time? Positions are something, but I get really confused when it comes to 3d rotation stuff. An example would help a lot. Thanks. I am reading the model data from an undocumented binary format. All I have is vertices/indices data, and bone count/hierarchy. I am pretty sure no bind pose bone position/orientation is stored. Animation files might have these values, but I don't want to bother with those at all, and also there is no guarantee that they store the bind pose (maybe first frame but doesn't have to be). So vertex weights seemed like the only way to me.
  2. I want to calculate just approximate positions. If you think of it like a humanoid model, for example the left shoulder vertices would have weight values nearer to 1.0 (0 - 1.0 range weights) for the left shoulder bone. This is quite normal because the left shoulder bone would generally effect the vertices near the left shoulder most. Of course left elbow vertices might have weight values for this bone too, but they wouldn't be as "strong" as the vertices in the shoulder area. So based on this, can't we say that the left shoulder bone should be located approximately where the left shoulder vertices are (like in the middle of them)? I would like to do this for every bone and position them as good as possible just based on weight values. Do you think this makes some sense? I was not sure, so I wanted to get some opininions.
  3. Assuming that you know how many bones should be in the skeleton, and you have the bone hierarchy, is it possible to calculate the bind pose of the bones just based on the vertex weights? To elaborate it a bit, let's say you have a skinned mesh, and each vertex of this mesh has 4 weights (at most). So you have 4 weight values and 4 bone ids for each vertex. Also let's say you have a skeleton with 10 bones, and all you have is the bone hierarchy. You need to position the bones to match the mesh (bind pose). I am wondering if this can be done just using the weights/bone ids? I don't know how to approach this so any idea is appreciated. Thank you.
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!