Hi - first thank you for the POM node. It works great and is pretty easy to use.
I do have a question regarding usage though. We just finished a set of ground materials and were testing it in UE4. The landscape looks great but we’d like to get some distanced base POM on the landscape mat. It’s pretty easy to get on a single Mat but is there anyway to get it on Landscape - preferable using the landscape layer nodes instead of something like vertex paint.
Hey , just wanted to say awesome work with POM node, it’s amazing!
I was wondering if those content example materials you had posted a while back had made it into 4.10- just looking for a solid example of hooking up the “shadows” output from the node/seeing the proper way to setup the lighting for the “Light Vector” input!
hmmm I have no idea what I am looking at… that looks more like a bounding volume trace like VolumeDecals more than POM… are you trying to POM using virtual plane coordinates or somesuch?
If you can post some more info like a small thumbnail of your heightmap and what the actual geometry looks (above shape looks like a cube, but the UVs appear to not be a cube so I have no idea) it will help us debug.
Hi ,
Firstly, I’d like to thank you for sharing POM function. But what is a proper way to get it working with tri-planar texturing? What I’ve done so far is modifying WorldAlignedTexture node to calculate it 3 times, however it results in correct parallax direction only on one side of the cube. Other sides have parallax direction inverted.
Hello, first of all I really love it! I’ve been playing around with it, and I’m impressed.
I have a little question about the “offset only” function. In my case I have two normal maps (main with height map, and second just a detail with more tiling) and I wish I could make them bumped with that height map.
I would love to understand more in detail what should I actually do since the tip in description is quite confusing for me, and can’t figure it out. From description that looks exactly what I’m aiming for:
“Use when you want to use t he offsets with textures that need a different tiling factor than the heightmap.
You need to multiply the offset by the tiling ratio between the surfaces. Ie, if the Heightmap had a tiling of 1, and a second overlay detail texture had a tiling factor of 8, you need to multiply Offset value by 8 before adding it to the UVs of the detail texture.”
I would really appreciate any more help, if not best would be some illustration. Thanks in advance.
That ‘advice’ I gave in the tooltip is just wrong. You can take the “parallax UVs” output and multiply it by another number to tile it more and it will work fine. I am going to fix that wording in the node soon.
Also currently triplanar mapping requires a modification to the tracer. Right now it is transforming the view ray into tangent space. For triplanar POM you will need to do POM three separate times like you guessed.
But it also needs a custom transform for the 2 side faces (XZ and YZ). I think some kind of swizzle operation will work there but I haven’t tested it out yet. is a nontrivial amount of things to add I am not really sure about adding support for it in the node since it would require new inputs and it would probably be so expensive it would be almost guaranteed to get cut from any shipping product.
The simplest way to expose it yourself is to go into the function and find the camera vector that goes into the “world to tangent” transform. Delete that transform and add a new function input called “Custom Camera Vector”. Then you can do the custom swizzles for each of the sides and plug in the different camera vector for each of the tri planar samples.
Actually I just realized somebody made a material function called “TriPlanar Camera Vector”. see if you have it… if so those vectors might work here.
We have huge issues inclusing crashes and driver time timeouts when using POM with cyliderical mesh. I can reproduce by applying POM to basic Sphere mesh. What could cause kind of bug?
The only time I have seen such a crash was when using a local version of POM that tried to perform some of the calculations on the CustomUVs and then it only seemed to happen when using pixel depth offset. But I have never seen it with the vanilla POM node. Maybe some strange driver combo??
Does it happen with Pixel Depth Offset disabled? If not, does it happen when “Manual Texture Size” is set to true?
Also which version are you using? last suggestion is a longshot, but maybe you have the old version that failed to compile on macs. If the custom node inside of the POM has a line “int i;” try making it say int i = 0;
It’s happen on two different PC’s with different gpu’s and latest drivers. We only use vanilla POM from 4.10. No pixel offset or manual texture size. I try to build minimal test case tomorrow at work.
Does it relate to ? :
"Description=“Pixel Depth Offset is used to give accurate intersection with other meshes as well as shadows cast by other meshes. Will cause a problem with Dynamic Shadows since the original depths will shadow the new offset depths.”