Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: DirectX importing problem  (Read 5154 times)

0 Members and 1 Guest are viewing this topic.

raychaser

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
    • View Profile
DirectX importing problem
« on: October 13, 2007, 05:10:20 AM »

I am using Fragmotion to model 3D characters. Sometimes when I import them into WME I get strange results. I believe this has been covered a few times here in the forums but there has never been a really satisfactory answer that I have found. I've spent some time collecting evidence and I believe the problem lies within WME.

Here are some examples. These are two ways of exporting using FragMotion
http://www.mattreimer.com/a/WME1.jpg
http://www.mattreimer.com/a/WME2.jpg

The animation that is being played when this effect happens (you may be able to guess) is a breathing animation where the breathing bone scales (no rotation, no location shift). I can email someone the .x file but I'd rather not post it on the net.

For a minute if we ignore that fragmotion completely screws up the second case the important thing is that WME displays the model differently than the MS DirectX Viewers. It seems to me as if this would be a fairly simple fix of maybe not reading coordinates from the .x file in the right order or perhaps a wrong scaling factor. The animation looks right, it just seems to be scaled in the x and z direction by a factor of 2 or 3.

Please let me know if/how I can provide more information. What do you need?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5674
    • View Profile
    • Dead:Code Site
Re: DirectX importing problem
« Reply #1 on: October 13, 2007, 12:36:45 PM »

The second link is broken.
What I normally suggest is not to use matrix keys. The matrix keys have to be decomposed to translation-rotation-scale anyway to allow for smooth interpolation (the DX viewer doesn't do that). And I'd guess the wrong scale is the result of this decomposition.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

raychaser

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
    • View Profile
Re: DirectX importing problem
« Reply #2 on: October 13, 2007, 08:38:47 PM »

Thanks Mnemonic and sorry about the broken links. I lost the second file somewhere.

Incidentally the second picture is here:
http://mattreimer.com/a/WME2.JPG

When I try without matrix keys the distortion is HUGE!! I'm not really concerned with the fact that the lungs are distorted so much as the distortion of the rest of the model. I mean, look at that head!!! It's huge  :P

What I'm really curious about though is why the WME rendering is distorted compared to the DirectX viewer.

What would cause this?

« Last Edit: October 13, 2007, 08:41:32 PM by raychaser »
Logged

raychaser

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
    • View Profile
Re: DirectX importing problem
« Reply #3 on: October 15, 2007, 04:37:07 PM »

Ok, I never figured it out but instead I spent a whole weekend and managed to get Blender animations to export (!!!! ::rock)

I'm writing up a short guide for those who are interested. I'll try to post it some time this week. Nothing revolutionary or new, just a very specific set of steps you need to follow. Also I'm starting to work on the .x export script that comes with Blender so that there are less cleanup steps. Of course I'll post that too if I get it working.

So this means all my mac-y and linux-y development cohorts can now start work again.... even if they won't be able to play the game.   ;) and I can use blender which is 1. Free 2. Awesome 3. Did I say awesome?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5674
    • View Profile
    • Dead:Code Site
Re: DirectX importing problem
« Reply #4 on: October 15, 2007, 06:19:08 PM »

A flawlessly working Blender export would be indeed awesome :) Please keep us informed.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.16 seconds with 18 queries.