From the course: Maya 2018: Bifröst Fluids

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Converting velocity to a grayscale float

Converting velocity to a grayscale float - Maya Tutorial

From the course: Maya 2018: Bifröst Fluids

Converting velocity to a grayscale float

- [Instructor] In the previous movies we saw how to extract churn and vorticity from the Bifrost fluid. Here are a couple of Arnold render view snapshots. There's the churn and those are the raw churn values and here is vorticity after its values have been scaled. Go back to a live view and open up the hyper shade, I've got that minimized. And here's the shading network so far. We're now going to add velocity and the velocity is a vector. It has three values, X, Y and Z. So, tap the space bar in the graph and type in aiU for aiUser and choose aiUserDataVector. With that node still selected in its attributes, type in the value which is velocity. Also rename the node. We can copy that from the attribute field and then it paste it into the node name adding an underscore. Because velocity is a vector attribute and it has three values, we can connect it directly to the utility color. Connect the out value of the aiUserDataVector node to the color of the aiUtility node. Let's see what that…

Contents