vex shaders, stripe and splatter

   5090   3   1
User Avatar
Member
2 posts
Joined: May 2008
Offline
I have the following question with regard to the vex shaders supplied. In the simplest example, I apply the stripe vex shader thru a material that is defined in a shopnet node in a sphere object. When I move the object or the camera the shading changes. (This is true of splatter as well). I tried popping in a rest position node thinking that perhaps it was a space definition problem, however this did nothing.

Have I missed something obvious? or are these two particular shaders not working? (Other vex shaders such as gingham or spots work fine)

Thanks
User Avatar
Member
1634 posts
Joined: July 2005
Offline
Hi there,

First of all, welcome to the forums.

I tried the Stripe SHOP with a moving Primitive sphere & camera & the stripe(s) stays. I used a grid with the same results.

The Splatter SHOP does require a Rest Position SOP & you have to make sure both inputs are connected. The first input is the transformed/modified geometry while the second is the original. Else, just connect the original to both inputs.

If you still have trouble, please post the hip file.

Cheers!
steven
User Avatar
Member
2 posts
Joined: May 2008
Offline
The stripes on a sphere moved -40 units display different striping pattern than at the origin. Here's the hip file.

Thanks

Attachments:
ShaderTest.hipnc (224.3 KB)

User Avatar
Member
1145 posts
Joined: July 2005
Offline
If you are going to keep the sphere as a primitive then you'll need to add s,t surface coordinate awareness in the shader.
Take a look at the attached file, I've just done the strips not the colour.

Attachments:
shadertest_174_PR.hipnc (230.5 KB)

“gravity is not a force, it is a boundary layer”
“everything is coincident”
“Love; the state of suspended anticipation.”
  • Quick Links