POV-Ray : Newsgroups : povray.binaries.images : Problem shaping a CSG object (from p.general) Server Time
31 Jul 2024 18:24:40 EDT (-0400)
  Problem shaping a CSG object (from p.general) (Message 1 to 1 of 1)  
From: Le Forgeron
Subject: Problem shaping a CSG object (from p.general)
Date: 29 Jul 2009 12:47:48
Message: <4a707d34@news.povray.org>
From p.general discussion.



#include "colors.inc"
#default{
finish { ambient 0.8 diffuse 0.4 }
}
global_settings { assumed_gamma 1.0 }
// An area light (creates soft shadows)
// WARNING: This special light can significantly slow down rendering times!
light_source {
  0*x                 // light's position (translated below)
  color rgb 1.0       // light's color

  area_light
  <8, 0, 0> <0, 0, 8> // lights spread out across this distance (x * z)
  4, 4                // total number of lights in grid (4x*4z = 16 lights)
  adaptive 0          // 0,1,2,3...
  jitter              // adds random softening of light
  circular            // make the shape of the light circular
  orient              // orient light

  translate <0, 80, 40>   // <x y z> position of light
}


#declare diam=2;
camera {
  //orthographic
  location <20*diam,0,0>    // position & direction of view
  right y            // horizontal size of view
  up z               // vertical size of view
  sky z
  look_at  <0,0,1>
  angle 5
}

intersection {
box{ <-1,-1,0>,<1,1,2> }
quadric { <1,1,0>,<0,0,-1>,<0,0,1>,-1}
texture { pigment { color White} }
rotate 30*y
}


Post a reply to this message


Attachments:
Download 'con.png' (7 KB)

Preview of image 'con.png'
con.png


 

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