|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
|
inline |
Drive a network's vertices with fields and spatial stages, and attach rendering.
| Network | A field-compatible NodeNetwork subclass, such as ParticleNetwork. |
| network | Unregistered network. |
| spatial | Spatial hash, claim, density and population configuration. Default constructed means field displacement only. |
| bind | Called with the GpuFieldOperator before the geometry buffer is registered. May be empty when the config alone is wanted. |
| render | Render target. target_window is required. |
A ParticleNetwork with no primary operator and its default operator enabled receives a PhysicsOperator. The GpuFieldOperator is created with the primary operator's vertex layout and appended to the network's operator chain, or reused if the chain already holds one, in which case spatial is ignored. The network and its NetworkGeometryBuffer are then registered in the graphics domain and rendering is attached. Registering the buffer wires the field pass and every spatial stage the config selects.
Definition at line 233 of file Evolve.hpp.
References MF_LIVE_EXPOSE_AUTO, and network.