POV-Ray : Newsgroups : povray.general : why is my image so pale with white background Server Time
1 Nov 2024 03:16:33 EDT (-0400)
  why is my image so pale with white background (Message 1 to 5 of 5)  
From: Erick
Subject: why is my image so pale with white background
Date: 24 Nov 1999 17:14:12
Message: <383c6334@news.povray.org>
Hi,
I hope someone has an easy solution for my problem.

I am trying to make some images for a description of the standard model of
particle physics, such as neutron, protons, quarks, electrons etc.

The images have to be combined and used in print. Apart from the previous
mentioned CMYK problem (do those colors turn ugly, yagh) I have a problem
with the background. I would like our illustrator to be able to cut out the
'solid' objects and place them in the desired color background. A good
contrast between the edges and the background helps to make the result
appear smooth.

OK, I know I can make all the background colors in POV-ray that I want, but
it is difficult to obtain the desired color in RGB as I can't predict what
it will be in CMYK, and the colors have to fit in the lay-out (colors of
other images, photographs etc.).

I thought I would render all objects with a white background. When the
background is blue or black, they look nice. However, when I choose a white
background, they suddenly appear to be very pale. Like a color slide film
that has received too much light. What is the best way to proceed? A problem
is that some objects, such as the trajectory of an electron, should be
transparent.

Should I instead of background use a plane (some shadows would be nice,
maybe), should I change the lights or other settings or is there another
possibility to obtain the desired result with a coloured background.

Looking forward to advise

Erick

Here follows an example of such a scene file, three quarks in a
'transparent' sphere


global_settings { assumed_gamma 2.2 }

#include "colors.inc"
#include "glass.inc"
#include "metals.inc"

camera{location <0,8,-20> look_at 0}
  background {color White}
light_source{<100,100,-100> White}
// create a point "spotlight" (conical directed) light source
light_source
{
  0*x                     // light's position (translated below)
  color rgb <1,.7,.7>       // light's color
  spotlight               // this kind of light source
  translate <40, 80, -40> // <x y z> position of light
  point_at <0, 0, 0>      // direction of spotlight
  radius 5                // hotspot (inner, in degrees)
  tightness 50            // tightness of falloff (1...100) lower is softer,
higher is tighter
  falloff 8               // intensity falloff radius (outer, in degrees)
}

#declare Media = media {
  emission 0.05
  intervals 5
  samples 1, 10
  confidence 0.9999
  variance 1/1000
  density {
    spherical
    ramp_wave
    turbulence 0.1
    color_map {
      [0.0 color rgbt <0, 0, 0,.99>]
      [0.1 color rgbt <1, 0, 0,.95>]
      [1.0 color rgbt <1, 1, 0,.9>]
    }
  }
}
sphere {<0 ,0,0>,.5 pigment {color rgb <1,.2,.2>} translate
<1.5,1.5,-1.5>no_shadow}
sphere {<0 ,0,0>,.5 pigment {color rgb <.2,.2,.7>} translate
<-1,-1.5,1.3>no_shadow}
sphere {<0 ,0,0>,.5 pigment {color rgb <.2,.2,.7>} translate
<0,.5,-1>no_shadow}
sphere { <0, 0, 0>, 5
  pigment { rgbt<1, 1, 1, 0.8> }
  finish {
    ambient 0.0
    diffuse 0.0
    phong 1.0
    phong_size 200
  }
  interior { ior 1.2 }
  hollow yes
}

sphere { 0, 1
  pigment { color rgbf<1, 1, 1, 1> }
  finish { ambient 0 diffuse 0 }
  interior { media { Media } }
  scale 5
  hollow
}


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: why is my image so pale with white background
Date: 24 Nov 1999 17:42:40
Message: <383c69e0@news.povray.org>
In article <383c6334@news.povray.org> , "Erick" <ejv### [at] wxsnl> wrote:

> The images have to be combined and used in print. Apart from the previous
> mentioned CMYK problem (do those colors turn ugly, yagh) I have a problem
> with the background. I would like our illustrator to be able to cut out the
> 'solid' objects and place them in the desired color background.

What you want to use is the is "+UA" switch with a PNG (+Fn) or TARGA (+FT)
image file format. These formats support an alpha channel which allows you
to obtain the borders of (solid) objects easily. You can read this up in the
POV-Ray manual in section:

POV-Ray Options >> Options Reference >> Output Options >> File Output
Options


     Thorsten


____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Matt Giwer
Subject: Re: why is my image so pale with white background
Date: 24 Nov 1999 20:49:51
Message: <383C95CC.359E7FC5@giwersworld.org>
Erick wrote:

> Looking forward to advise

	Post process in Photoshop? Select the background with no
anti-aliasing and make it whatever you like. Or change the
saturation with white. 

-- 
http://www.giwersworld.org/artiii/

Oh my God! They've rendered Kenny!

How to profit from the end of civilization as know it available 
here soon.


Post a reply to this message

From: Johannes Hubert
Subject: Re: why is my image so pale with white background
Date: 25 Nov 1999 06:45:35
Message: <383d215f@news.povray.org>
I think your "whitewash" effect is because your "quarks" are in a
transparent sphere which reflects its surroundings. Well, if the
surroundings are white, it reflects white, giving the effect. My guess at
least.

Johannes.


Post a reply to this message

From: PoD
Subject: Re: why is my image so pale with white background
Date: 25 Nov 1999 19:25:17
Message: <383DD3C6.2B37966A@merlin.net.au>
Erick wrote:
> 
> Hi,
> I hope someone has an easy solution for my problem.
> 
> I am trying to make some images for a description of the standard model of
> particle physics, such as neutron, protons, quarks, electrons etc.
> 
> The images have to be combined and used in print. Apart from the previous
> mentioned CMYK problem (do those colors turn ugly, yagh) I have a problem
> with the background. I would like our illustrator to be able to cut out the
> 'solid' objects and place them in the desired color background. A good
> contrast between the edges and the background helps to make the result
> appear smooth.
> 
> OK, I know I can make all the background colors in POV-ray that I want, but
> it is difficult to obtain the desired color in RGB as I can't predict what
> it will be in CMYK, and the colors have to fit in the lay-out (colors of
> other images, photographs etc.).
> 
> I thought I would render all objects with a white background. When the
> background is blue or black, they look nice. However, when I choose a white
> background, they suddenly appear to be very pale. Like a color slide film
> that has received too much light. What is the best way to proceed? A problem
> is that some objects, such as the trajectory of an electron, should be
> transparent.
> 
> Should I instead of background use a plane (some shadows would be nice,
> maybe), should I change the lights or other settings or is there another
> possibility to obtain the desired result with a coloured background.
> 
> Looking forward to advise
> 
> Erick
> 

After rendering your example with various coloured backgrounds, the 
only problem I see is the emission type media which is trying to add
colour 
to the white background.

Any colour components which are greater than 1.0 when the pixels are 
written to disk are clamped to the range 0..1.  Therefore an emitting 
media can have no effect on a white background.  Perhaps you could add 
an absorbing component to your media or can you get away with a grey
background.

Cheers, PoD.


Post a reply to this message

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