DIRECTX 9 , Rendering Bones

This is a discussion on DIRECTX 9 , Rendering Bones within the Game Programming forums, part of the General Programming Boards category; What i want todo is render the bones that make up the Tiny.x mesh, I have the amount of 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
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    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, 01:17 PM
  3. bare bones grades program
    By stormy in forum C Programming
    Replies: 6
    Last Post: 09-13-2005, 05:06 PM
  4. Rendering primitives in DirectX
    By confuted in forum Game Programming
    Replies: 0
    Last Post: 08-16-2003, 11: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21