Models by model are shown.

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Machei
Posts: 8
Joined: Tue Nov 02, 2010 12:04 am

Models by model are shown.

Post 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
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Models by model are shown.

Post 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.
Machei
Posts: 8
Joined: Tue Nov 02, 2010 12:04 am

Re: Models by model are shown.

Post 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.
Post Reply