Problems with integration into engine.

Topics: User Forum
May 3, 2007 at 4:24 AM
Edited May 3, 2007 at 4:25 AM
I'm having a problem as the title says.
I can't see my model.

Could deriving from game class and casting it back to game for the animator cause problems?
What i'm doing is passing in game in the ctor and assigning it as a member.

Here is my code for loading the model in an object class:

public override void LoadGraphicsContent(Microsoft.Xna.Framework.Graphics.GraphicsDevice device, Microsoft.Xna.Framework.Content.ContentManager content)
myModel = content.Load<Model>(modelPath);
myAnimator = new ModelAnimator(this.myGame, myModel);
standard = new AnimationController(this.myGame, myAnimator.Animations "idle" );
myAnimator.World = Matrix.Identity;
myAnimator.Visible = true;

foreach (ModelMesh mesh in myModel.Meshes)
foreach (BasicPaletteEffect effect in mesh.Effects)
effect.View = CameraManager.ActiveCamera.View;
effect.Projection = CameraManager.ActiveCamera.Projection;
effect.LightingEnabled = true;




That should display the model correct?
May 7, 2007 at 4:10 AM
Hmmm, this is a very important. Can anyone spot why I would not be seeing my model? I can see my model if I don't use the animation library but I need for animations obviously.
May 8, 2007 at 5:49 PM
Sorry - I've been very busy as of late. I'll be able to answer your question soon.