POV-Ray : Newsgroups : povray.general : Depth cueing with white background Server Time
19 May 2024 19:55:52 EDT (-0400)
  Depth cueing with white background (Message 1 to 5 of 5)  
From: Vojtech Spiwok
Subject: Depth cueing with white background
Date: 23 Sep 2004 11:25:00
Message: <web.4152ea299f726457ddbe33fb0@news.povray.org>
Dear PoVRay gurus
I would like to render a picture of object (protein)
with a depth cueing. Simple z-oriented ground fog does
not work because if the fog distance is too small the
picture is almost white and when it is large there is
almost no depth-cueing efect. I tried hollow box with
interior fading and this works well with black
background:
box {
  <-30, -30, -30>
  < 30,  30,  30>
  texture {pigment {color rgbft <0,0,0,0,1>}}
  hollow interior {fade_power 2 fade_distance 7 fade_color Black }
}
The size of the box is set to approx. fit the object.
I would like to do the same with white background and
white fog but changing the background, fade_color and
pigment color to white causes that there is no depth
cueing. Is it possible to use this with white colour?
Is there any other solution?
Thanks
Vojtech Spiwok
Dept. of Biochem. and Microbiol.
ICT in Prague
Prague
Czech Republic


Post a reply to this message

From: Mike Williams
Subject: Re: Depth cueing with white background
Date: 23 Sep 2004 14:01:01
Message: <BWfsrBAS9wUBFw$+@econym.demon.co.uk>
Wasn't it Vojtech Spiwok who wrote:
>Dear PoVRay gurus
>I would like to render a picture of object (protein)
>with a depth cueing. Simple z-oriented ground fog does
>not work because if the fog distance is too small the
>picture is almost white and when it is large there is
>almost no depth-cueing efect. I tried hollow box with
>interior fading and this works well with black
>background:
>box {
>  <-30, -30, -30>
>  < 30,  30,  30>
>  texture {pigment {color rgbft <0,0,0,0,1>}}
>  hollow interior {fade_power 2 fade_distance 7 fade_color Black }
>}
>The size of the box is set to approx. fit the object.
>I would like to do the same with white background and
>white fog but changing the background, fade_color and
>pigment color to white causes that there is no depth
>cueing. Is it possible to use this with white colour?
>Is there any other solution?

Depth cueing is back as a post-process effect in MegaPOV 1.1 (it wasn't
in MegaPOV 1.0) so now you don't have to go back to MegaPOV 0.8 which
used the old POV 3.1 syntax.

With 1.1 you can take your POV 3.6 scene and add the post-processing
code from the "depth.pov" example scene.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: ABX
Subject: Re: Depth cueing with white background
Date: 23 Sep 2004 14:23:59
Message: <r056l0pvpqflq204mdg7h3sfob4u0kblb9@4ax.com>
On Thu, 23 Sep 2004 19:00:50 +0100, Mike Williams <nos### [at] econymdemoncouk>
wrote:
> Depth cueing is back as a post-process effect in MegaPOV 1.1

http://megapov.inetart.net/demo/depth.png
http://megapov.inetart.net/demo/pp_depth.png

ABX


Post a reply to this message

From: Warp
Subject: Re: Depth cueing with white background
Date: 24 Sep 2004 05:31:16
Message: <4153e964@news.povray.org>
Vojtech Spiwok <spi### [at] vschtcz> wrote:
> I would like to render a picture of object (protein)
> with a depth cueing. Simple z-oriented ground fog does
> not work because if the fog distance is too small the
> picture is almost white and when it is large there is
> almost no depth-cueing efect.

  How about this?

camera { location -z*8 look_at 0 angle 35 }
light_source { <100,150,-400>, 1 }
fog
{ rgb <1,1,1>
  fog_type 2
  distance .1
  fog_offset -.5
  fog_alt .2
  up -z
}

