Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Animating .x files with MDX9

Animating .x files with MDX9

Scheduled Pinned Locked Moved C#
tutorialquestionlearning
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JDUK
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • J JDUK

      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

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      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]

      J 1 Reply Last reply
      0
      • H Heath Stewart

        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]

        J Offline
        J Offline
        JDUK
        wrote on last edited by
        #3

        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?

        H 1 Reply Last reply
        0
        • J JDUK

          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?

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          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]

          J 1 Reply Last reply
          0
          • H Heath Stewart

            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]

            J Offline
            J Offline
            JDUK
            wrote on last edited by
            #5

            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 :)

            J 1 Reply Last reply
            0
            • J JDUK

              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 :)

              J Offline
              J Offline
              JDUK
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups