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.
我已经问过这个问题,但我没有得到我的答案。顺便说一句,我发现了一些新东西。我想从 Solidworks 导出的 wrl 文件中显示一个 3D 模型。该文件包含三角形的顶点,我正在使用 glBegin(GL_TRIANGLES) 绘制它们,但它看起来不太好,也没有看起来很3D!我尝试使用 gluSphere 在该场景中绘制一个具有相同照明设置的球体,它看起来非常漂亮和 3D!!!! 有什么关于 Glu 的吗? 我应该使用 Glu 来绘制三角形吗?
要获得良好的阴影,您还应该为三角形提供法线。