Page 1 of 1

Models by model are shown.

Posted: Fri Nov 05, 2010 1:01 am
by Machei
I dont know how it is called something, so this is just done. I can see models by anything model .I dont want this I ask so how fix?

Picture:
Image

Re: Models by model are shown.

Posted: Fri Nov 05, 2010 1:11 am
by Norbo
That looks like some of your depth-related render states aren't being set properly after using a sprite batch. Searching the app hub forums or some of Shawn Hargreaves' blog posts (regarding SpriteBatch render state handling in XNA 4.0) should show you what needs to be done.

Re: Models by model are shown.

Posted: Fri Nov 05, 2010 1:31 am
by Machei
Thanks. It was helpfull and works.

Oldest code:

Code: Select all

  spriteBatch.Begin()
            spriteBatch.End();
            base.Draw(gameTime);
Newest :

Code: Select all

   spriteBatch.Begin();
            base.Draw(gameTime);
            spriteBatch.End();
Sorry but that i should make any topics about physics.