As i've replied to you on another question, currently there are lots of problems that arise when you try to use WebGL. Chunked 3D formats that aren't UTF-8 "decodable" (text) can't be consistently loaded without browser trickery with buffers (which aren't neither standard nor API/stable). In this case, you should implement your own 3DS loader on Javascript and make it run on both Firefox and Chrome (although the buffers trick isn't useful on chrome AFAIK).
Your best bet is to use a text format like OBJ or ASE. I myself have begun work on a JSON exporter for blender here that works nicely with WebGL, but of course, it is only useful if you're using Blender 2.5+.
You can use three.js javascript library to render model with webgl. Open 3ds model with the A3dsViewer. Click Export to the HTML5 in the toolbar and you will be able to preview the model in the browser.
发布评论
评论(2)
正如我在另一个问题中回答过的那样,目前当您尝试使用 WebGL 时会出现很多问题。如果没有 浏览器欺骗,无法一致加载 UTF-8“可解码”(文本)的分块 3D 格式带有缓冲区(既不是标准的也不是 API/稳定的)。在这种情况下,您应该在 Javascript 上实现您自己的 3DS 加载器,并使其在 Firefox 和 Chrome 上运行(尽管缓冲区技巧在 chrome 上没有用)。
最好的选择是使用 OBJ 或 ASE 等文本格式。我自己已经开始为搅拌机开发一个 JSON 导出器这里,它可以与 WebGL 很好地配合,但当然,它仅在您使用 Blender 2.5+ 时才有用。
As i've replied to you on another question, currently there are lots of problems that arise when you try to use WebGL. Chunked 3D formats that aren't UTF-8 "decodable" (text) can't be consistently loaded without browser trickery with buffers (which aren't neither standard nor API/stable). In this case, you should implement your own 3DS loader on Javascript and make it run on both Firefox and Chrome (although the buffers trick isn't useful on chrome AFAIK).
Your best bet is to use a text format like OBJ or ASE. I myself have begun work on a JSON exporter for blender here that works nicely with WebGL, but of course, it is only useful if you're using Blender 2.5+.
您可以使用 Three.js javascript 库通过 webgl 渲染模型。
使用 A3dsViewer。单击工具栏中的“导出到 HTML5”,然后
您将能够在浏览器中预览模型。
You can use three.js javascript library to render model with webgl.
Open 3ds model with the A3dsViewer. Click Export to the HTML5 in the toolbar and
you will be able to preview the model in the browser.