Exporting masked heightfield
1094 1 0- GijsH
- Member
- 1 posts
- Joined: April 2017
- Offline
So I have a question with my project. I am building a terrain and I want my cliffs exported to a mesh. I've already created a terrain mask for the cliffs but i don't know how to export it to a mesh without exporting the complete landscape. In other words is it possible to export a portion of a heightfield to a mesh with a heightfield mask? If so how does one accomplish it?
- DSpider
- Member
- 14 posts
- Joined: Sept. 2018
- Offline
I know it's an older post, but I thought I would share my answer:
1. Drop a “Convert HeightField” node and connect it under the last node of your heighfield node chain.
2. Drop a “Point Wrangle” node, connect it to the above node and use this code:
3. Add a “Poly Extrude” node, connect it to the above node, set the “Distance” parameter to something like 2 (so it gives the geometry some thickness), and tick the “Output Back” checkbox.
That's it. Have fun sculpting it in ZBrush or applying some further SOP modifications to it!
I hope it helps someone. I was mainly interested in trying this because of Ubisoft's Far Cry 5 presentation last year: https://youtu.be/NfizT369g60?list=LLiTVPjw14kduXNMJhI_cXDw&t=1241 [youtu.be]
1. Drop a “Convert HeightField” node and connect it under the last node of your heighfield node chain.
2. Drop a “Point Wrangle” node, connect it to the above node and use this code:
if(@your_cliff_mask_name < 0.5) removeprim(geoself(), @primnum, 1);
3. Add a “Poly Extrude” node, connect it to the above node, set the “Distance” parameter to something like 2 (so it gives the geometry some thickness), and tick the “Output Back” checkbox.
That's it. Have fun sculpting it in ZBrush or applying some further SOP modifications to it!
I hope it helps someone. I was mainly interested in trying this because of Ubisoft's Far Cry 5 presentation last year: https://youtu.be/NfizT369g60?list=LLiTVPjw14kduXNMJhI_cXDw&t=1241 [youtu.be]
-
- Quick Links