Making part of an object invisible

Hi all,

Is it possible to have a volume that would make objects inside of it invisible. So if I had a long cylinder and placed half of it in this volume then that half would be invisible and the half outside the volume would still be visible.

I have been looking around and found things like Cull Distance Volume and portals which allow you to look through but not place something half way through. I do not believe I can achieve the desired affect with these though.

Thanks

depending on the shape you require of that volume the technique described in this video might be of use to you.

Thank you very much. I believe I’ll be able to make this work.