POV-Ray : Newsgroups : povray.general : Texture for "X-ray" type image : Re: Texture for "X-ray" type image Server Time
30 Jul 2024 14:25:38 EDT (-0400)
  Re: Texture for "X-ray" type image  
From: Trevor G Quayle
Date: 12 Dec 2008 11:20:01
Message: <web.49428eeb5c4bb01a81c811d20@news.povray.org>
"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

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