Draw an area through other objects?
I'm trying to draw an area (or an object) through other objects, so it always appears in front.
I was hoping I could make some kind of shape that I could drag through the level, that only some objects could be seen through, but I'm not sure how to do that.
Basically in this area, it would draw everything except the occluding object(s). I was thinking of having a second camera that would draw everything except the object but I'm not sure how I would display just a small section of that camera on the viewport I already have, or how I would prevent drawing the occluding object(s) but draw everything else.
Here is a picture, it isn't a great picture but it should get the point across:
asked Nov 26 '16 at 04:59 AM in Rendering
You can use "Translucency Sort Priority" option in detail panel under Rendering category
But this option only work if object has translucent material. Give your occluding object a translucent material, than set "Translucency Sort Priority" to a value greater than 0 or higher
The result :
Purple jelly will always in front of pink jelly!
Attach a large object (plane is best I think) with a circle transparent material and attach to your player. The object will follow the player and occlude everything except the transparent area on the object
First, create a UMG. That call it "Occlude Image"
In your character blueprint, add a Widget component
Set up the widget, Space set to "Screen" so it will act like billboard
answered Nov 26 '16 at 09:04 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here