Jump to content

isolating surface behind a surface of object


davo

Recommended Posts

does anybody know a way to isolate a front facing surface behind another front facing surface of an object in vex or vops? i need to have only front facing surfaces which are visible to the camera render with transparency but the front facing surfaces of surfaces behind the ones visible to the camera are being seen and i need to get rid of those.

thanks,

davo

Link to comment
Share on other sites

Perhaps this thread belongs in rendering?

Can you just cull out t he backfacing geometry when rendering? Append Delete SOP. Turn on Normal and Enable. Selecting your camera in the Backface From parameter. Set your render flag on the delete sop.

Link to comment
Share on other sites

That is a cool idea and it i will use it...but it doesn't remove front faces that are behind my transparent faces....for example i have eye geometry within a head, ears and mouth that shows up behind the transparent faces that i don't want to showup.

More importantly there are front faces that will show up that are not inside my body object but are actually parts of the body itself, this of course depends on the camera view of the animation as to which frontfaces will be behind other front faces that I wish to keep.

Thanks,

Davo

Link to comment
Share on other sites

I think you are misunderstanding the problem....

If i did use cops it would still show the surface behind the surface.

I've attached a picture with an example. if you notice the right breast of the subject you will see that the arm is showing through it....

i want to be able to remove that so that the entire thing renders like the stomach area....i cannot predict where a surface will show up behind another as the animation will be done later.

Thanks,

Davo

post-28-1086496296.jpg

Link to comment
Share on other sites

Ahhh. I see, I thought you were talking about seperate objects.

It doesn't look like the surface is refracting; it's just transparent, so you can use COPs easily.

You can render multiple passes and composite them together. Render the backgroud. Render one pass of her with her diffuse color (completely opaque) and an alpha channel for masking. Composite her color layer over the background using the alpha as a mask so she appears in front of the background. If the transparency varies over the surface, you render another pass with the transparency map or shader, and use it as a transparency for the girl's color layer; if the transparency is unform, you can skip this and just set the transparency for the diffuse layer in COPs.

Link to comment
Share on other sites

I'm pretty lame with cops i've found....

can you be a bit more explicit...

if i use a composite cop, i'm not sure how to actually control the transparency other than setting it on something like average.

i ended up piping a render with the opaque body and the background into a blend cop with a render of just the background in the other , so i am not really even using either of the alphas...

this seems to the job but i'd like to know if this was what you had in mind or if you had a better way.

Thanks,

Davo :rolleyes:

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...