Using VEX Shaders in Houdini - Creating an Underwater Scene

Page 4

 

 

 

 

Edit the SHOPsurface file

1. Open the SHOPsurface file in $HOME/houdini/shop with a text editor.
If you don't already have a SHOPsurface file in $HOME/houdini/shop then create one using a text editor and name it SHOPsurface.

2. If the file is empty or new then add: include $HFS/houdini/shop/SHOPsurface
This line makes sure that the standard Houdini surface shaders are seen by Houdini. Without this line, only the shaders in the $HOME/houdini directories would be seen.

3. Add: v_gloopcolor shop/surface/jwgloopcolor.ds -label "VEX JW Gloop Color"
This line tells Houdini what the default name of the operator in the network editor window is (v_gloopcolor), and what label it should have in the SHOPs "Generators" flyout (VEX JW Gloop Color).

4. Save and close the SHOPsurface file.
If your text editor saves the file with an extension then remove the extension. ie. SHOPsurface.txt should be SHOPsurface.

Edit the SHOPdisplace file

1. Open the SHOPdisplace file in $HOME/houdini/shop with a text editor.
If you don't already have a SHOPsurface file in $HOME/houdini/shop then create one using a text editor and name it SHOPdisplace.

2. If the file is empty or new then add: include $HFS/houdini/shop/SHOPdisplace

3. Add: v_gloop shop/displace/JWgloop.ds -label "VEX JW Gloop"

4. Save and close the SHOPdisplace file.

Change the values of the two new operators

1. Launch the Houdini file underwater.hip you created previously.
(if you have not quit Houdini yet you need to relaunch it to get the new VEX operators to show up)

2. Change the network editor from "Objects" to "SHOPs" and delete the existing SHOPs.

3. With the cursor in the SHOPs network editor hit the Tab key and select "Generators" from the flyout. Add a "VEX JW Gloop Color" surface Shop operator (with a chekcer icon), then add a "VEX JW Gloop" Displacement Shop operator (with the rocy mountain icon).

4. Select the "VEX JW Gloop Color" surface Shop Operator and set the following:

Ramp Color1 field r = 0 g = 0 b = 0.12
Ramp Color2 field r = 0 g = 0 b = 0.15
Ramp Color3 field r = 0.14 g = 0.14 b = 0.4
Ramp Color4 field r = 0.86 g = 0.86 b = 0.87
Ramp Color5 field r = 1 g = 1 b = 1
Ramp Color6 field r = 0 g = 0 b = 1 5.

Select the "v_gloop1" displacement Shop Operator and set the following:

Amount = 0.1
Disp Scale = 0.5
Cell Freq = 10

PAGE 4

Go to Page 1 2 3 5 6 7 8 9


Post a message in the Digital Post Production World Wide User Group!