Animating .x files with MDX9
-
I've just read through the 1st 13 chapters of Tom Millers MDX9 book. The examples given basicly leave you with a single looping animation from a .x file. Are there tutorials or guides out there on how to get a better level of interaciton with the .x animation? For example a way to play different animations on a key press or only play a certain amount of frames from the .x file? Thanks
-
I've just read through the 1st 13 chapters of Tom Millers MDX9 book. The examples given basicly leave you with a single looping animation from a .x file. Are there tutorials or guides out there on how to get a better level of interaciton with the .x animation? For example a way to play different animations on a key press or only play a certain amount of frames from the .x file? Thanks
IIRC, keep reading. :) There's also a couple of examples in the DX9 SDK that describe what you are looking for. You can download it (if you haven't already) from http://msdn.microsoft.com/directx[^]. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]
-
IIRC, keep reading. :) There's also a couple of examples in the DX9 SDK that describe what you are looking for. You can download it (if you haven't already) from http://msdn.microsoft.com/directx[^]. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]
IIRC, keep reading. Nope scanned ahead and 13 is the last chapter covering 3D... after that its sound, 2d graphics, user input and networking then the back cover. :( I cant find an example in the SDK either that shows how to pull various animations out of a .x file :( any clue as to which one i should be looking at?
-
IIRC, keep reading. Nope scanned ahead and 13 is the last chapter covering 3D... after that its sound, 2d graphics, user input and networking then the back cover. :( I cant find an example in the SDK either that shows how to pull various animations out of a .x file :( any clue as to which one i should be looking at?
I don't have the book with me at work, but I'm fairly sure (hence, "IIRC") it described pulling animations out of meshes. I'll have to look tonight. As far as the SDK samples go I was mistaken. Upon further investigation a mesh was not used to animate the helicopter (in the August refresh). The rest are just applying transforms to the world for a loaded mesh. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]
-
I don't have the book with me at work, but I'm fairly sure (hence, "IIRC") it described pulling animations out of meshes. I'll have to look tonight. As far as the SDK samples go I was mistaken. Upon further investigation a mesh was not used to animate the helicopter (in the August refresh). The rest are just applying transforms to the world for a loaded mesh. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]
Yes the example shows you how to make an animation loop from a.x file with only 1 animation in it. It doesnt really stop and say: "if you only want to play frames x to y do this" or "If you want to play animations X or y do this" Ihave yet to re-read it and impliment the code (i read it once and browse the source code then re-read and do it my self) but from what i've read it basicaly just plays the animation in a loop... What would have been handy is if the book used a model with more animations as an example and showed you how to activate each one indervidualy .eg press W to start walk animation. C to srart crouching J to start jumping..... would be a much more apt example of how to use mesh animaiton in games.or maybe im asking to much :)
-
Yes the example shows you how to make an animation loop from a.x file with only 1 animation in it. It doesnt really stop and say: "if you only want to play frames x to y do this" or "If you want to play animations X or y do this" Ihave yet to re-read it and impliment the code (i read it once and browse the source code then re-read and do it my self) but from what i've read it basicaly just plays the animation in a loop... What would have been handy is if the book used a model with more animations as an example and showed you how to activate each one indervidualy .eg press W to start walk animation. C to srart crouching J to start jumping..... would be a much more apt example of how to use mesh animaiton in games.or maybe im asking to much :)
Having looked through the C++ samples on the DX9 SDK it seems what im after is a C# version of the MultiAnimation demo. (the one where you add models to a scene then they move around firing off different animations like walk, run, loiter, wave etc) Any one know of a link to any thing like this? Thanks