Class InstanceBatch3D
- All Implemented Interfaces:
AutoCloseable
Stable-handle model instances. Validated backends group adjacent compatible opaque VFX meshes into hardware instance
draws; other materials retain independent portable or VFX submissions and transparent ordering. Every extraction
snapshots instance handles, geometry, composed surfaces, pose and effects before owner culling. Bounds cover the
actual emitted transforms and every part's displacement; an unknown part disables owner culling. Instance color and
owner animation modulate the composed direct and portable surfaces once at command emission. The original instance
color/effect remain graph inputs; no graph binding is rewritten and explicit authored graph math is unchanged.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongadd(WorldTransform transform, RenderColor color) longadd(WorldTransform transform, RenderColor color, float effectValue, long pickId) voidclear()protected voidextract(WorldRenderContext context) protected WorldBoundslocalBounds(WorldRenderContext context) Returns local bounds for the current extraction.model(WorldModel value) booleanremove(long handle) intsize()booleanupdate(long handle, UnaryOperator<InstanceBatch3D.Instance> update) Methods inherited from class WorldObject
animation, animationPlayback, animationValue, boundsStroke, close, closed, effectiveTransform, effects, effects, localBounds, material, material, pickable, pickable, pickable, pickId, position, position, releaseResources, self, transform, transform, updater, updateState, visible, visible
-
Constructor Details
-
InstanceBatch3D
-
-
Method Details
-
add
-
add
-
update
-
remove
public boolean remove(long handle) -
clear
public void clear() -
size
public int size() -
model
-
localBounds
Description copied from class:WorldObjectReturns local bounds for the current extraction. Dynamic objects may override this hook to share one immutable per-frame data snapshot between culling and command extraction. The default preserves the original context-independent bounds contract for existing subclasses.- Overrides:
localBoundsin classWorldObject<InstanceBatch3D>- Parameters:
context- current extraction context- Returns:
- local bounds, or
nullwhen the object cannot be culled
-
extract
- Specified by:
extractin classWorldObject<InstanceBatch3D>
-