no hierarchy?

Topics: User Forum
Feb 28, 2007 at 4:50 PM
hey was wondernig if anyone can tell me what is going on here?

I created my own character in 3DS Max, exported it as a X-file, imported it into your animation framework (working off the dwarf example) but when i try to play the program it gives me this error:

no HIERARCHY found
Fragment identifier "line 1".

this is pointing to my .X file.

any clue as to why this is happening?
or how i can get a hierarchy in there?
Feb 28, 2007 at 5:45 PM
nvm , fixed that.. but now I'm getting this error:

Unable to cast object of type 'Microsoft.Xna.Framework.Graphics.BasicEffect' to type 'Animation.BasicPaletteEffect'.

just to note my character is physiqued
Coordinator
Feb 28, 2007 at 6:46 PM
That means that at least one mesh on your model didn't contain skinning info - in which case, the effect is set to BasicEffect instead of BasicPaletteEffect.

One way to bypass it is to do the following when iterating through the effects:

foreach (Effect effect in mesh.Effects)
{
if (effect is BasicPaletteEffect)
{
BasicPaletteEffect paletteEffect = (BasicPaletteEffect)effect;
// Write your effect parameter modification code here
...
}
else if (effect is BasicEffect)
{
BasicEffect basicEffect = (BasicEffect)effect;
// Write your effect parameter modification code here
...
}
}
}
Feb 28, 2007 at 9:35 PM
hello carthous i have the same issue that you have when you has opened this thread

no HIERARCHY found
Fragment identifier "line 1".

how do you fix it ?