Miguel P
Miguel P

Reputation: 1292

C++ Directx 11 rendering issue

I have developed an .obj importer, but there is a small little problem:

A camper, which is pretty screwed up...

Now, I've tried to reverse the indices, and also reverse the normals. But none of them worked, reversing the normals went incredible wrong.

Do you guys have any suggestions of what might be wrong, what can i do?

Thank You

PS. The expected output, ignore the colors:

enter image description here

Upvotes: 0

Views: 532

Answers (1)

mrvux
mrvux

Reputation: 8973

Could be coming from 3 different problems: 1/Face culling, try to create a rasterizer with D3D11_CULL_MODE to None, Front and Back and check if it makes a difference, also setting as wireframe might help for debugging.

2/Depth buffer might not be set properly

3/Problem with your importer, but would need to see the code for more help.

Upvotes: 1

Related Questions