phr00t: phr00t: Each InstancedGeometry is one geometry, or all InstancedGeometry is one geometry? Do I need to do an UpdateModelBounds after the instances are added? They all seem to display & disappear at the same time…

I don’t really know what JME calls what because I use the instancing support at the mesh creation level.

But, say you want to render one tree 100 times and so you use instances. Then those 100 trees boil down to one draw call for all 100 trees. That’s the point of instancing. One draw call = one mesh = one geometry.

Instancing is basically a special mesh that some vertex buffers get repeated for each instance and some are per-instance. JME wraps this in some more user-friendly constructs like InstancedGeometry.

Mesh does not implement updateBound() for meshes that have the special per-instance buffers. Indeed, it would have to assume a lot to do it. So you have to calculate the bounds yourself if you want accurate bounding shapes… but it would encompass all instances that make up the particular mesh containing the 100 instances.