POV-Ray : Newsgroups : povray.general : Problems with hollow/transparent object : Problems with hollow/transparent object Server Time
19 Nov 2024 22:30:47 EST (-0500)
  Problems with hollow/transparent object  
From: Martin Thoma
Date: 12 Dec 2001 09:40:14
Message: <3C176D0E.1A308B08@radiok2r.de>
Hello! I want a simple thing (I thought): A cylinder which goes from
left to right, and a sphere at the center which is penetrated by the
cylinder, which has some kind of colored liquid in it.

The effect should be, that the cylinder almost disappears where the
sphere is thickest. For some reason, I didn't get this to work (3.5
Beta8).

I tried the scene at the bottom of the message, but no matter which
fade-distance I choose, the cylinder is visible at the center like it is
at the left or right of the sphere, where the distance to the surface
should be smaller.

Any idea what I do wrong?

Martin


camera
{       location < 0, 0, -280 >
        direction < 0, 0, 2.836>
        up <0, 1, 0>
        right <800/600, 0, 0>
        look_at <0, 0, 0>
}

  background { color rgb < 0.0, 0.0, 0.0 >}

  light_source { <-500, 500, -1000> White }

        cylinder
        {       <-60, 0, 0>
                <60, 0, 0>
                2
                pigment { Red }
        }


        sphere
        {       <0, 0, 0>
                10
                scale<20/4, 15/4, 10/4>

                pigment{  red 0.9 green 0.9 blue 1.0 filter 0.6 }

                hollow on
                interior {   fade_distance 0.01
                                fade_color <0, 0, 1>
                         }
}


Post a reply to this message

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