POV-Ray : Newsgroups : povray.text.scene-files : Box with no lights source Server Time
26 Dec 2024 12:53:24 EST (-0500)
  Box with no lights source (Message 1 to 4 of 4)  
From: Nathan Kopp
Subject: Box with no lights source
Date: 23 Jan 1999 12:34:11
Message: <36AA08A8.F041BCD3@Kopp.com>
Here's the source for a box with no lights.  Originally made in
Moray, but then modified in POV.  If you uncomment the light source
and set the material for the ceiling back to DullWhite, you'll get a
more traditionally lit radiosity scene.

-Nathan Kopp

------------------------------------------------------------------
//  Persistance of Vision Raytracer V3.1
//  World definition file.
//
//  Contains 1 lights, 4 textures and 8 primitives.
//
//  This file was generated for POV-Ray V3.1 by
//  Moray V3.1 For Windows (c) 1991-1998 Lutz + Kretzschmar
//

//  Date : 01/21/1999    (21.01.1999)
//

/*
  The text between these two comments is in MorayPOV.INC and is
  automatically included in all POV files that Moray exports.
*/

default {
  texture {
    pigment { rgb <1,0,0> }
    finish { diffuse 0.4 ambient 0.3 specular 0.6 roughness 0.001 }
  }
}

/* // Scene Comment

This scene was created with Moray For Windows.

*/ // End Scene Comment

global_settings {
  adc_bailout 0.003922
  assumed_gamma 1.9
  hf_gray_16 off
  irid_wavelength <0.247059,0.176471,0.137255>
  max_intersections 64
  max_trace_level 4
  number_of_waves 10
  ambient_light 1.5
  
  radiosity {
    brightness       3.3
    count            100
    distance_maximum 0
    error_bound      0.33
    gray_threshold   0.2
    low_error_factor 0.8
    minimum_reuse    0.015
    nearest_count    6
    recursion_limit  3
  }
}

background { color <0.000,0.000,0.000> }

camera {  //  Camera StdCam
  location  <      0.000,     -11.000,       6.000>
  direction <        0.0,         0.0,      0.9786> // Aperture is 0.94 degrees
  sky       <    0.00000,     0.00000,     1.00000> // Use right handed-system 
  up        <        0.0,         0.0,         1.0> // Where Z is up
  right     <    1.33333,         0.0,         0.0> // Aspect ratio
  look_at   <      0.000,       0.000,       5.000>
}

//
// *******  L I G H T S *******
//

/*
light_source {   // Light1
  <0.000, 0.000, 9.000>
  color rgb <1.000, 1.000, 1.000>
  fade_distance  3.0
  fade_power 2.0
}
*/

//
// ********  TEXTURES  *******
//

#declare DullWhite = 
   material  // DullWhite
   {   
      texture
      {      
         pigment
         {
            color rgb <1.0, 1.0, 1.0>
         }      
         finish
         {
            ambient 0.1
            diffuse .9
         }
      }
   }


//  $MRY$: 'DullRed'


#declare DullRed = 
   material  // DullRed
   {   
      texture
      {      
         pigment
         {
            color rgb <1.0, 0.125, 0.229167>
         }      
         finish
         {
            ambient 0.1
            diffuse .9
         }
      }
   }


//  $MRY$: 'DullGreen'


#declare DullGreen = 
   material  // DullGreen
   {   
      texture
      {      
         pigment
         {
            color rgb <0.166667, 0.906233, 0.1354>
         }      
         finish
         {
            ambient 0.1
            diffuse .9
         }
      }
   }


//  $MRY$: 'ShinyWhite'


#declare ShinyWhite = 
   material  // ShinyWhite
   {   
      texture
      {      
         pigment
         {
            color rgb <1.0, 1.0, 1.0>
         }      
         finish
         {
            ambient 0.1
            phong 0.1223
            phong_size 72.846667
            reflection 0.266167
         }
      }
   }


//
// ********  REFERENCED OBJECTS  *******
//



//
// ********  OBJECTS  *******
//

