POV-Ray : Newsgroups : povray.general : Problems with hollow/transparent object Server Time
7 Aug 2024 03:22:21 EDT (-0400)
  Problems with hollow/transparent object (Message 1 to 3 of 3)  
From: Martin Thoma
Subject: Problems with hollow/transparent object
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

From: Warp
Subject: Re: Problems with hollow/transparent object
Date: 12 Dec 2001 10:42:58
Message: <3c177b02@news.povray.org>
Martin Thoma <mar### [at] radiok2rde> wrote:
:                 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>
:                          }

  This may give more what you want:

                pigment{  red 0.9 green 0.9 blue 1.0 filter 0.9 }

                hollow on
                interior {   fade_distance 10 fade_power 2
                                fade_color <0, 0, 1>
                         }

  However, I'm not sure how the fade_color should work in this case.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Martin Thoma
Subject: Re: Problems with hollow/transparent object
Date: 13 Dec 2001 11:22:07
Message: <3C18D66C.81FAFAB@radiok2r.de>
Warp wrote:

> Martin Thoma <mar### [at] radiok2rde> wrote:
> :                 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>
> :                          }
>
>   This may give more what you want:
>
>                 pigment{  red 0.9 green 0.9 blue 1.0 filter 0.9 }
>
>                 hollow on
>                 interior {   fade_distance 10 fade_power 2
>                                 fade_color <0, 0, 1>
>                          }
>
>   However, I'm not sure how the fade_color should work in this case.

Thanx a lot, this helped a bit. I think I need to use media to do exactly what
I need.


Post a reply to this message

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