Working with autocad objects in Unity

I am new to Unity, and I have good experience in developing Autocad. Is it possible to use 3D arrays and 3D grids created in autocad and display them in the Unity interface, as well as get its properties (such as 3D solid color, dimensions, pens, etc.).

+6
source share
2 answers

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

Objects created in Autocad, SolidWorks, or other similar software should not be imported directly into Unity by any means. It is too hard for Oneness. If you want to use your models from any of these programs, export them to software such as Maya or Blender, then clean the models. Reduce the number of policies before importing into Unity.

Please note that it will take time to clean the models. You should spend this time creating new models in Maya or Blender. If your goal is to make a game, you need to recognize either Maya or Blender . Autocad is not used for this. Since you are already using Autocad, I suggest you use Maya, as the user interfaces are now made similar.

EDIT

I see the answer below suggesting to fully use Autocad models in Unity or model objects in Autocad. It is not just creating models. You have to do some work on the models so that they look good and even work normally with the Unity rendering engine. Here are some reasons not to use Autocad to model game objects:

  • 1 . UU mapping / deployment.

You need to deploy the UV model before importing the model into the game engine. Without this, it is difficult to perform texturing, and you will run into problems. Not to mention one of the biggest problems called texture seams.

  • 2 . Model extension.

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

  • 3 . Textures / Map

You need to bake cards in most cases when working with detailed detailed models. When creating materials from V-ray or any rendering in Maya with complex materials, you need to bake the final result in the form of card types such as color, normal, alpha ... This also applies to light baking.

  • 4 .Map Transfer

First you model high poly, and then transfer the map to low poly. You cannot do this with Autocad. This is very important, as it reduces the number of policies in your game.


All of the above is very important when it comes to game development, but Autocad is not designed to handle them.

Use the appropriate tool for the job. Use Autocad for engineering and Maya or Blender for games, movies and art. It is so simple.

+8
source

To export from AutoCad, use the OBJ or FBX format. The Unity page “which files you can import” is misleading because the exported file formats vary with each new year, and new versions of exporting programs are often not compatible with Unity. Unfortunately, Unity developers need several years to speed up the import process.

Regarding optimizing your models, “cleaning them” in Maya is a joke because Maya will also export “heavy” models depending on the format you use. There is a priority for model cleaning, but AutoCad products are the best in the industry, and if you clean them in a CAD program and then export to OBJ or FBX, everything should be fine. Maya is also an AutoCad product, I just say that you do not need to juggle a file in different programs. If you use the export format OBJ or FBX, and if your file is mainly a CG model, then it will work fine, as usual, from a CAD program in Unity. CAD programs have utilities for cleaning models, as well as programs such as Sketchup, DAZ3D and others. You do not need to triangulate faces, and usually an OBJ will work just fine.

Your best option to import into Unity is to use OBJ, if possible, from any source program. Most models will support this if you don’t have animations or bones. If you export to OBJ and select the NOT triangulate option for all faces, and DO include textures, you should be fine. If your model includes animation, you should use the FBX format, which will have a significantly higher file cost.

In addition, it is better to drag and drop the .obj file, .mtl file, and .obj textures into the Unity Asset folder where you want (better than trying the import object's own Unity function).

Report that many formats that Unity declares to import on the "Which files can import" page are invalid depending on the version of the export program. For example, DXF files must be earlier than last. Programs such as Sketchup and .skp will only be imported into Unity if you are using an earlier version back in 2013, like Unity 5.6.0f3.

Usually, if you know about these problems, and you are ready to try several methods of export / import of the CG model, you will find success. Obviously, game developers continue to use Unity because they value the engine enough to tolerate these flaws.

+1
source

All Articles