Planetside Software Forums

General => Terragen Discussion => Topic started by: bcgreen24 on October 23, 2019, 11:29:20 PM

Title: How to Randomly Adjust Hue of Objects in Population
Post by: bcgreen24 on October 23, 2019, 11:29:20 PM
How can I randomly adjust the hue of objects in a population (actually, parts of objects-- say, the leaves of a tree)?  For example, how can I randomly change the hue of leaves on a tree so the hues range from red to yellow to orange, etc.?

Thanks!
Bryan
Title: Re: How to Randomly Adjust Hue of Objects in Population
Post by: WAS on October 23, 2019, 11:50:06 PM
You can use power fractal shaders to adjust the colours in many ways.

If you wanted the leaves to be green, but retain some of the UV texture data, you can load the texture as  a Image Map Shader, than use the Convert Colour to Grayscale. From here, you can use a Add Colour shader and a PF to add new colour definition to the grayscale image map.

I'll post an example in a moment. I just realize I have no vegetation objects (again) due to various issues I had migrating to a new PC with a Seagate 2tb (Don't trust Seagate with valuable data, seriously)
Title: Re: How to Randomly Adjust Hue of Objects in Population
Post by: Matt on October 24, 2019, 12:07:50 AM
Kevin Kipper has written an article in our wiki called "Population Colour Tinting Techniques"

https://planetside.co.uk/wiki/index.php?title=Population_Colour_Tinting_Techniques
Title: Re: How to Randomly Adjust Hue of Objects in Population
Post by: bcgreen24 on October 24, 2019, 12:19:56 AM
Quote from: Matt on October 24, 2019, 12:07:50 AMKevin Kipper has written an article in our wiki called "Population Colour Tinting Techniques"

https://planetside.co.uk/wiki/index.php?title=Population_Colour_Tinting_Techniques


Awesome, thanks! I'll check this out...

Bryan
Title: Re: How to Randomly Adjust Hue of Objects in Population
Post by: WAS on October 24, 2019, 12:57:48 AM
Here's an example of procedurally recolouring a texture image, in this case the Japanese Walnut from Xfrog: http://xfrog.com/product/JA08.html (note, this [TGO] object is old, and it's network may appear unfamiliar)
Title: Re: How to Randomly Adjust Hue of Objects in Population
Post by: bcgreen24 on October 24, 2019, 09:19:44 AM
Quote from: WAS on October 24, 2019, 12:57:48 AMHere's an example of procedurally recolouring a texture image, in this case the Japanese Walnut from Xfrog: http://xfrog.com/product/JA08.html (note, this [TGO] object is old, and it's network may appear unfamiliar)
Thanks for this!