Displaying Toasters

Developer
Apr 15, 2007 at 7:54 PM
I'm still confused. The file is part of the project and it says in its Properties
Content Importer: X File - XNA Framework
Content Processor: Model - XNA Framework

This shows the spaceship
myModel = content.Load<Model>("Content\\Models\\p1_wedge");
// myModel = content.Load<Model>("Content\\Models\\toaster3");

This shows just a blue screen.
// myModel = content.Load<Model>("Content\\Models\\p1_wedge");
myModel = content.Load<Model>("Content\\Models\\toaster3");

The project is just the one from the XNA tutorial.
Coordinator
Apr 16, 2007 at 7:38 AM
I've posted an example build on the Toasted! project to show how to render the toaster. Toasted example

Chances are you were actually rendering the toaster correctly, but just not gazing at it with your virtual eyeball. There are a number of reasons why this may occur:
  • Models have local coordinates, which can offset its location... for example, you may think it's drawing at a certain spot but it's actually showing up 5 units to the right, placing it out of view
  • The projection matrix could be clipping it out of the picture (the far plane)
  • The view matrix could be pointing in the wrong direction
Developer
Apr 17, 2007 at 12:09 AM
Well, I can see the twirling toaster ... still trying to understand how it's done.