I grabbed a material from Megascans, it has a albedo, normal map and a texture with 3 channels.
Red = AO
Green = Roughness
Blue = Displacement / Height ?
I want to use the last texture for Parallax Occlusion but I can't seem to make it look right.
In the Heightmap channel(V4), I keep hearing it should be set to Red for X direction?
I assumed I would have to make it blue? Since the displacement map is in the blue channel of the Texture i'm using. Which one would be correct here?
Replies
That aside, you should verify what information is packed into which channel. Should be able to preview the different channels inside Unreal. Could pack yourself to be sure. I believe a common packing for Unreal is ORM (Occlusion, Roughness, Metalness).
Best include more information/images (channel, what does result look like). Could check documentation, if you haven't already, and inspect sample content.
It seems to have a AO map in Red, a roughness in Green and a heightmap in Blue.
But when I add the blue channel it looks completely wrong, it's like it's tiling the UV / adding more bricks instead of doing parallax occlusion. Seems to work fine with red channel, just no clue what it's using.. i'm assuming for some reason it's using the AO map.
It looks like when blue channel is on, it's pushing the entire texture back so it looks like it's tiling.
Maybe try setting the reference plane to 0.5, so the parallax goes equally inwards and outwards.
Looks like there was once a sample project, maybe it's still available so you can take a look. There is also an old documentation entry. I think the benefit of using POM also depends on the surface. If it has little depth to begin with, it won't do much.
For some reason it keeps looking wrong if I set it to the blue channel, theoretically it makes sence that it'd be the blue channel but it seems only red channel works and looks ok
As you can see, it's like the entire plane is pushed down bellow the curb on blue channel with barely any POM going on. I guess i'll just keep using the red channel for now, until I figure out what can be done. Thanks for the info and the links
is the plane moving? why is the plane moving? POM is not for displacing things, it just messes with UVs
maybe it's just perspective
There's not much range in that height texture - you'll need lots of samples or to run autolevels on it
edit: ah, you're probably using Pixel Depth Offset.
I'm assuming since your test was also using megascan textures that we have the same type of heightmap in blue channel, do you mind perhaps showing me your shader graph for the Parallax Occlusion? Here is mine, with the pixel depth offset.