Re: [cgkit-user] grow.py: grassproc.py is missing
Brought to you by:
mbaas
|
From: Matthias B. <mat...@gm...> - 2007-07-10 19:37:43
|
Rene wrote:
> In Aqsis forum you mentioned that it now can use texture values too.
> That's not in the tutorial. I'm very much interested of texture
> values.
The procedure script is just a regular Python script, so, of course, you
can do anything you can do in Python, like for example using PIL:
import Image
img = Image.open("texture.png")
width, height = img.size
Later on in your actual procedure:
c = img.getpixel((s*width, t*height))
c now contains the color of the current position as an RGB value in the
range [0, 255] which you can use for whatever value you want to modulate.
> file. But if there was "easier" way, I'd like to know. I'm still a bit
> confused what values my proc.py can use besides N,F,P,s,t.
These are already all the values that are currently generated.
- Matthias -
|