将动画maya模型转换为JSON以与三个js一起使用 [英] Convert an animated maya model to JSON for use with three js

查看:1767
本文介绍了将动画maya模型转换为JSON以与三个js一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在maya 2008中完成了一个maya模型。我需要能够将它转换为JSON格式,以便与三个js一起使用。到目前为止,我已经尝试了

I have a maya model done in maya 2008. I need to be able to convert it a JSON format for use with three js. So far , I have tried

1)threeJsFileTranslator.py这是一个用于导出模型的maya插件,并作为threejs包的一部分提供。

1) threeJsFileTranslator.py which is a maya plugin to export a model and is provided as a part of the threejs package.

2) MDD-OBJ-EXPORTER - 有了这个,我成功地将动画模型导入了blender,但当我尝试将它导出到threejs时,js文件无效。

2) MDD-OBJ-EXPORTER - with this , I was successfully able to import the animated model into blender but when I tried to export it to threejs , the js file didn't work.

过去两周我对这个问题感到不满。所以,如果这个问题太愚蠢,请耐心等待,但我需要帮助才能成功地将动画maya模型转换为json格式。

I am breaking my head over this from the past 2 weeks. So please bear with me if this question is too silly but I do need help with successfully converting an animated maya model to json format.

请不要关注此问题或关闭这已经回答/可能重复,因为我已经通过以下两个SO帖子,他们没有太大的帮助

Please don't downvote this question or close this as already answered / possible duplicates because I already went through the following two SO posts and they weren't of much help

将动画模型从MAYA导入到BLENDER到三个JS

MAYA TO THREE JS WITH动画

这个问题需要一个规范的答案,因为这可能会使多个人受益。一旦SO允许我开始一个人,我将奖励这个问题。赏金。

This question needs a canonical answer since this may benefit multiple people.I will award a bounty to this question as soon as SO allows me to start a bounty.

非常感谢!

推荐答案

您可以将模型从Maya导出为FBX,然后将其加载到 http://Clara.io (在线3D建模,动画和渲染工具)。从那里你可以很容易地以各种ThreeJS JSON格式导出它。

You can export your model as FBX from Maya and then load it into http://Clara.io (the online 3D modeling, animation and rendering tool). From there you can export it in the various ThreeJS JSON formats pretty easily.

http ://Clara.io 支持加载至少以下格式:

http://Clara.io supports loading at least the following formats:


  • .blend - Blender 3D

  • .3ds - 3D Studio

  • .dae - Collada

  • .dxf - AutoCAD

  • .fbx - FilmBox(Autodesk FBX)

  • .irr - Irritch Scenes

  • .irrmesh - Irritch Meshes

  • .iv - Inventor

  • .json - Three.JS Meshes

  • .lwo - Lightwave Objects

  • .lws - Lightwave Scenes

  • .lxo - Modo Objects

  • .q3d,.q3s,.md,.md2,.md3 ,. md4 - Quake / Doom Meshes

  • .mtl / .obj - Wavefront Objects

  • .ply - 多边形类型

  • .pov - PovRAY

  • .shp - 形状文件

  • .stl - 立体光刻(3D打印)

  • .vismat,.vismatzip - VRay Vismat

  • .xgl,.zgl,.wrl,.wrz - VRML X3D场景文件

  • .blend - Blender 3D
  • .3ds - 3D Studio
  • .dae - Collada
  • .dxf - AutoCAD
  • .fbx - FilmBox (Autodesk FBX)
  • .irr - Irritch Scenes
  • .irrmesh - Irritch Meshes
  • .iv - Inventor
  • .json - Three.JS Meshes
  • .lwo - Lightwave Objects
  • .lws - Lightwave Scenes
  • .lxo - Modo Objects
  • .q3d, .q3s, .md, .md2, .md3, .md4 - Quake/Doom Meshes
  • .mtl/.obj - Wavefront Objects
  • .ply - Polygon Type
  • .pov - PovRAY
  • .shp - Shape Files
  • .stl - Stereolithography (3D Printing)
  • .vismat, .vismatzip - VRay Vismat
  • .xgl, .zgl, .wrl, .wrz - VRML X3D Scene Files

这篇关于将动画maya模型转换为JSON以与三个js一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