Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开发了一个 .obj 导入器,但是有一个小问题:
现在,我尝试反转索引,并反转法线。但他们都没有奏效,扭转法线出现了令人难以置信的错误。
你们有什么可能出错的建议,我该怎么办?
谢谢你
PS。预期的输出,忽略颜色:
可能来自 3 个不同的问题:1/面部剔除,尝试创建一个 D3D11_CULL_MODE 为 None、Front 和 Back 的光栅器并检查它是否有区别,也设置为线框可能有助于调试。
2/深度缓冲区可能设置不正确
3/您的进口商有问题,但需要查看代码以获得更多帮助。
I am currently trying to create a pathfinding method for my grid based game based on the A* method algorithm. However I am having a basic problem with manipulating variables within my PathNode class instances