Forum

Object as 3D Alpha Mask

08 August 2017 12:15
Hi I'm trying to make an effect for a b4w project I'm currently working on, this effect I think should be achievable by using an object as a 3d alpha mask for another object so that this object will be visible only when it is overlying the mask object in camera view. To better figure it out let's imagine we have an opaque sphere (our mask) inside an alpha textured cube, and we want to make visible only the points of the cube that overlap the sphere in camera view. I'm attaching an image that shows such a context, on the left there are the mask and the object we want to mask, on the right the result I want to achieve.

I'm attaching also the .blend containing the demo scene I used to render the attached image. That said, is there a way to achieve it in blend4web? I'v tried to use node materials as well as different transparency combinations without success so far
08 August 2017 16:16
As far as I know, this feature is not currently supported by the Blend4Web engine.
09 August 2017 16:36
Hi I'm trying to make an effect for a b4w project I'm currently working on
Unfortunally it's immpossible without programming and using only shader parameters.
Blend4web and that kind of thing.
09 August 2017 22:31
Ok thank you all I'll try with some programming
 
Please register or log in to leave a reply.