mNo edit summary
mNo edit summary
Line 6: Line 6:


== How to use ==
== How to use ==
=== Basics ===
<code>AutoLOD Impostors</code> consists in an editor window. You can open it via <code>Window->AutoLOD->Impostors</code>.
<code>AutoLOD Impostors</code> consists in an editor window. You can open it via <code>Window->AutoLOD->Impostors</code>.


Drag & drop the object to be processed into the ”Target” field. Please note that a MeshFilter is required otherwise the object cannot be added.
Drag & drop the object to be processed into the ”Target” field. Please note that a MeshFilter is required otherwise the object cannot be added.


In the next field, you should already see <code>BakingScene-Default</code> loaded in the Baking Scene object field. Note that you can use your own scene, the only constraints are the presence of an object named "Target" and a main Camera. The editor window loads automatically the scene named  <code>BakingScene-Default</code>.The provided scene is the recommanded one for high-fidelity results, but you can modify the lighting settings or add objects in the scene to achieve some interesting result. It's up to your imagination!
Click on the <code>Generate Impostor</code> button and wait a few seconds. Unity will temporarily open another scene and enter/quit play mode, just let it do it, don't try to stop the process.
 
When you get back in the scene, your object should now have a LODGroup attached, and the impostor should be instantiated as its children. Try to zoom out to see the LOD transition between the original object and its impostor.
 
==== Post baking improvements ====
If you select the impostor object in the hierachy, you will see that the shader has a few parameters to improve the fidelity. You can try to modify them.
 
=== Advanced ===
 
* The provided scene <code>BakingScene-Default</code> is automatically loaded in the Baking Scene object field. Note that you can use your own scene, the only constraints are the presence of an object named "Target" and a main Camera. The provided scene is the recommanded one for high-fidelity results, but you can modify the lighting settings or add objects in the scene to achieve some interesting result. It's up to your imagination!
* You can change the generated atlas size with the <code>Texture Size</code> popup. The estimated size just below will give a good idea of the full impostor size on the disk after DXT1/DXT5 compression

Revision as of 14:50, 14 June 2022

Setup

The whole package is contained in the AutoLOD folder resulting from the import. You can move it wherever you want, but it is recommended to keep the same folder structure. If you already own AutoLOD, the same folder will be used without any issue.

What is an impostor

An impostor or imposter is a billboard whose material displays a picture of a 3D object. Depending of the view angle, a different picture of the object will be displayed, to fake a 3D effect. Several pictures from several angles are baked into an atlas texture to access them quickly.

How to use

Basics

AutoLOD Impostors consists in an editor window. You can open it via Window->AutoLOD->Impostors.

Drag & drop the object to be processed into the ”Target” field. Please note that a MeshFilter is required otherwise the object cannot be added.

Click on the Generate Impostor button and wait a few seconds. Unity will temporarily open another scene and enter/quit play mode, just let it do it, don't try to stop the process.

When you get back in the scene, your object should now have a LODGroup attached, and the impostor should be instantiated as its children. Try to zoom out to see the LOD transition between the original object and its impostor.

Post baking improvements

If you select the impostor object in the hierachy, you will see that the shader has a few parameters to improve the fidelity. You can try to modify them.

Advanced

  • The provided scene BakingScene-Default is automatically loaded in the Baking Scene object field. Note that you can use your own scene, the only constraints are the presence of an object named "Target" and a main Camera. The provided scene is the recommanded one for high-fidelity results, but you can modify the lighting settings or add objects in the scene to achieve some interesting result. It's up to your imagination!
  • You can change the generated atlas size with the Texture Size popup. The estimated size just below will give a good idea of the full impostor size on the disk after DXT1/DXT5 compression