Hi,
I was wondering if I had a line with several points on it and I creeped a grid onto that line, how would I change the scaling of the primitives of the grid according to the point numbers of the line. I have been thinking about a stamp function but haven't got it to work. In essence I would like to create an undulating surface that changes according to $PT from the line sop (given that I have created the $PT attribute using attribcreate). This will enable me to modify the $PT information in CHOPs and assign noise and other variations to the mix to vary the undulation. Any ideas? (It seems really simple but I couldn't get it to work as I stated above).
Sincerely,
markerline
varying primitive scale according to point number?
9153 6 1- markerline
- Member
- 245 posts
- Joined: Sept. 2008
- Offline
- Pagefan
- Member
- 519 posts
- Joined:
- Offline
- markerline
- Member
- 245 posts
- Joined: Sept. 2008
- Offline
Yes, that seems to be right–the point expression. Of course! Now, I anticipate that I can vary the undulation instead of making it steadily increase I can have it be different values in random succession or even the same value at two or more different points? Introducing a sort sop would give me variation, but what about making two or more points have the same value? (I can see that if I clamp the results I could simulate that but it would only apply to maximum or minimum values).
- markerline
- Member
- 245 posts
- Joined: Sept. 2008
- Offline
- tamte
- Member
- 8595 posts
- Joined: July 2007
- Offline
- markerline
- Member
- 245 posts
- Joined: Sept. 2008
- Offline
That's a nice solution temte. I have shyed away from Vex up until this point. I've seen a tut by Peter Quint on procedural shaders and it was very involved. It made sense, but not enough for me to do it on my own. I guess I will have to force myself to learn the methodology. Vex is very powerful. Thanks for pointing it out to me.
Sincerely,
markerline
Sincerely,
markerline
- wigal123
- Member
- 106 posts
- Joined: March 2009
- Offline
-
- Quick Links