Jump to content

tricking visibility without multiple render passes


Recommended Posts

Hello!

I am stuck trying to solve a problem. I have these aperture like petals that I want to disappear in a physically impossible way [see gif].

https://gfycat.com/skinnysneakyjaeger

You can see in the photo I accomplished this using boolean. However, I cannot keep using boolean because it is affecting my material. I have a rest position on the "petals" geometry to keep the texture in place, but when the "petals" geometry starts getting deleted by the boolean sop, it starts making the material freak out slightly. My second idea was to use the same geometry I used for the boolean [third photo] but instead make it a have a matte material instead of boolean. This works, but it starts cutting out other geometry in the scene. Is there a way to make it so the object with a matte material only affects some of my geometry? Is there a better way to solve this problem? I want to avoid rendering out the petals geometry in separate passes. I also need to trick the visibility for some gears too, so I don't want 50 render passes.

Thanks

petal_show.PNG

petal_hide.PNG

boolean.PNG

Edited by ejr32123
Link to comment
Share on other sites

thanks for the answers. what anim said about opacity in the shader sounds good but I'll have to figure out how to do that. Not sure if the first method would work. Seems like it would make the texture stretch.

Edited by ejr32123
Link to comment
Share on other sites

here is an example with multiple holes of different position, rotation scale

all petals are packed and reused among holes so it should be efficient even with thousands of them, the masking is happening only in the shader with the help of some attributes from SOPs to get the correct circular projection

mask_by_opacity.thumb.gif.7c51e6204f455aa86cc294deb8963111.gif

ts_mask_by_opacity_.hip

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...