Notifications
Clear all

[Closed] Mask Shader

 MZ1

I’m working on creating 360 degree 2D head using shapes with filled color or texture. Any idea how we can create a mask layer (shader) that will control visibility of other shapes? Something like this:

9 Replies

The little experience I had is that with composite material can be done, but on screen the response is very slow, at the level of animation is terribly difficult.
http://www.monotoneminimal.com/archives/506

My rigging test
https://twitter.com/i/status/1163976849283854338

think your looking at something custom in the sdk…

a texture map that creates a mask based on the current screen coords of a spline, and use that in the opacity of the material you want to clip. may already exist somewhere in the endless ether of the interwebby thing.

 MZ1

Yea, composite is super slow.

 MZ1

sdk has many difficulty for me, Do you know any maxscript,dotnet,MCG method?

 MZ1

I’m looking for an editable, animatable shape boolean solution.It seems Max 2020 added this functionality!

They added for the exact reason.

Also try OSL shader.

 MZ1

Yea! works very well, And I also found another spline stuffs, for example spline normalize which helps to morph two splines with different knots.

 MZ1

I heard that for this we need raycast functionality, which is not implemented in the OSL yet.