|
@@ -6,13 +6,12 @@ Importing 3D meshes
|
|
Introduction
|
|
Introduction
|
|
------------
|
|
------------
|
|
|
|
|
|
-Godot supports a flexible and powerful :ref:`doc_importing_3d_scenes`, that
|
|
|
|
-allows for full scene importing. For a lot of artists and developers
|
|
|
|
-this is more than enough. However, many do not like this workflow as
|
|
|
|
-much and prefer to import individual 3D Meshes and build the scenes
|
|
|
|
-inside the Godot 3D editor themselves. (Note that for more advanced
|
|
|
|
-features such as skeletal animation, there is no option to the 3D Scene
|
|
|
|
-Importer).
|
|
|
|
|
|
+Godot supports a flexible and powerful :ref:`3D scene importer
|
|
|
|
+<doc_importing_3d_scenes>` that allows for full scene importing. For a lot of
|
|
|
|
+artists and developers this is more than enough. However, many do not like this
|
|
|
|
+workflow as much and prefer to import individual 3D Meshes and build the scenes
|
|
|
|
+inside the Godot 3D editor themselves. (Note that for more advanced features
|
|
|
|
+such as skeletal animation, there is no option to the 3D Scene Importer).
|
|
|
|
|
|
The 3D mesh import workflow is simple and works using the OBJ file
|
|
The 3D mesh import workflow is simple and works using the OBJ file
|
|
format. The imported meshes result in a .msh binary file which the user
|
|
format. The imported meshes result in a .msh binary file which the user
|
|
@@ -39,20 +38,20 @@ will be re-imported, while keeping the newly assigned material.
|
|
Options
|
|
Options
|
|
-------
|
|
-------
|
|
|
|
|
|
-A few options are present. Normals is needed for regular shading, while
|
|
|
|
-Tangents is needed if you plan to use normal-mapping on the material. In
|
|
|
|
|
|
+A few options are present. Normals are needed for regular shading, while
|
|
|
|
+Tangents are needed if you plan to use normal-mapping on the material. In
|
|
general, OBJ files describe how to be shaded very well, but an option to
|
|
general, OBJ files describe how to be shaded very well, but an option to
|
|
force smooth shading is available.
|
|
force smooth shading is available.
|
|
|
|
|
|
Finally, there is an option to weld vertices. Given OBJ files are
|
|
Finally, there is an option to weld vertices. Given OBJ files are
|
|
text-based, it is common to find some of these with vertices that do not
|
|
text-based, it is common to find some of these with vertices that do not
|
|
-mach, which results in strange shading. The weld vertices option merges
|
|
|
|
|
|
+match, which results in strange shading. The weld vertices option merges
|
|
vertices that are too close to keep proper smooth shading.
|
|
vertices that are too close to keep proper smooth shading.
|
|
|
|
|
|
Usage
|
|
Usage
|
|
-----
|
|
-----
|
|
|
|
|
|
-Mesh resources (what this importer imports) are used inside MeshInstance
|
|
|
|
|
|
+Mesh resources (what this importer imports to) are used inside MeshInstance
|
|
nodes. Simply set them to the Mesh property of them.
|
|
nodes. Simply set them to the Mesh property of them.
|
|
|
|
|
|
.. image:: /img/3dmesh_instance.png
|
|
.. image:: /img/3dmesh_instance.png
|