NoNameSampleUser
NoNameSampleUser

Reputation: 45

Displaying all sides of cube - XNA

I would like to display 6 sides of cube with texture: enter image description here

But this is what I get: enter image description here

Front, left and top side doesn't display and I have no idea why.

Upvotes: 2

Views: 158

Answers (2)

JasiRedHair
JasiRedHair

Reputation: 58

Select all faces in edit-mode an press Ctrl + N. Your normals will be recalculated and you can see your model properly.

Upvotes: 2

user4632995
user4632995

Reputation:

You need set appropriate RasterizerState (click, click) before drawing your model.

GraphicsDevice.RasterizerState = RasterizerState.CullCounterClockwise;

Using CullCounterClockwise or CullClockwise value depends on how your mesh builded.

Upvotes: 1

Related Questions