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.
我使用 obj2opengl.pl 将其中一个 .obj 模型转换为 .h 文件
它应该有一个包含对象颜色的 .jpg 文件吗?我应该在哪里或如何得到它?它是否链接到 .mtl 文件?
请停止这样做。使用适当的模型文件加载器来加载数据。
.mtl 文件确实包含要为模型加载的纹理的文件名。这是文件加载器真正派上用场的地方。加载图像最好委托给图像加载库,如 DevIL、imlib2 或类似库。