Hi everyone, I am looking at using the new nanite displacement options for 5.3 inside the material.
Is there any official documentation or command line arguments available, documentation on how the system works exactly, and how to adjust parts of it?
Me and my client are trying to get high fidelity surfaces with intricate detail, this new tessellation is perfect for it but we’d like the ability to see how it works and be able to customise it.
One specific feature that would be good is the ability to edit the displacement strength in material instances, as currently it can only be applied in the master material (using a multiply on the displacement texture causes issues)
This is the tutorial I watched: (make sure to add the two entries mentioned in the description first)
Keep that multiplier below 1.0 in your code to keep it working OK.
The Video shows a value in the details panel which is a multiplier (and a center value) - you may be able to change them in an instance - I haven’t tried though.
Yeah i’ve got it set up and working, but using that method with the multiply doesn’t work as it (maybe) should.
What happens is the zero point of the texture does not stay in the same place for textures with 0.5 grey as the middle value (regular displacement maps).
You can see in these images that should technically have the same exact look however the later is obviously causing issues.
Try putting the center at 0,0 - but I think there are still some things that need to be ironed out for it to work perfectly. Hopefully before 5.3 release!
yeah i will edit the texture and try this, but most displacement textures are centred at 0.5 so I agree i hope this gets seen by the devs and ironed out
Interestingly I think I may have found a bug, or function thats not working correctly.
Using a value of 0.25 in the center value produces the correct result. So there is something strange going on with the multiply node causing the center value to move.
I think the reason for this is the center value needs to scale with the multiply value but does not, causing the issues seen before. This also means its currently not possible to control the displacement strength through the material graph.
Hopefully some of the devs can see this and address it.
I think I see what’s happening - it’s because the source texture is between 0-1 - if you multiply it out to be between -1 and 1 it gives the correct placement when the center is at 0.5:
Ah yeah, that worked perfectly although I also had to set the center to 0 on the material.
I now have it set up with a parameter between 0 and 10, and a displacement material value of 10 for a maximum of 10cm displacement with the ability to reduce to whatever distance is needed.
Edit: for anyone needing a reference here is my node set up (the parameter has a max slider value of 10)