POV-Ray : Newsgroups : povray.general : wish list : product : Re: wish list : product Server Time
16 Nov 2024 11:15:56 EST (-0500)
  Re: wish list : product  
From: Michael Andrews
Date: 25 Aug 1998 06:06:16
Message: <35E27EA4.4D1C5321@remove-this.reading.ac.uk>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.