Dan Connelly wrote:
> [part snipped]
> But it would be extremely useful to have a product
> version, yielding :
>
> density {
> product
> density_map {
> [1 spherical]
> [1 granite]
> }
> }
>
> Note a granite-spherical product would give a borderless
> rendering of a flame (ie the hard border wouldn't be visible).
> [part snipped]
> Dan
>
> --
> http://www.flash.net/~djconnel/
Hi Dan,
The 'product' operator is inherently built into the system - using
multiple densities in the same media - just as the 'addition' operator
is - using multiple media in the same interior.
To get the effect you are after use:
media {
...
density { spherical ... }
density { granite ... }
}
I've used exactly this sort of mapping in a couple of images I've posted
the code for ('Hazy Days ... ' to form clouds and in reply to a post
about fireplaces) if you want to see some working examples.
All the best,
Mike Andrews.
Post a reply to this message
|