How to make an object visible which is blocked by other static mesh object?
I want to show x, y, z arrows, just like unreal engine, to adjust object positions. I use three arrows to simulate it.
The result is like this:
The problem is that: part of the arrows are blocked by the cube. How to make the arrows visible, no matter they are blocked or not?
I think it is the same problem as: how to make an object show in front of anything?
asked Jul 27 '16 at 06:56 AM in Rendering
Just like what UE4 editor, You need to get the Primitive in C++ and call UPrimitiveComponent::SetDepthPriorityGroup(). Normally, all primitives are render in SDPG_World, but all UI or highlight primitive should render in SDPG_Foreground. You can search these key words to see how it works in UE4 editor code.
Cheers, Jin Yaping
Aha, sad news. It seems UE4 don't have any official solution about this now. But you can try this ( https://answers.unrealengine.com/questions/118403/how-can-you-render-3d-objects-on-the-hud-that-are.html ). That means you need use render target for it and add a postprocess to blend with original scene. Also, you can try 3D widget. It's experimental but still you can try it. I am not sure if it come to stable in latest UE4.12.5.
Cheer, Jin Yaping
answered Aug 02 '16 at 04:05 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here