Skip navigation

XNA texture draws all black when I try and draw it

OK, after about 2 hours of struggling with this problem, I discovered it was this:

basicEffect.VertexColorEnabled = false ;

Basically, it is an ERROR to have VertexColorEnabled on your BasicEffect and at the same time attempt to draw something using texturing.

So you are NOT ALLOWED to have VertexColorEnabled if you try and draw with a texture.

Check this out too, really useful tools for debugging DirectX apps are installed by default, you just have to explore them.

Shouldn’t the docs say SOMETHING about this in a really obvious place?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: