VAT RBD motion detection in shader?
2292 0 0- johnLIC
- Member
- 44 posts
- Joined: May 2013
- Offline
I need to hide RBD chunks that are moving. I am trying to us the MF_Rigid to do it. It seems like I ought to be able to sample the VAT position UV texture at the top and bottom of a single column to see if the chunks start and end positions are different. I have tried wiring it up, but it's not working. Does anyone have a setup they could share? I tried duplicating the MF_Rigid that is provided by SESI, so that I have 2 of them in my material. I pass 0.0 into the time input of the second MF_Rigid node. I then compare the WorldPositionOffset outputs from both MF_Rigid nodes. This seems to give me distance from the object's pivot, not distance travelled over the whole simulation.
-
- Quick Links