简体   繁体   中英

C++ Directx 11 rendering issue

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

露营者,这真是搞砸了...

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:

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM