|
@@ -76,7 +76,7 @@ The SDK contains a user-friendly interface to generate LODs for a model (.j3o fi
|
|
|
image:jme3/advanced/jme-sdk-generate-lod-menu.png[The Tools Generate LOD context menu in the SceneExplorer,width="300",height="180"]
|
|
|
. The `Generate LOD` settings wizard opens: +
|
|
|
image:jme3/advanced/jme-sdk-generate-lod-window.png[The Generate LOD settings wizard,width="300",height="150"]
|
|
|
-. Choose a reduction method and reduction values for one or more levels.
|
|
|
+. Choose a reduction method and reduction values for one or more levels.
|
|
|
+
|
|
|
[TIP]
|
|
|
====
|
|
@@ -111,12 +111,12 @@ lod.bakeLods(reductionMethod,reductionValue);
|
|
|
|
|
|
The LODs are stored inside the Geometry object.
|
|
|
|
|
|
-*Example:* How to generate an LOD of myPrettyGeo's mesh with 50% fewer polygons:
|
|
|
+*Example:* How to generate an LOD of myPrettyGeo's mesh with the same settings as used in the SDK example above:
|
|
|
|
|
|
[source,java]
|
|
|
----
|
|
|
LodGenerator lod = new LodGenerator(myPrettyGeo);
|
|
|
-lod.bakeLods(LodGenerator.TriangleReductionMethod.PROPORTIONAL,0.5f);
|
|
|
+lod.bakeLods(LodGenerator.TriangleReductionMethod.PROPORTIONAL,0.25, 0.5f, 0.75f);
|
|
|
----
|
|
|
|
|
|
|