union
{ sphere { <-1,-1,-1>, .2 }
  sphere { <-1,-1, 1>, .2 }
  sphere { <-1, 1,-1>, .2 }
  sphere { <-1, 1, 1>, .2 }
  sphere { < 1,-1,-1>, .2 }
  sphere { < 1,-1, 1>, .2 }
  sphere { < 1, 1,-1>, .2 }
  sphere { < 1, 1, 1>, .2 }
  cylinder { <-1,-1,-1>,<-1,-1, 1>, .1 }
  cylinder { < 1,-1,-1>,< 1,-1, 1>, .1 }
  cylinder { < 1, 1,-1>,< 1, 1, 1>, .1 }
  cylinder { <-1, 1,-1>,<-1, 1, 1>, .1 }
  cylinder { <-1,-1,-1>,<-1, 1,-1>, .1 }
  cylinder { < 1,-1, 1>,< 1, 1, 1>, .1 }
  cylinder { < 1,-1,-1>,< 1, 1,-1>, .1 }
  cylinder { <-1,-1, 1>,<-1, 1, 1>, .1 }
  cylinder { <-1,-1,-1>,< 1,-1,-1>, .1 }
  cylinder { <-1, 1, 1>,< 1, 1, 1>, .1 }
  cylinder { <-1,-1, 1>,< 1,-1, 1>, .1 }
  cylinder { <-1, 1,-1>,< 1, 1,-1>, .1 }
  pigment { rgb x } finish { specular .5 }
  rotate <-60, -30, 0>
}


Post a reply to this message

From: Vojtech Spiwok
Subject: Re: Depth cueing with white background
Date: 24 Sep 2004 08:05:00
Message: <web.41540ca9175de048ddbe33fb0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> Vojtech Spiwok <spi### [at] vschtcz> wrote:
> > I would like to render a picture of object (protein)
> > with a depth cueing. Simple z-oriented ground fog does
> > not work because if the fog distance is too small the
> > picture is almost white and when it is large there is
> > almost no depth-cueing efect.
>
>   How about this?
>
> camera { location -z*8 look_at 0 angle 35 }
> light_source { <100,150,-400>, 1 }
> fog
> { rgb <1,1,1>
>   fog_type 2
>   distance .1
>   fog_offset -.5
>   fog_alt .2
>   up -z
> }
>
> union
> { sphere { <-1,-1,-1>, .2 }
>   sphere { <-1,-1, 1>, .2 }
>   sphere { <-1, 1,-1>, .2 }
>   sphere { <-1, 1, 1>, .2 }
>   sphere { < 1,-1,-1>, .2 }
>   sphere { < 1,-1, 1>, .2 }
>   sphere { < 1, 1,-1>, .2 }
>   sphere { < 1, 1, 1>, .2 }
>   cylinder { <-1,-1,-1>,<-1,-1, 1>, .1 }
>   cylinder { < 1,-1,-1>,< 1,-1, 1>, .1 }
>   cylinder { < 1, 1,-1>,< 1, 1, 1>, .1 }
>   cylinder { <-1, 1,-1>,<-1, 1, 1>, .1 }
>   cylinder { <-1,-1,-1>,<-1, 1,-1>, .1 }
>   cylinder { < 1,-1, 1>,< 1, 1, 1>, .1 }
>   cylinder { < 1,-1,-1>,< 1, 1,-1>, .1 }
>   cylinder { <-1,-1, 1>,<-1, 1, 1>, .1 }
>   cylinder { <-1,-1,-1>,< 1,-1,-1>, .1 }
>   cylinder { <-1, 1, 1>,< 1, 1, 1>, .1 }
>   cylinder { <-1,-1, 1>,< 1,-1, 1>, .1 }
>   cylinder { <-1, 1,-1>,< 1, 1,-1>, .1 }
>   pigment { rgb x } finish { specular .5 }
>   rotate <-60, -30, 0>
> }

Simple ground fog works well !!!!!!!
Thank you all very much for your help

Vojtech Spiwok


Post a reply to this message

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