-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Models to not render properly by default #5558
Comments
We should probably set this by default (if possible) |
https://github.com/MonoGame/MonoGame/blob/develop/MonoGame.Framework/Graphics/GraphicsDevice.cs#L280 So unless someone changes it before this point it would be set.
By default where? |
Looks like spriteBatch is messing this up. I'll check to see what happens
with the same code in XNA.
…On 8 March 2017 at 21:53, Tom Spilman ***@***.***> wrote:
You have to add the following code before you draw the model to get it to
work.
DepthStencilState.Default is the default state when the graphics device
is initialized.
https://github.com/MonoGame/MonoGame/blob/develop/
MonoGame.Framework/Graphics/GraphicsDevice.cs#L280
So unless someone changes it before this point it would be set.
We should probably set this by default (if possible)
By default where?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5558 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAxeecysGm1emehF4LzCZIvQhGF54RYxks5rjyNqgaJpZM4MXWtx>
.
|
|
When loading and rendering a 3d model using the same code as XNA the model looks transparent / inside out. You have to add the following code before you draw the model to get it to work.
GraphicsDevice.DepthStencilState = DepthStencilState.Default;
The text was updated successfully, but these errors were encountered: