|
![](/i/fill.gif) |
> Aparently, you already have a function to eveluate the density. Taking that in
> acount, it would be easier, and probably faster, to directly use that function
> as density for a media.
> interior{media{emission 1 density Your_Function}}
> To increase the quality, you increase the samples value (default of 3). Don't
> touch to intervals, inefficient and very slow.
>
> --
> Alain
> -------------------------------------------------
> Just remember - if the world didn't suck, we would all fall off.
Hi Alain. First of all thank for you reply.
I explain better the problem...
Let suppose that the intersection of the object with a plane is (in 2D) as
follows:
@@@@@@@@@
@ @
@ @
@ @
@ @
@@@@@@@@@
Let's do our considerations in 2D, but they can be extended in 3D easily.
@@@@@@@@@
@111111111@
@12222222221@
@123333333321@
@12222222221@
@111111111@
@@@@@@@@@
What I'd want isn't a generic Your_Function with parameters x, y or z. What
I want is a density function with only a parameter d, where d is the
distance of the vector V=<x,y,z> from the contour of the surface, V inside
the object. It's obvious that there are some preconditions to impose...
Look at the 2D section... Let's consider a linear density function.
Your_Function conincide with the distance. So, for point at distance 1,
density is 1; for points at distance 2, density is 2; and so on.
Does the line "interior{media{emission 1 density Your_Function}}" allow me
to do what I'm expecting? Does it allow me to "follow" the contour of the
object?
Post a reply to this message
|
![](/i/fill.gif) |