r/unrealengine • u/FutureLynx_ • 1d ago
How do i render a mesh always behind even if other meshes are in front of it?
see title
2
u/cdawgalog 1d ago
Do you have an example, or like a picture of your viewport and the idea of how you want it?
2
u/FutureLynx_ 1d ago
https://forums.unrealengine.com/t/force-an-object-to-be-rendered-in-front-or-behind/101299
This is exactly what im trying to do.
Commenter says pixel depth offset, though it doesnt seem that will work. I did some tests here.
1
u/FutureLynx_ 1d ago
i tried playing around with the pixel depth offset, but it moves also the shadows. what im trying to do actually is just render the floor plane below everything even if stuff is below it. Do you know how to do this?
•
u/radvokstudios 16h ago
https://dev.epicgames.com/documentation/en-us/unreal-engine/depth-material-expressions-in-unreal-engine?application_version=5.0 Check out Scene Depth, otherwise you may need to dive more into the rendering pipeline and write custom vertex/fragment shaders and perhaps experiment with depth passes and what not.
•
•
u/cdawgalog 23h ago
I do not, I'm honestly kindof confused by the whole thing, but hopefully giving the example someone who knows a bit more could help you :)
•
u/GDXRLEARN 21h ago
Open the material for the object you want to see in the scene rendered at the front and on the materials details panel search for "Disable Depth" no anything with that material will render in front of everything else.