Planetside Software Forums

Support => Terragen Support => Topic started by: AP on July 24, 2017, 02:29:41 AM

Title: Populator issue
Post by: AP on July 24, 2017, 02:29:41 AM
The population is not sitting on the Fake stones, just everywhere else. Looking through the forums, nothing was found on this issue. Any help on this issue would be most welcome.
Title: Re: Populator issue
Post by: Dune on July 24, 2017, 04:44:52 AM
Did you populate on a shader after the fake stones? You should. And add a new compute terrain before it goes into the pop, and use a small patch.
Title: Re: Populator issue
Post by: AP on July 24, 2017, 05:16:11 AM
Quote from: Dune on July 24, 2017, 04:44:52 AM
Did you populate on a shader after the fake stones? You should. And add a new compute terrain before it goes into the pop, and use a small patch.

Yes.

Where does the new Compute terrain go? After the shaders and connected to the Terrain input for the Populator?
Title: Re: Populator issue
Post by: Dune on July 24, 2017, 11:18:16 AM
Yes, that's it, but not to the planet.
Title: Re: Populator issue
Post by: AP on July 24, 2017, 07:24:42 PM
Quote from: Dune on July 24, 2017, 11:18:16 AM
Yes, that's it, but not to the planet.

That did not work and the Gradient patch size is set to 1.
Title: Re: Populator issue
Post by: Dune on July 25, 2017, 02:34:42 AM
That's weird. But if the stones are smaller than a meter, even patch of a meter wouldn't be really enough. Can you post a tgd? You're making me curious...
Title: Re: Populator issue
Post by: AP on July 25, 2017, 07:14:50 AM
Quote from: Dune on July 25, 2017, 02:34:42 AM
That's weird. But if the stones are smaller than a meter, even patch of a meter wouldn't be really enough. Can you post a tgd? You're making me curious...

Here is the tgd file and a low resolution 3d primitive object to test with.
Title: Re: Populator issue
Post by: KlausK on July 25, 2017, 08:24:30 AM
I guess that is not what you want and surely you tried this yourself but, anyways...
Object spacing is set to 0.25 / 0.25 and Gradient patch size to 0.01.

Render time did not change much - 15 seconds or so.
Looks like the Fake Stones get populated last.
Cheers, Klaus
Title: Re: Populator issue
Post by: Dune on July 25, 2017, 11:59:27 AM
Even with a larger patch or compute normal it works.
Title: Re: Populator issue
Post by: KlausK on July 25, 2017, 05:30:32 PM
I have noticed that the bounding box preview seems to show more objects than the renderer actually creates in the final picture (in my eyes).
The attached picture is rendered with a Gradient Patch Size of 1. As you can see something prevents the populator to create as many
pop-objects on the Fake Stones as on the terrain. Surely some obscure renderer math thing going on here... ;)
Cheers, Klaus
Title: Re: Populator issue
Post by: Oshyan on July 25, 2017, 07:10:18 PM
It is usually extremely hard to judge how many instances have been populated just by looking at bounding boxes. If you are looking at the actual wireframes or smooth shaded, then that is different, and would potentially show a real discrepancy.

As for why it is more sparse on top of the rocks, it could be because it is calculating the spacing based on the original undisplaced planet's coordinates, and those coordinates have been "spaced out" (space between them increased, i.e. the area has been stretched) by displacement. I would think the Compute Normal/Terrain would fix this discrepancy, but I'm not sure.

- Oshyan
Title: Re: Populator issue
Post by: AP on July 25, 2017, 07:11:23 PM
Quote from: KlausK on July 25, 2017, 08:24:30 AM
I guess that is not what you want and surely you tried this yourself but, anyways...
Object spacing is set to 0.25 / 0.25 and Gradient patch size to 0.01.

Render time did not change much - 15 seconds or so.
Looks like the Fake Stones get populated last.
Cheers, Klaus

Using the Compute normal, the Patch size is 0.01 and the Object spacing is 0.25.