Thread: DIRECTX 9 , Rendering Bones

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    319

    DIRECTX 9 , Rendering Bones

    What i want todo is render the bones that make up the Tiny.x mesh, I have the amount of bones data and the bones names, in this skinned mesh example the code looks like this to get the localboneoffsets matrix's

    Code:
    for(UINT i = 0; i < mNumBones; ++i) //35
    	{
    		offsetTemp = *mSkinInfo->GetBoneOffsetMatrix(i);
    		toRootTemp = *mToRootXFormPtrs[i];
    		mFinalXForms[i] = offsetTemp * toRootTemp;
    }

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    You can render spheres where the bones are which usually gives a good representation of the overall bone structure.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 14
    Last Post: 12-31-2006, 09:49 AM
  2. Rendering problems (DirectX?)
    By OnionKnight in forum Tech Board
    Replies: 0
    Last Post: 08-17-2006, 12:17 PM
  3. bare bones grades program
    By stormy in forum C Programming
    Replies: 6
    Last Post: 09-13-2005, 04:06 PM
  4. Rendering primitives in DirectX
    By confuted in forum Game Programming
    Replies: 0
    Last Post: 08-16-2003, 10:47 AM
  5. DirectX 8: Creating the DirectX Object
    By Toraton in forum Game Programming
    Replies: 3
    Last Post: 11-28-2002, 03:45 AM