WebGL 法线和索引 / 定向照明 / X3D / Blender

发布于 2025-01-08 00:43:18 字数 420 浏览 4 评论 0原文

我在 html 中提出了一个问题,因为我认为使用图像来提出问题会有所帮助。 http://www.jamestrusler.co.uk/files/webglquestion/question1.html

这是在 html 页面中也可以看到的覆盖问题:

  1. Can you spin/scale normals without Rotating/Scaling the vertices(已经有翻译)制作) - 因为这可能是一个问题的答案。
  2. 关于为什么 Blender(x3d 导出)给我的法线、索引和顶点似乎没有正确渲染多色对象的任何想法。 (请参考本站问题)

I have put a question up in html as I think it helps to have images to ask the question.
http://www.jamestrusler.co.uk/files/webglquestion/question1.html

Here is the covering question that can be seen within the html page too:

  1. Can you rotate/scale normals without Rotating/Scaling the vertices (Which have already had translations made) - as this may be the answer to one problem.
  2. Any ideas as to why the normals, indices and vertices that are given to me by Blender (x3d export) do not seem to be rendering multicoloured objects properly. (please refer to site question)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

本王不退位尔等都是臣 2025-01-15 00:43:18

我用这个解决了这个问题:

obj[a].Transform.Group.Shape[b].vertexIndexBuffer = gl.createBuffer();
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, obj[a].vertexIndexBuffer);

I fixed the problem with this:

obj[a].Transform.Group.Shape[b].vertexIndexBuffer = gl.createBuffer();
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, obj[a].vertexIndexBuffer);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文