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

查看:126
本文介绍了在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中制作新模型.如果您的目标是制作游戏,那么您需要学习 Maya Blender .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

使用高度详细的模型时,大多数时候需要烘焙地图.在Maya中使用V-ray或任何渲染器使用复杂材质生成材质时,需要将最终结果烘焙到可能的地图类型中,例如颜色,法线,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进行游戏电影>和 art .就这么简单.

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天全站免登陆