POV-Ray : Newsgroups : povray.binaries.images : Transparency(Got me) Server Time
4 Oct 2024 19:19:22 EDT (-0400)
  Transparency(Got me) (Message 1 to 2 of 2)  
From: Spider
Subject: Transparency(Got me)
Date: 16 Feb 1999 17:10:11
Message: <36C9EB48.31C7A5A3@bahnhof.se>
Hmm, i'm now really caught in this seemingly simple thing of
transparency.
Here is another scene.
TopLeft is transmitting, TopRight is Filtering
Lowleft is more transmitting than filtering (2/3 to 1/3)
Lowright is more filtering than transmitting (2/3 to 1/3)

it is an orthographic camera( I wanted to learn it, and I did :-)


I used a blueish colour as base this time.
----------
#version 3.1;
#declare base = colour rgbft <.7, .75, 1,0,0>;
#declare M_Transmit =
color_map { 
  [00/10 base filter 0 transmit 1]
  [01/10 base filter 0 transmit 1]
  [08/10 base filter 0 transmit 0]
  [10/10 base filter 0 transmit 0]
}
#declare M_Filter =
color_map{
  [00/10 base filter 1 transmit 0]
  [01/10 base filter 1 transmit 0]
  [08/10 base filter 0 transmit 0]
  [10/10 base filter 0 transmit 0]
}

#declare M_ToF = 
color_map{
  [00/10 base filter 1/3 transmit 2/3]
  [01/10 base filter 1/3 transmit 2/3]
  [08/10 base filter 0/3 transmit 0/3]
  [10/10 base filter 0/3 transmit 0/3]
}

#declare M_FoT =
color_map { 
  [00/10 base filter 2/3 transmit 1/3]
  [01/10 base filter 2/3 transmit 1/3]
  [08/10 base filter 0/3 transmit 0/3]
  [10/10 base filter 0/3 transmit 0/3]
}

#declare M_TopLeft = M_Transmit
#declare M_TopRight = M_Filter
#declare M_LowLeft = M_ToF
#declare M_LowRight = M_FoT

#declare MoveX = 0.8*x;
#declare MoveY = 0.1*y;

global_settings { 
  assumed_gamma 1.0
  max_trace_level 20
}
camera {
  orthographic
  location      <0.0, 0.0, -1000.0>
  direction     1.5*z
  right         x*4
  up            4*y
  look_at       <0.0, 0.0,  -2.0>
}

light_source { <-2, -1.5, -50>,color rgb 1 }
plane { -z, -10 pigment {color rgb 1} finish{ambient 0 diffuse 1}}

#declare cyl = cylinder { <0,1,0>,<0,0,0>, 0.6 }
object { 
  cyl
  pigment {
    gradient y
    color_map { M_TopLeft }
  }
  translate -MoveX
  translate +MoveY
}

object { 
  cyl
  pigment {
    gradient y
    color_map { M_LowLeft }
  }
  translate -MoveX
  translate -MoveY-y
}


object { 
  cyl
  pigment {
    gradient y
    color_map{ M_LowRight }
  }
  translate +MoveX
  translate -MoveY-y
}

object { 
  cyl
  pigment {
    gradient y
    color_map{ M_TopRight }
  }
  translate +MoveX*x
  translate +MoveY*y
}

-- 
#declare life = rand(seed(42))*sqrt(-1);


Post a reply to this message


Attachments:
Download 'transp2.jpg' (10 KB)

Preview of image 'transp2.jpg'
transp2.jpg


 

From: Michael Andrews
Subject: Re: Transparency(Got me)
Date: 17 Feb 1999 05:04:39
Message: <36CA939F.9A663410@remove-this.reading.ac.uk>
Just my ha'penthworth on the transparency/filter dichotomy.

    I've always thought of 'filter' as being the effect caused by transparent
plastic, whereas 'transparency' would be caused by putting many very small
holes in an opaque plastic.

    I find this helps me visualize where I need to use each.

    Bye for now,
        Mike Andrews.

Spider wrote:

> Hmm, i'm now really caught in this seemingly simple thing of
> transparency.
> Here is another scene.
> TopLeft is transmitting, TopRight is Filtering
> Lowleft is more transmitting than filtering (2/3 to 1/3)
> Lowright is more filtering than transmitting (2/3 to 1/3)
>
> it is an orthographic camera( I wanted to learn it, and I did :-)
>
> I used a blueish colour as base this time.
> ----------

[code snipped]

> #declare life = rand(seed(42))*sqrt(-1);
>
>   ------------------------------------------------------------------------
>  [Image]


Post a reply to this message

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