简体   繁体   English

Three.js不会加载搅拌器模型

[英]Three.js won't load blender model

I am new to Blender (using 2.70a) and I made a mesh from a bezier curve. 我是Blender的新手(使用2.70a),并且根据贝塞尔曲线创建了网格。 [File: http://ivybaumgarten.com/3d/models/wiggler5.blend ] [文件: http//ivybaumgarten.com/3d/models/wiggler5.blend ]

Exporting it to three.js format gives just a shell of an export with nothing inside: http://pastebin.com/aVNnjE5f 将其导出为three.js格式只会得到一个导出的外壳,里面没有任何内容: http ://pastebin.com/aVNnjE5f

Exporting it as Collada contains something that looks promising ( http://pastebin.com/XFf7wMR8 ), but if I replace monster.dae from this example ( http://threejs.org/examples/webgl_loader_collada.html ) with my model, it doesn't show up. 将其导出为Collada包含看起来很有前途的东西( http://pastebin.com/XFf7wMR8 ),但是如果用我的模型替换本示例( http://threejs.org/examples/webgl_loader_collada.html )中的monster.dae,它没有显示。 Exporting just a cube shows up fine. 仅导出一个多维数据集就可以了。

In Blender, it also appears in Texture view, but when I switch over to Rendered, it's blank. 在Blender中,它也出现在“纹理”视图中,但是当我切换到“渲染”时,它是空白的。

What am I doing wrong? 我究竟做错了什么?

A friend pointed out that the export was empty because I hadn't selected anything before exporting. 一位朋友指出,导出是空的,因为导出之前我没有选择任何内容。 Selecting the model before exporting made the model show up in my three.js project. 在导出之前选择模型会使模型显示在我的three.js项目中。

I still don't know why Render is empty. 我仍然不知道为什么渲染为空。

I don't know three.js and collada but if you want to export your mesh or a scene in order to show it through the Web via WebGL, I suggest you to use babylonjs . 我不知道three.js和collada,但是如果您要导出网格或场景以便通过WebGL在Web上显示它,建议您使用babylonjs I have already done an export from 2.69 & 2.71 and it works well. 我已经从2.69和2.71导出了,效果很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM