POV-Ray : Newsgroups : povray.binaries.images : Transparency(Got me) : Transparency(Got me) Server Time
4 Oct 2024 21:13:03 EDT (-0400)
  Transparency(Got me)  
From: Spider
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


 

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