Planetside Software Forums

General => Terragen Discussion => Topic started by: Ulcerguts on November 07, 2017, 11:13:00 AM

Title: Problem with "anchoring" population
Post by: Ulcerguts on November 07, 2017, 11:13:00 AM
I guess the image is self-explained enough...

I have put the last shader node in the "terrain shader" of the population node. "Sit on terrain" is checked. I have always proceded like this, and no problem since today. If I take the node "compute terrain" (put by default), it don't take in count some power fractal shader I place after the compute terrain. Perhaps I don't organize well my scene ?

The population placement is controlled by a distribution shader.
There are two heightfields in this image, they are blended via a distance shader. And the actual anchoring works exactly as he "skipped" the impact of the second heightfield and the distance shader.

Thanks in advance for any tips or advice. I feel like I missing something obvious ahah.
Title: Re: Problem with "anchoring" population
Post by: DannyG on November 07, 2017, 12:46:29 PM
Assign your population to sit on the last surface layer in your node string not the terrain or a Compute Normal is also an option. Compute normal calculates all the additional layers and tells TG the values.

For example place a Compute normal at the end of your surface layer set up. 
Title: Re: Problem with "anchoring" population
Post by: Ulcerguts on November 07, 2017, 02:34:16 PM
Thanks for your answer, unfortunately it change nothing at all:

Title: Re: Problem with "anchoring" population
Post by: Oshyan on November 07, 2017, 04:58:05 PM
Is Fake Stones the very last shader before it goes into your Planet object?

- Oshyan
Title: Re: Problem with "anchoring" population
Post by: Ulcerguts on November 07, 2017, 05:14:13 PM
Yes it is.
Title: Re: Problem with "anchoring" population
Post by: Dune on November 08, 2017, 02:20:24 AM
Can you post the tgd?
Title: Re: Problem with "anchoring" population
Post by: Ulcerguts on November 08, 2017, 08:27:31 AM
Yes, here it is:

Ofc, I can't post heightfield/image map and population related.

Thanks in advance !

Title: Re: Problem with "anchoring" population
Post by: cyphyr on November 08, 2017, 09:16:34 AM
If you swap out the height field for a procedural one do you still have the problem?
Title: Re: Problem with "anchoring" population
Post by: Dune on November 08, 2017, 12:53:55 PM
I had little time, but added a rock pop. Try what this does...

Your min altitude was a bit high too.
Title: Re: Problem with "anchoring" population
Post by: Ulcerguts on November 09, 2017, 07:44:01 AM
Dune: Many thanks for your help, I have looked into it, you have put the compute normal before the fake stones ? It seems to work but only, as Cyphyr suggest, with procedural terrain. It is as Terragen don't recognize the second heightfield or the interaction between the two. I just don't understand at all.

The only solution I have, is to restrain the maximum altitude, I doesn't much affect the scene, and it's close to the result I would obtain.
Title: Re: Problem with "anchoring" population
Post by: Dune on November 09, 2017, 10:41:18 AM
No, I don't believe I changed that, but it might be that the heightfields are not working. I can't test without them though, so I used some arbitrary fractal terrain.
Title: Re: Problem with "anchoring" population
Post by: cyphyr on November 09, 2017, 12:51:01 PM
Hmm, probably nothing but I just noticed you have two distance shaders masking the one of the terrains and some following Power Fractals.
Distance shader should have a camera that the distance is defined from and these have none. Try assigning one of your cameras and see if that makes a difference.
Title: Re: Problem with "anchoring" population
Post by: Dune on November 10, 2017, 03:09:28 AM
I noticed those too, forgot to mention, but perhaps without camera they work from 0/0/0, never tested that actually.
Title: Re: Problem with "anchoring" population
Post by: Ulcerguts on November 10, 2017, 06:34:29 AM
Cyphyr: I have always assume that the distance shader use the active camera by default, simply because he have an effect on the scene, but yes it could be a part of the problem. I have recently increase the distance of near colors of the second distance shader for some reason and I have observed better result with the population, thanks for have pointed it !