gotfroi Posted September 11, 2012 Share Posted September 11, 2012 I want to separate foreground and background elements in a particle system using a box clip vop in my shader but I can't find proper examples on how to do this. I suppose I have to add a parameter VOP for FG and BG, and source that into image planes but how the box clip figures into that is beyond me, and the documentation is not helping. Even some indication of how to hook up Point 1 and Point 2 inputs would help. Any hints appreciated Quote Link to comment Share on other sites More sharing options...
tjeeds Posted September 11, 2012 Share Posted September 11, 2012 Not sure about the box clip is what you're after, if you're just looking to differentiate by distance you can use the z component of global P. It's in camera space by default so Z will be the distance from camera. Quote Link to comment Share on other sites More sharing options...
gotfroi Posted September 11, 2012 Author Share Posted September 11, 2012 (edited) Interesting. I ended up defining groups with bounding boxes and assigning them to attributes that I sourced in the shader and output to image planes. I like your solution better. Can anyone tell me when the box clip VOP would be useful? Edited September 11, 2012 by gotfroi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.