最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Collada to JSON - Stack Overflow

programmeradmin6浏览0评论

I try to display some Collada files with WebGL and Three.js. I tried with THREE.ColladaLoader() but it returns some materials errors.

I see it's possible to convert the file to JSON and then import it to WebGL.

I look around but didn't any solution to do that...

Any clue ?

I try to display some Collada files with WebGL and Three.js. I tried with THREE.ColladaLoader() but it returns some materials errors.

I see it's possible to convert the file to JSON and then import it to WebGL.

I look around but didn't any solution to do that...

Any clue ?

Share Improve this question edited Dec 30, 2011 at 16:53 Andreas Köberle 111k58 gold badges280 silver badges307 bronze badges asked Dec 30, 2011 at 9:52 XavierXavier 4,0173 gold badges30 silver badges57 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 3

COLLADA2Json may be what you are looking for.

edit:

gltf is a starndard now. (Json + binary). The converter is here: https://github./KhronosGroup/collada2gltf

One option could be to import the Collada file into Blender.

If it survives importing and still looks as expected, you could then export it from there using the THREE.js's Blender exporter .

Collada is notoriously difficult to parse. If you have one that doesn't parse, you'll have to write your own parser or fix one that you want to use. I gave up trying to use collada because of that, I'm now using 3DS files

发布评论

评论列表(0)

  1. 暂无评论