microvswind Posted February 12, 2020 Share Posted February 12, 2020 hi guys,i encounter a trouble about heightfield,i want to add detail on the verticle side of the cliff,i plug a mask and noise but it do not effect the cliff.attatch the file hip and screen shot below. may you kind would give some tips. regrads mic Terrain_Mic.hip Quote Link to comment Share on other sites More sharing options...
muxalko Posted April 18, 2020 Share Posted April 18, 2020 Hello Mic, It is not possible ,at least with heightmaps, because is basically a 2D image and you simply have no space to represent your Z data into the map. If you look at your terrain from above, that will become obvious. This is very interesting problem I also try to investigate, with no easy solution up to now:( One of the options , is to convert your heightfield to a mesh and continue from there , having full 3D space for your shapes , effectively loosing the optimisations and performance of the heightmap algorythms. The second way , is to make the correction at the shader level, that includes some tricks with blending UVs and triplanar projections. Also, this method can't be used in cases when any sort of physics body involved (If, for exaple, you want to simulate body collisions with those cliffs). It very depends on the final purpose result you want to acheive. I would suggest to avoid such sharp surfaces and make it less steep, unless you want to dive deep into some cumbersome solutions. There are a few links I found on the topics that might be useful. https://www.gamedev.net/forums/topic/643254-grid-heightmap-with-clifffaces/ http://whirlicube.com/heightmap-with-cliffs.html https://hal.archives-ouvertes.fr/hal-02273097/file/2019-tog.pdf Let me know how did you solve your problem, I am a bit curious BR, Michael Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.