Author Topic: Help with object populations  (Read 2521 times)

Offline jockc

  • Member
  • *
  • Posts: 6
Help with object populations
« on: April 18, 2009, 06:25:32 AM »
Complete noob here.  I am playing with populations (clumps of grass, rocks) but I can't figure out how to change the color of the objects.  They always wind up being white.  I have tried adding surface shaders to the object but it doesn't work.  Also I can't see any way to control where the objects are placed. i.e. no slope/elev limits or anything like that.

Offline gregsandor

  • Member
  • *
  • Posts: 774
Re: Help with object populations
« Reply #1 on: April 18, 2009, 07:09:54 AM »
How did you try to add surface shaders to the object?

Offline jockc

  • Member
  • *
  • Posts: 6
Re: Help with object populations
« Reply #2 on: April 18, 2009, 04:38:37 PM »
Yes, I figured that part out.  Here is what I do:

Add Object -> Population -> Rock

under Distribution set area length and width to like 10000;  drag the area so the camera scene is covered; object spacing to about 50
under object Scale set the min and max scale to like 10 and 20
under Surface Shaders -> goto Default shader 01 and set diffuse color

at this point I have the object uniformly spread thru the scene and with the selected color.

But I want to control the distribution a little better.  For example I want to Limit the altitude and slope.

Offline aymenk2003

  • Member
  • *
  • Posts: 526
  • Asking, Rendering ...
Re: Help with object populations
« Reply #3 on: April 18, 2009, 08:04:38 PM »
Le peu que je sais, c'est mon ignorance que je le dois.

Offline jockc

  • Member
  • *
  • Posts: 6
Re: Help with object populations
« Reply #4 on: April 19, 2009, 05:06:30 PM »
I still can't get it to work.  Here are a few screen shots of showing what is happening.  I am using a 'grass' shader with test color set to bright red.  The camera is set to look from above.  I turn on display preview and you can see the distribution is not limited to the red area, which is what I expected.


Offline cyphyr

  • Member
  • *
  • Posts: 4036
    • richardfraser
Re: Help with object populations
« Reply #5 on: April 19, 2009, 05:14:10 PM »
Try setting your distribution shader to black and white, with the same settings as your Grass_Land shader. White allows an effect, black denies the effect.
richard
www.richardfraser.co.uk
https://www.facebook.com/RichardFraserVFX/
/|\

i7 5930K @3.5Ghz, 32Gb (TG4 benchmark 13.44)
i7 980 @3.75Ghz, 16Gb (TG4 benchmark 18:40)

Offline jockc

  • Member
  • *
  • Posts: 6
Re: Help with object populations
« Reply #6 on: April 19, 2009, 05:25:17 PM »
I don't know how to set the distribution shader to black and white, but I did discover that if I create a new distribution shader (same settings as Grass_Land) and disconnect it from the main node group, and then select it for the Pop density shader, it works as expected. 

Offline neuspadrin

  • Member
  • *
  • Posts: 1032
  • Terragen++
Re: Help with object populations
« Reply #7 on: April 19, 2009, 06:06:19 PM »
the object needs to share the same density shader as your surface shader, it can't use the surface shader as a density shader. so you can either a) duplicate the density shader and set them to different ones, or b) make them share the same density shader that the surface shader uses.