difference{
  box { <-1, -1, -1>, <1, 1, 1>}
  box { <.8,-.5,-.5>,<1.1,.5,.5>}
  box { <.7,-.3,-.3>,<1.1,.3,.3>}
  box { <.6,-.2,-.2>,<1.1,.2,.2>}
  material {
    DullWhite
  }
  scale 1.5
  rotate -45.0*z
  translate  <-2.0, 0.0, 1.5>
}


sphere { // Sphere001
  <0,0,0>,1
  material {
    ShinyWhite
    //DullWhite
  }
  scale 2.0
  translate  <2.0, 1.0, 2.0>
}


box { // Floor
  <-1, -1, -1>, <1, 1, 1>
  material {
    DullWhite
  }
  scale <5.0, 5.0, 0.1>
}




box { // LtWall
  <-1, -1, -1>, <1, 1, 1>
  material {
    DullGreen
  }
  scale <0.1, 5.0, 5.0>
  translate  <-5.0, 0.0, 5.0>
}


box { // RtWall
  <-1, -1, -1>, <1, 1, 1>
  material {
    DullRed
  }
  scale <0.1, 5.0, 5.0>
  translate  <5.0, 0.0, 5.0>
}


box { // BackWall
  <-1, -1, -1>, <1, 1, 1>
  material {
    DullWhite
  }
  scale <5.0, 0.1, 5.0>
  translate  <0.0, 5.0, 5.0>
}


box { // Ceiling
  <-1, -1, -1>, <1, 1, 1>
  material {
    //DullWhite
    texture{pigment{rgb<1,1,1>} finish{ambient 10}}
  }
  scale <5.0, 5.0, 0.1>
  translate  10.0*z
}


Post a reply to this message

From: Marc van den Dikkenberg
Subject: Re: Box with no lights source
Date: 23 Jan 1999 14:17:09
Message: <36aa1fec.862608@news.povray.org>
On Sat, 23 Jan 1999 12:36:40 -0500, Nathan Kopp <Nat### [at] Koppcom> wrote:

>Here's the source for a box with no lights.  Originally made in
>Moray, but then modified in POV.  If you uncomment the light source
>and set the material for the ceiling back to DullWhite, you'll get a
>more traditionally lit radiosity scene.

When I trace this scene in POV 3.1, I get a near black screen with the
white ceiling (and reflection of the ceiling on the ball) -- not even close
to what you posted in the binaries-group...
-- 
Marc van den Dikkenberg
--
The PowerBasic Archives -- http://www.xs4all.nl/~excel/pb.html
All Basic Code Archives -- http://come.to/abcpackets


Post a reply to this message

From: Nathan Kopp
Subject: Re: Box with no lights source
Date: 23 Jan 1999 15:28:44
Message: <36AA3190.3EA4FD6C@Kopp.com>
Make sure to render it with radiosity turned on. (+QR for command-line option).
If you're using POV for Windows, go to "Render"-->"Edit Settings/Render" to
enter command line options.

Also, if you cancel a radiosity rendering part-way through, you'll have to
restart POV to make it work again (at least with the windows version).

-Nathan

Marc van den Dikkenberg wrote:
> 
> When I trace this scene in POV 3.1, I get a near black screen with the
> white ceiling (and reflection of the ceiling on the ball) -- not even close
> to what you posted in the binaries-group...
> --
> Marc van den Dikkenberg
> --
> The PowerBasic Archives -- http://www.xs4all.nl/~excel/pb.html
> All Basic Code Archives -- http://come.to/abcpackets


Post a reply to this message

From: Marc van den Dikkenberg
Subject: Re: Box with no lights source
Date: 24 Jan 1999 01:17:52
Message: <36aabb4d.1006501@news.povray.org>
On Sat, 23 Jan 1999 15:31:12 -0500, Nathan Kopp <Nat### [at] Koppcom> wrote:

>Make sure to render it with radiosity turned on. (+QR for command-line option).
>If you're using POV for Windows, go to "Render"-->"Edit Settings/Render" to
>enter command line options.

Ah, yes, that seems to do the trick! Thanks!

(I assumed that the source itself would trigger the radiosity)

-- 
Marc van den Dikkenberg
--
The PowerBasic Archives -- http://www.xs4all.nl/~excel/pb.html
All Basic Code Archives -- http://come.to/abcpackets


Post a reply to this message

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