POM material

Hi

Have anyone make a POM material can i have a tutorial ? like

13_pom_animation.gif

http://www.simonfuchs.net/folio/tut02_pom.htm

1 Like

There are already examples of Parallax Occlusion materials in UE4. If you look at the starter content, the Cobble material uses POM as does one of the other rock/cement materials. That should give you everything you need.

Bear in mind, they are both complex and expensive.

I have tried to replace texture from the cobble stone material but the result is really bad.Have you already make POM material in UE 4.I can’t have the same result as cryengine.

To be fair the material from the starter content is pretty complex and not easy to modify even if you now the basics of the material editor. The parallax pass already combines 2 different diffuse textures with different tiling and many nodes aren’t parameterized which won’t let you easily swap textures or adjust values (like the height ratio).

Also it’s not actually POM, but a multi layered parallax mapping which also handles self occlusion. Still it’s based on a regular parallex effect which means depth decreases at acute view angles. It also seems to scale bad with multiple textures because each parallaxed texture needs to be part of the loop instead of the loop returning parallax texcoords which you could plug into as many texture sample nodes as you want.

Its also not supporting silhouette, which the cryengine version does. So you cant have stuff really sticking out like in the example shown by you above. So besides the fact its a very complex shader, its also quite limited and therefore not really ideal :frowning:

Interested in the Mat-Tree? Hell yes! Looks awesome!!

I sure would like to see it!:cool:

! Literally everything you consider turns to gold! You are unbelieveable! (Think I’m maxing out my exclai

Thanks for sharing! It would be nice if Epic would integrate as a material function in a future release.

1 Like

Wow, is fantastic. I can’t find the ā€œWorld to Tangentā€ node anywhere though, but I’m a total noob with sort of high level material

Thanks for sharing! Excellent work; Iam going to try out evening :slight_smile:
Regarding the self-shadowing (which would be a huge benefit, without any doubt!): I asked in a separate topic and got an answer from Ketchum who directed me to page. Apparently the light vector isn’t directly available as in UDK and a workaround would be to make use of dynamic material instances…

No problem. Thanks for the reply - I found it, I was only finding the opposite before, not realising you could change the destination and target. Much appreciated.

Having issues currently, sadly…but I assume I’ve done something wrong. is my first time using a custom node. I’ve used the same graph as you, but I get the error ā€œ[SM5] (Note Add) Arithmetic between types float 2 and float 3 are undefiniedā€ - is referring to the Add node that adds the CalcParallax node with the TexCoord node.

Good job there , thanks for sharing.

Is there a specific reason you are transforming the camera vector and vertex normals to tangenst space for the angle based sample count? Should work just well in world space. (not much of a instruction saving since the tangent camera vector is required anyway but still a little bit)

Sooo, I gave it a try :slight_smile:
It looks stunning in the material editor preview but starts to make problems in the ā€œrealā€ application… Somehow the algorithm does not like when the mesh to which the material is applied starts to be rotated…?
See the attached screenshots… Mesh 1 is placed normally into the scene. Mesh 2 is rotated slightly but still faces upwards. The effect apparently does not really follow the rotation. And everything becomes extremely weird, when the mesh is rotated out of its original plane, as demonstrated with mesh 3…

Any ideas on that? Otherwise the effect is just increeeedibly good!

Any you are doing the wrong vector transformation, like local to tangent?
World to Tangent should give just correct results for the camera vector.

Jep, sounds reasonable; I have to check it after work evening. Thanks for the advices!

Thanks for sharing :cool:

Yes, was of course the error - now it works perfectly :slight_smile:
Just a last question: Enabling the ā€œUseSilhouetteā€ effect seem to make it not possible to render the texture properly on brushes. I won’t really use the material on brushes anyway but just out of curiosity - can you explain that?

I can’t make
Here is my material can anyone help ?

Judging by the node previews I’d guess that you accidently set the U/VTiling to 0 in the texcoords node.