今天我遇到了wowhead's 3d model viewer(你应该能够看到右侧横幅上的交互式3D蜘蛛模型),这似乎是使用HTML5画布来渲染交互式3D模型。问题是我仍然没有弄清楚如何对个人应用程序做同样的事情。
也许有人可以分享这种类型的3D功能的一些知识。
答案 0 :(得分:0)
I've made something for a prototype for a school project a while ago. I used the GLGE framework after failing with SceneJS.
The result, ugly as it may be, shows how to load and unload models in a WebGL view. This results in the possibility to configure an action figure. The demo can still be found here, and I have no intention to bring it down any time soon.
http://goleztrol.nl/SO/GLGE/03/
I haven't done much experimenting with 3D since, and I don't remember all the details, but it was one of my first experiments, only a couple of dozens of lines of code, so it should be pretty straightforward.
The code is well commented although it is in Dutch. So if you run into problems, please let me know, and I'll try to translate the comments and maybe put everything in a fiddle and maybe dive into it again to explain details that are unclear to you.