While I accomplished much of my desired goal, I still would like to extend this shader to be a bit more universal by learning and utilizing the same channel names as would be used with Maya Fluids. I added the following visualizer to my code: As I mentioned, just adding them causes no errors, but did not hook them to the final RSL code in any meaningful way. Ultimately, my output collection for the Slim template now needed 5 outputs instead of the standard two. This way the user in post would have control over the color of the particular element as well as the intensity of the indirect component. However, when Malcolm told me about this header file, I did some more digging and decided on a different approach by defining my own visualizer inside my Slim template.īasically I wanted my template to have three AOVs - Fire, Smoke, and Indirect. This file can be modified, but lives within the install directory and is quite inconvenient to work with. h file with a list of predefined AOVs and runs some TCL loops to define all of the RSL code for their use. This visualizer references a built-in Pixar. There are many built in visualizers, and one of particular interest is the shadingmodel_aov visualizer. This relates to a shadingmodel visualizer, which defines two outputs, OI and CI, and plugs them into Oi and Ci of the final RSL shader. In this case, the overall template has a shadingmodel type. Visualizers are a type of dynamic shader template, where that last bit of RSL is defined. A bit more research led me to the concept of Visualizers. This is all well and good, but I discovered quickly that if I tried simply adding a few more output parameters to the result collection of the Slim template and function, they didn't translate over to my final. The shader is called and the output values are assigned to the correct required output values of the surface shader (Ci and Oi). sl file, created by Slim, shows that the RSLFunction block from Slim is just carried over as a function inside the shader. $bakePassClassProp SetValue "\"Ī close look at this. $bakedFileProp SetValue "\[bakemap -atlas $atl -chan $ch -map $map
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |