Best way or ideas for doing this

hi. What i want to do (not c++) its have something like this, items (cylinders) must become not visible partially when are out of the box and visible when enter the box (moving objects), i have few ideas with some trick but the part when its partially visible i’am lost. . ideas?

create a material for the cylinders that uses a world position node to determin the materials opacity.

thanks. i will try that way since i haven’t too much alternatives :slight_smile: i think i going to have a problem with that approach but need try first .