Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About stream775

  • Rank

Personal Information

  • Interests
  1. I was confusing Offset matrix with local transformation matrix the entire time. Can someone please guide me how to calculate offset matrices from Local Transformation Matrices for bones?
  2. I found the issue. I was not copying the color to destination vertex buffer from source vertex buffer in UpdateSkinnedMesh. Now, I can see the vertices with color on them. Although, it's still a mess, but I am fixing the code in UpdateSkinnedMesh.
  3. EDIT: I've got everything working, even animations. This topic can be locked. Also, the file format was very horrible, so I was doing a number of things wrong. Hello! I wrote a simple bones system that renders a 3D model with bones using software vertex processing. The model is loaded perfectly, but I can't see any colors on it. For illustration, you can see the 3D lines list, the bones ( 32 bones ) are in correct position ( bind pose ). Now, here's the problem. When I try to render the mesh with transformations applied then I see this: As you can see the 3D lines are disappearing, I'm guessing the model is rendered, but the colors are not visible for whatever reason. I tried moving my camera around the line list, but all I can see is some lines disappearing due to the black color of vertices? I'm not loading any textures, am I suppose to load them? However, if I render the vertices without applying ANY bone transformations, then I can see it, but it's a mess, obviously. If you're wondering why it's red, I have set color of these vertices ( only half of them ) to red and the rest half is white. First of all, my apologies for the messy code, but here it is: I'm not sure if vertices are suppose to have weights in them for software vertex processing. I'm storing them in a container, so you don't see them here. #define CUSTOMFVF ( D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_DIFFUSE ) struct CUSTOMVERTEX { D3DXVECTOR3 Position; D3DXVECTOR3 Normal; DWORD Color; }; This is how I store the vertices in container and give them red and white color: This is how I create the device: For every frame: This is the UpdateSkinnedMesh method: I have debugged bone weights and bone indices. They are okay. Bone weights add up to 1.0f, so I'm really wondering why I can't see the model with colors on it?
  • 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!