how to display 3d widget in front of everything
my 3dwidget:
Currently the problem i got :
i know how to add widget to viewport , but that is no i wanted, i want to make 3d hud and it is move with the character .
Why you try to get your widget on the 3rd person character’s viewport?
Just open up your character’s blueprint and then on begein play get a wire and create a widget, adjust the current widget you wish to dislpay on it and add it to viewport(with add to viewport node).
Then I would try to adjust the camera and place it even further back so I can have space to put the 3d widget behind the character without him colliding with the 3d widget. But the best would be to do it as I answered above.
even so, the 3d-widget will block by other scene objects, generally method is using custom shader to make the hud content draw on top of the screen, i done it before in unity3d, i just want to know how to implement in UE4
You’ll have to modify the position of the 3D widget actor by the forward vector of the first person camera. See the screenshot below (this was done in the character blueprint). You can also use the first person camera’s up and right vectors to move the 3D widget around.
You might also have to rotate the 3D widget (again, use the first person camera’s settings) if you want it to always face the camera. This is not shown in the screenshot.
(I see I was a bit retarded with the “-100” and “-” nodes when creating this blueprint for you.)
You can change the material that’s applied to the 3dwidget component to be translucent with “No Depth Test” enabled
I’m having the same issue. Where do I find the “No Depth Test”?
To disable depth test, go to the material you wish to disable and there’s a checkbox (under “Translucency”) that says “Disable Depth Test”. As user Fantasifall said, the material needs to be set to “Translucent”.
Disable Depth Test does not exist in the UI Material Domain.
Edit: Noticed my misunderstanding. You need to edit the base material of the widget, not the material used inside of the widget component.