Micro Exporter: Difference between revisions
Updated descriptions, added images, and conformed page to new layout. |
Updated descriptions based on TG 4.7 release features. |
||
| Line 6: | Line 6: | ||
== Overview == | == Overview == | ||
The Micro exporter feature is only available in the Professional version of Terragen. | The Micro exporter feature is only available in the Professional version of Terragen. It allows you to export procedural terrains as geometry, including displacement and overhangs. Exporting a terrain as a heightfield would not allow this. The Micro exporter can export geometry (polygons), normals and texture coordinates. It supports TGO, FBX, OBJ and Lightwave LW02 formats. | ||
Beginning with Terragen 4.7.15 the Micro exporter will take advantage of multi-threaded renders and produces cleaner geometry and smaller files, by merging duplicate vertices, normals, UVWs and faces. | |||
[[File:03_MicroExport_RenderVsGeometry.jpg|none | 800px | Mesh generated by Micro exporter from procedural terrain.]] | [[File:03_MicroExport_RenderVsGeometry.jpg|none | 800px | Mesh generated by Micro exporter from procedural terrain.]] | ||
The Micro exporter is used in conjunction with a Render node to export the micropolygons generated during a render as geometry. | The Micro exporter is used in conjunction with a Render node to export the micropolygons generated during a render as geometry. For this reason the Render node’s Micropoly detail setting controls the size of the polygons generated. Lower values generate a coarser mesh, and as polygons get further away from the camera they also get larger. <br> | ||
You can control the level of detail in the exported geometry by understanding the relationship between the image resolution and the “Micropoly detail” setting. For example, a mesh generated with the Renderer’s “Image width” and “Image height” values equal to “1024” and the “Micropoly detail” value at “1.0” would be practically identical to a mesh generated with the “Image width” and “Image height” values at “2048” and the “Micropoly detail” value at “0.5”, as would a mesh generated with the “Image width” and “Image height” values at “512” and the “Micropoly detail” value at “2.0”. | |||
[[File:04_MicroExport_MeshDetailComparision_0001.jpg|none | 800px | Comparison of the geometry exported from the procedural terrain at different Detail values.]] | [[File:04_MicroExport_MeshDetailComparision_0001.jpg|none | 800px | Comparison of the geometry exported from the procedural terrain at different Detail values.]] | ||
| Line 19: | Line 22: | ||
[[File:05_MicroExport_FarDistanceComparision_0001.jpg|none | 800px|The Near and Far distance parameters can limit the area of the terrain to export. ]] | [[File:05_MicroExport_FarDistanceComparision_0001.jpg|none | 800px|The Near and Far distance parameters can limit the area of the terrain to export. ]] | ||
The Micro exporter works only when using the Renderer’s “Render To Disk”, “Render Sequence” or command line rendering. It does not work when using “Render Image”. | |||
Information about the kinds of data to be output by “Render To Disk” is shown to the right of the button, such as “Images”, “Micro export” or “Images + micro export”. To export only geometry, uncheck the checkbox to the left of the “Output image file” setting. This will disable image output by the renderer. | |||
Latest revision as of 23:18, 16 November 2023
Overview
The Micro exporter feature is only available in the Professional version of Terragen. It allows you to export procedural terrains as geometry, including displacement and overhangs. Exporting a terrain as a heightfield would not allow this. The Micro exporter can export geometry (polygons), normals and texture coordinates. It supports TGO, FBX, OBJ and Lightwave LW02 formats.
Beginning with Terragen 4.7.15 the Micro exporter will take advantage of multi-threaded renders and produces cleaner geometry and smaller files, by merging duplicate vertices, normals, UVWs and faces.

The Micro exporter is used in conjunction with a Render node to export the micropolygons generated during a render as geometry. For this reason the Render node’s Micropoly detail setting controls the size of the polygons generated. Lower values generate a coarser mesh, and as polygons get further away from the camera they also get larger.
You can control the level of detail in the exported geometry by understanding the relationship between the image resolution and the “Micropoly detail” setting. For example, a mesh generated with the Renderer’s “Image width” and “Image height” values equal to “1024” and the “Micropoly detail” value at “1.0” would be practically identical to a mesh generated with the “Image width” and “Image height” values at “2048” and the “Micropoly detail” value at “0.5”, as would a mesh generated with the “Image width” and “Image height” values at “512” and the “Micropoly detail” value at “2.0”.

The camera assigned to the Render node, along with the Near distance and Far distance parameters, define the area of terrain to export. Only geometry within the camera’s field of view is exported, including Backfacing polygons, which are those facing away from the camera.

The Micro exporter works only when using the Renderer’s “Render To Disk”, “Render Sequence” or command line rendering. It does not work when using “Render Image”.
Information about the kinds of data to be output by “Render To Disk” is shown to the right of the button, such as “Images”, “Micro export” or “Images + micro export”. To export only geometry, uncheck the checkbox to the left of the “Output image file” setting. This will disable image output by the renderer.
Settings:
- Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Micro Exporter nodes in a project.
- Normals (from Compute Terrain or Compute Normal): When checked, the terrain’s normal values calculated by the upstream Compute Terrain node or Compute Normal node are exported to the OBJ file, and are available to other 3D software packages that load the OBJ file. When unchecked, the terrain's normal values are not saved with the object, resulting in a slightly smaller file size for the exported mesh.

- Texture coords (UVs): This pop-up menu has two options for exporting the uv data.
- Image UV (render Projection): When selected, the uv coordinates are mapped into the 0 to 1 uv space from the render camera’s point of view.
- UVW from Compute Terrain or Tex Coords: When selected the uv coordinates are mapped into the world space coordinates as determined by the last Compute terrain node or Tex Coords node These coordinate values can exceed 0 to 1.
- Nearest distance: This sets the distance from the camera where geometry starts to be exported. When set to 0 geometry is exported right from the camera position. If you set this to 1000, then only parts of the terrain 1000 metres and more from the camera will be exported.
- Farthest distance: This sets the furthest distance from the camera that geometry will be exported. Parts of the terrain beyond this distance are not exported.
- Filename: This setting specifies the file that the exported geometry will be saved to. Wavefront OBJ, Autodesk FBX, Terragen TGO, and Lightwave LWO (format v2) are supported.
Fun with the Micro Exporter
Large amounts of geometry can be created by the Micro exporter, which can be managed by using the Near distance and Far distance settings to limit the area exported, and using detail levels of 0.5 or below in the Render node.
To export geometry from a procedural terrain follow these steps:
- Go to the Sequence/Output tab of the Render node.
- Check the Micro exporter checkbox.
- Click the Assign button (green plus icon) to the right of the Micro exporter parameter.
- Choose "Create new micro handler" from the menu which pops up.
- Choose "Micro exporter" from the submenu.
Note that the Lwo micro exporter which is also available in the "Create new micro handler" submenu is an older node which remains for compatibility reasons and is deprecated. You can export LWO files from the Micro exporter itself, and should use it instead.

