Planetside Software Forums

General => File Sharing => Topic started by: aknight0 on November 14, 2021, 07:46:52 PM

Title: Procedural City
Post by: aknight0 on November 14, 2021, 07:46:52 PM
I'm sure this has been tried before, but I was experimenting today with creating a procedural city from displacements.  No good for close-up shots obviously, but gives a city-like feel from far away.  The voronoi section is pretty heavy on render time unfortunately.  

Procedural_City.tgd

1.jpg 2.jpg
Title: Re: Procedural City
Post by: WAS on November 14, 2021, 07:48:51 PM
That's awesome! I think DandelO or someone shared something like this years ago but since lost.
Title: Re: Procedural City
Post by: Hannes on November 15, 2021, 04:30:21 AM
Wow, this is amazing!!! Thanks a lot!!
Title: Re: Procedural City
Post by: KlausK on November 17, 2021, 05:14:11 AM
hi, and thanks for the file.

I walked through the setup and found that you use a LOT of Colour Adjust nodes!
They substantially contribute to the render times. The attached picture I posted
shows a comparison between your original setup and only just one Colour Adjust node altered.

I went into "Road Grid", "sineWave" and inside I changed "Colour adjust shader 02".
Setting the "White point" from (your) 0.1 to 1 resulted in 10 minutes less render time.

Of course I am aware of the less defined and accurate blocks this leads to but given the fact that this is simply a background element it is worth to consider.
And as I mentioned there are a lot of Colour adjust shader nodes in your setup...a lot of potential to reduce render time.

CHeers, Klaus
Title: Re: Procedural City
Post by: aknight0 on November 18, 2021, 10:38:36 PM
Thanks Klaus, good tips.  I never realized color adjust nodes were such render hogs.  It's strange as it seems like a simple node.  Is it the node itself, or the sharp-edged colors I'm producing with it here?
Title: Re: Procedural City
Post by: WAS on November 19, 2021, 12:29:06 AM
It's the sharpness, if you look in the original, there is torn geometry at the boundaries. This errored geometry will cause computational hangs. While TG is probably very optimized to quit these heavy areas before wasting too much time (hence crazy looking geometry/tears/holes/flipped through looking stuff), it still probably adds to the render time when it has to do it a million times.

Totally straight edges (on Y) aren't handled very well it seems with displacement [at least on built-in displaceable primitives] (and probably totally straight edges on any primary axis). So it's good to have a very faint, slight angle (fuzzy area).
Title: Re: Procedural City
Post by: Stormlord on December 09, 2021, 10:06:33 AM
Awesome background city, thx for sharing!

STORMLORD
Title: Re: Procedural City
Post by: Kadri on December 11, 2021, 12:51:10 AM
Cool! Thanks for sharing.