Jump to content

Sprites and Ambient occlusion problems

Recommended Posts

If you use the basic_occlusion material and dive inside you notice that there is no alpha going to the output.

I am no expert in shaders but a hack to get it working is to connect the surfacecolor node's alpha to the output node's opacity. You have to adjust or disconnect the colorMapIntensity.

Another thing you could try is to use a basic shader and then PBR or a light source with samples.

Link to comment
Share on other sites

I have a custom shader and i tried with ambient occlusion, the problem is that the ambient occlusion evaluates before than the alpha channel, i tried too with light template and global illumination vex shader, but has the problem showed in the first post

Link to comment
Share on other sites

hi .. well i`m not sure but i had this before and if i remember correctly the vm_sfilter (sample filtering) set to opacity filtering fixed it..

so go to your mantra rop . edit rendering parameters, add vm_sfilter -> set it to opacity filtering

hope this helps

Link to comment
Share on other sites

i didn't explore the houdini shader part enough to give you the right way to follow but i get a quite similar problem with maya and mental ray.

To fix this i plug the occlusion directly in a constant node color and apply my cutout map in this constant transparency .

i hope it can help

Link to comment
Share on other sites

vm_sfilter rendering parameter is set to opacity by default so i guess it will not help in this case


Light template and VEX GI light should work but you need to set it to Transparent Ambient Occlusion

you can also use occlusion() function in surface shader, but the VOP form doesn't have that option so you need to use VEX or Inline VOP then you can use "samplefilter" option and set it to "opacity"

Link to comment
Share on other sites

Hello thanks for your help,

Realer:I have the same problem with vm_sfilter -> set it to opacity filtering,

rende: i have a lot of sprite, and with trace sop and various material my houdini will die.

anim: Light template and VEX GI light with Transparent Ambient Occlusion, i have the same problem, maybe my shader dont work

im keep trying

thanks for your time

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.

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