|
![](/i/fill.gif) |
"uekstrom" <uekstrom at gmail dot com> wrote:
> Thanks, it worked fine with the ios and an appropriate color_map! (See
> http://dustyattic.org/pool/orbitals.png for a simple example)
>
> I used the texture below. It didn't look very good with fewer entries in the
> color map.
>
> #declare gam = 4;
> #declare xray = texture{
> pigment {
> aoi
> color_map {
> [0.00 color rgbt <1,1,1,1-pow(0.0,gam)/pow(0.5,gam)> ]
> [0.05 color rgbt <1,1,1,1-pow(0.05,gam)/pow(0.5,gam)> ]
> [0.10 color rgbt <1,1,1,1-pow(0.10,gam)/pow(0.5,gam)> ]
> [0.15 color rgbt <1,1,1,1-pow(0.15,gam)/pow(0.5,gam)> ]
> [0.20 color rgbt <1,1,1,1-pow(0.20,gam)/pow(0.5,gam)> ]
> [0.25 color rgbt <1,1,1,1-pow(0.25,gam)/pow(0.5,gam)> ]
> [0.30 color rgbt <1,1,1,1-pow(0.30,gam)/pow(0.5,gam)> ]
> [0.35 color rgbt <1,1,1,1-pow(0.35,gam)/pow(0.5,gam)> ]
> [0.40 color rgbt <1,1,1,1-pow(0.40,gam)/pow(0.5,gam)> ]
> [0.45 color rgbt <1,1,1,1-pow(0.45,gam)/pow(0.5,gam)> ]
> [0.50 color rgbt <1,1,1,1-pow(0.50,gam)/pow(0.5,gam)> ]
> [1.00 color rgbt <1,1,1,1> ]
> }
> }
> finish{ ambient 1 }
> }
>
> Ulf
Looks good.
One thing you can do rather than having multiple entries is use the poly_wave
waveform (rather than the default linear waveform) which should be able to do
axactly what you are doing with multiple entries (only better as it would be a
continuous nonlinear waveform whereas you have many smaller linear waveforms)
-tgq
Post a reply to this message
|
![](/i/fill.gif) |