メタデータの末尾にスキップ
メタデータの先頭に移動

このページの古いバージョンを表示しています。現在のバージョンを表示します。

現在のバージョンとの相違点 ページ履歴を表示

« 前のバージョン バージョン 4 現在のバージョン »

Each render engine procedural takes care of transferring the agent metadatas onto the render meshes, this process adds an "atoms_" prefix to all metadata names. You can use these metadatas from within shaders to have better control over your agent variations at render time.

For instance, you can create an agent group with an addMetadata module. In the addMetadata options set "myColor" as name for your metadata, the type to "vector" and then open the the agent override dialog to set random values on your agents.





Go back to your variation scene. Create a simple renderman pxrsurface shader and connect a pxrattribute node to the diffuse color. Set the "variable name" attribute to "atoms_myColor" and the type to vector.
Assign this material to all your meshes and re-export the variations with the variation builder (make sure to select renderman as target render engine).

In your simulation scene, import your variations again and set the variations onto your agents. Once you will render, you will see a render similar to the picture on the right, where the shader color is taken from the myColor metadata
(the addMetadata module should still be applied on your agent group and set up as explained above).

This can be done also in Arnold using the aiUserDataVector/Int/Float/... node or in V-Ray using a VrayUserColor node.


  • ラベルがありません