Guerilla Render can render the Golaem procedural crowd.
Guerilla uses the glmCrowdGuerillaPlugin.so DSO. The Golaem bin and procedurals directories should be added to the LD_LIBRARY_PATH variable before running "guerilla" or "render".
Guerilla uses the glmCrowdGuerillaPlugin.dll DLL. The Golaem bin and procedurals directories should be added to the PATH variable before running "guerilla" or "render".
Load a Golaem crowd into Guerilla
In the Create menu, click the Create Golaem item. This create a NewGolaem node in the scene.
When you have a Golaem simulation cache ready, locate the .gscs file corresponding to this cache. You will find a collection of .gscf files, one per simulated frame. For instance:
Setup the Goalem attributes:
- Crowd Fields: a list of semicolon separated field names (crowdField1 in the previous example)
- Cache Name: the cache name (testGuerilla in the previous example)
- Cache Directory: the directory where resides the cache (/my/simulation/cache/ in the previous example)
- Characters: the .gcha character file to bind to this simulation cache.
Setup Golaem shaders
Create a Guerilla shader for each shader you assigned to the Golaem crowd in Maya:
- Add the Surface shader to your scene (using Ctrl+Space)
- Rename it accordingly, and set the
Rib Naming -> Surface Nameto the same value
For instance, if the Golaem crowd was setup to use a shader named MAN_MD_body, the
scene should contain a equivalent shader, named MAN_MD_body and having its
You can then change the shader parameters, and edit its shading network.
Golaem Crowd can randomly shuffle the textures on the agents, using a random index for each agent. Use the TextureSwitch node to associate this index to a texture bitmap.
Golaem Crowd also provides random floating point values on each agent, that can be used as random source for simple color variations. Use the RandomizeColor node to randomly shift the Hue, Saturation and Value of the color.
To troubleshoot Golaem rendering, you can activate the RiCalls diagnostic which will log all communications between the procedural and the renderer. This is helpful to find which shader and shader parameters are provided by the procedural to Guerilla.
In the Passes view,
- Set the