You can texture a fluid using the built-in Mandelbrot texture. The Mandelbrot set is a collection of mathematical points in the complex plane and the boundary of which produces an interesting fractal shape. Using this texture type, you can texture your fluid opacity with the Mandelbrot set as well as its different variations such as the Julia set, the Mandelbox set and other hybrid evaluations.
Note: Use this built-in texture to texture opacity rather than color.
For more information about the Mandelbrot texture, see Mandelbrot.
To texture your fluid with a Mandelbrot set (Method 1: using presets):
- Select Fluids > 3D Container.
- Click Presets on the right hand side of the fluidShape Attribute Editor.
- Select among presets such as mandelbox, mandelboxJuliaChecker and mandelbulbSeaFoam.
To texture your fluid with a Mandelbrot set (Method 2):
- Select Fluids > 3D Container.
- Under Contents Method of the fluidShape node Attribute Editor, set Density and Velocity to Off(zero).
- Under Shading > Opacity, set Opacity Input to Constant.
- Under Textures, enable Texture Opacity. Select Mandelbrot as the Texture Type.
- Select among five evaluation types for the Mandelbrot Type: Mandelbrot Set, Julia Set, Mandelbox, Box with Julia Set, Box with Mandelbrot Set.
- Under Shading, decrease Transparency to zero.
- Under Opacity, adjust the input bias.
- Under Lighting, enable Self Shadow.
- Under Container Properties, increase the Base Resolution.
- Under Output Mesh, lower the Mesh Resolution to 0.5, for example, for a faster render.
- Under Surface, select Surface Render so that it renders as a surface and not as polygons.
- Under Textures, increase the number of Lobes to, for example, 7.
This is now a Mandelbulb.
- Under Textures, select Shaded Inside as the Mandelbrot Inside Method to make the surface more fine.
To render your fluid
- Increase the anti-aliasing quality. Click the Render Settings button and select Maya Software as your renderer. Select Contrast sensitive production under Anti-aliasing Quality > Quality in the Maya Software tab.
Note: Currently, rendering of the Mandelbrot texture is only supported by the Maya Software renderer.
-
To add color to your Mandelbrot, you can tweak the settings under the section Color. For example, you can set Center Gradient as your Color Input and select color ramp values.
- Click to render your image with the Maya software renderer.
Experiment with different evaluation types, and customize your texture with different effects by adding leaves, checkers, points and circles.