在 Unity 中处理 autocad 对象 [英] Dealing with autocad objects in Unity

查看:56
本文介绍了在 Unity 中处理 autocad 对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Unity 开发的新手,我在 Autocad 开发方面有很好的经验.是否可以使用 3d 实体 &在autocad中创建的3d网格地形并在Unity界面中显示并获取其属性(如3D纯色、尺寸、手柄等.)

I am new in Unity development and I have good experience in Autocad development. Is it possible to use 3d solids & 3d mesh terrains created in autocad and display it in the Unity interface and also get its properties (such as 3D solid color, dimensions, handles etc..)

推荐答案

Unity 支持 .FBX、.dae (Collada)、.3DS、.dxf 和 .obj 文件.如果您的 Autocad 可以导出到其中任何一个,那么答案是.有可能请阅读以下内容.

Unity supports .FBX, .dae (Collada), .3DS, .dxf and .obj files. If your Autocad can export to any of these then the answer is yes. It is possible but read below.

在 Autocad、SolidWorks 或其他类似软件中生成的对象不应以任何方式直接导入到 Unity.它对 Unity 来说太重了.如果您想使用任何这些软件中的模型,请将它们导出到 Maya 或 Blender 等软件,然后清理模型.在导入 Unity 之前减少多边形数量.

Objects produced in Autocad, SolidWorks or other similar software should not be imported to Unity directly by any means. Its too heavy for Unity. If you want to use your models from any of these software, export them to software such as Maya or Blender then clean the models up. Reduce the poly counts before importing into Unity.

请注意,清理模型需要时间.您应该花时间在 Maya 或 Blender 中制作新模型.如果您的目标是制作游戏,那么您需要学习 MayaBlender.Autocad 不用于此.由于您已经在使用 Autocad,我建议您使用 Maya,因为现在 UI 看起来很相似.

Note that it will take time to clean the models up. You should spend that time making new models in Maya or Blender. If your goal is to make a game, then you need to learn either Maya or Blender. Autocad is not used for that. Since you are already using Autocad, I suggest you use Maya since the UIs are now made to look similar.

编辑:

我看到下面的答案表明在 Unity 中使用 Autocad 模型或在 Autocad 中对对象建模是完全没问题的.这不仅仅是创建模型.您必须在模型上做一些工作以使其看起来不错,甚至可以与 Unity 的渲染引擎一起正常工作.不使用 Autocad 对游戏对象建模的原因有很多:

I see an answer below suggesting that it's totally fine to use Autocad models in Unity or model the objects in Autocad. It's not just about creating models. You have to do some work on the models to make it look good and even work properly with Unity's render engine. Here are many reasons not to use Autocad to model your game objects:

  • 1.UV 映射/展开.
  • 1.UV mapping/unwrapping.

在将模型导入游戏引擎之前,您必须解开模型的 UV.没有这个,就很难做纹理,你会遇到问题.更不用说被称为纹理接缝"的最大问题之一.

You have to unwrap the model's UV before importing the model into a game engine. Without this, it's hard to do texturing and you'll run into issues. Not to mention one of the biggest issue called "texture seams".

  • 2.纹理化模型.
  • 2.Texturing the model.

同样,这是在 Maya 和 Blender 等程序中完成的,而不是 Autocad.

Again, this is done inside programs like Maya and Blender not Autocad.

  • 3.烘焙纹理/贴图
  • 3.Baking textures/Map

在处理高细节模型时,大多数情况下您需要烘焙地图.当使用 V-ray 或 Maya 中的任何渲染器生成具有复杂材质的材质时,您需要将最终结果烘焙成多种类型的贴图,例如颜色、法线、alpha....这也适用于光照烘焙.

You need to bake maps most of the times when working with high detailed models. When generating materials from V-ray or any renderer in Maya with complex materials, you need to to bake the final result into may types of maps such as color, normal, alpha.... This also applies to light baking.

  • 4.地图传输

最初,您对高多边形进行建模,然后将贴图转移到低多边形.使用 Autocad 无法做到这一点.这非常重要,因为它减少了游戏中的多边形数量.

Initially, you model high poly then transfer the map to a low poly. You can't do this with Autocad. This is very import as it reduces the number of polys in your game.

当涉及到游戏开发时,上述所有内容都非常重要,但 Autocad 无法处理这些内容.

Everything mentioned above are very important when it comes to game development but Autocad is not made to handle those.

使用正确的工具完成工作.将 Autocad 用于 工程,将 Maya 或 Blender 用于 游戏电影艺术.就这么简单.

Use the right tool for the job. Use Autocad for engineering and Maya or Blender for games, movies and art. It's as simple as that.

这篇关于在 Unity 中处理 autocad 对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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