POV-Ray : Newsgroups : povray.newusers : Why is this happening when I change the background to white? : Re: Why is this happening when I change the background to white? Server Time
4 Jul 2024 15:01:33 EDT (-0400)
  Re: Why is this happening when I change the background to white?  
From: Brad
Date: 1 Oct 2010 16:50:00
Message: <web.4ca6493eb4921ef6c40be0560@news.povray.org>
Thanks so much for the help everyone! The problem indeed is fixed if I change
the (255, 255, 255) to (1, 1, 1). I'm very new with all this stuff and a quick
google search for 'white rgb' somehow led me to the 255 values.

While I'm here, what resources would you guys recommend for someone who wants to
learn more about POVRAY? I'd mostly like to have the ability to generate
beautiful graphics for scientific papers and presentations. I saw a couple
tutorials online that I'm going to try to work through today, but wanted to know
if there was anything better to look at. Really amazed at the kind of images
POVRAY can produce!

Thanks again,

Brad


Alain <aze### [at] qwertyorg> wrote:

> > On 9/30/2010 7:16 PM, Brad wrote:
> >> Notice that a lot of the blue stuff in the corners and edges of the
> >> box is now
> >> missing.
> >>
> >> The header (and so probably the relevant info) of my .pov file is below
> > <snip>
> >> The blue surface is defined by the color_isosurface flags at the
> >> bottom, and
> >> setting those from a rgbf to a purely rgb setting fixes the missing
> >> surface that
> >> I have in that picture. However, I want my iamage to be
> >> semi-transparent. Is
> >> there anything I can do?
> >
> > The cube in your black background piece also has a few artifacts showing
> > up along the edges as well. I am guessing the problem is not in how you
> > are coloring the boxes, but how you are bounding the objects involved.
> >
> > This is just a guess, but the artifacts do look like the coincident
> > surface problem. If the transparent box is exactly the same size or in
> > the same exact place as the surface you use to create the edges of the
> > blue interior surface, the rays can't calculate which they hit first,
> > and artifacts appear. More of your code would be useful to see if that
> > is the issue, but you can try just scaling the visible box by some small
> > amount to see if that corrects some or all of the problem.
>
> The real problem is the background:
> backgroung{rgb 255}
>
> Changing it to:
> backgroung{ rgb 1}
> corrects the problem nicely.
>
>
> Alain


Post a reply to this message

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