HOUDINI BLOG

MY JOURNEY INTO HOUDINI

 

 

LANDSCAPE AND RIVER TOOLS

19 november 2019

Terrain shading

I started with learning more about triplanar shading because this is a common technique used in a lot of games. Why? It fixes the problem of stretched UVs in f.e. terrains. Ben Golus explains triplanar mapping in a wonderful way here! I started experimenting with this technique in Unity's Shader Graph. I had never worked in it before so now was the moment. I had some problems with flipping normals so I left it for what it was. It worked for 90%. I also discovered some ways of preventing tiling but I didn't apply them in the terrain material because I was working with Unity 2019 and it isn't officially released yet.

Interesting site about this topic of Inigo Quilez.


The following video is an interesting approch to world building in Houdini of Ubisoft's Ghost Recon Wildlands!

Houdini Landscape Tool

I started making a simple terrain tool in Houdini For Unity. The goal was to make an easy to use tool to quickly make landscapes using Houdini Enigine. I had some problems with texturing the terrain because Houdini can be tricky sometimes. It may look good in Houdini itself, but when exporting it to Unity it looks so bad. The mistake I made was trusting on the visuals of the layer masks but not on the values. I resolved this by remapping, scaling and clamping this with the heightfield layer node. 


Another mistake I made was exporting and importing terrain in the wrong way. Terrains in Houdini must be sized by the power of 2 + 1. For example 256+1 or 512+1. In Unity they are just sized by the power of 2, like fe 256 or 512. I made a terrain exporter that exported the unity terrain back to houdini to apply some changed. So what was happening here... The 256x256 from Unity was also 256x256 and never changed again. 256x256 != 257x257. Every time I exported it back and forth the size decreased by 1 so 257, 256, 255, 254, ... I thought it was a transform problem... but lucky me I found the stupid mistake.


The following video is an overview of the landscape tool I made

Houdini River Tool

I also made the base of my river tool (based on a spline and heightfields), that I want to expand in the near future. A good practice! Beneath some pictures of the base tool.