Skip to content

Commit 8280ecf

Browse files
authored
Update instancednode.adoc
1 parent fba947d commit 8280ecf

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

docs/modules/core/pages/scene/instancednode.adoc

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:keywords: spatial, node, geometry, optimization
55

66

7-
Using InstancedNode is a way to reduce drawcalls by optimizing the amount of objects being drawn at the same time.
7+
Using InstancedNode is a way to reduce drawcalls by optimizing the amount of objects being drawn at the same time. The amount of triangles will stay the same.
88

99
Example:
1010
[source,java]
@@ -39,15 +39,13 @@ and
3939
instancedNode.instance();
4040
----
4141

42-
Once instance() is called, the node builds its own representation of the Geometries, and modifying the original geometry and geometry2 objects will have no effect on the node.
42+
Once instanced, you can still manipulate the spatials inside the node, as opposed to a BatchNode.
4343

44-
If you want to move the spatials inside instancedNode, you need to first retrieve them, using the children list. It's a good idea to name the geometries suitably, to make this easier.
44+
== See also
45+
https://wiki.jmonkeyengine.org/docs/3.4/tutorials/concepts/optimization.html
4546

46-
[source,java]
47-
----
48-
Spatial geometry = instancedNode.getChildNamed("randomGeom");
49-
geometry.setLocalTranslation(10, 0, 10);
50-
----
47+
https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/scene/BatchNode.java
5148

52-
== See also
5349
https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-examples/src/main/java/jme3test/scene/instancing/TestInstanceNode.java
50+
51+

0 commit comments

Comments
 (0)