POV-Ray : Newsgroups : povray.unofficial.patches : MegaPov: Strange Radiosity effect Server Time
8 Jul 2024 16:12:53 EDT (-0400)
  MegaPov: Strange Radiosity effect (Message 1 to 3 of 3)  
From: Udo Baumgart
Subject: MegaPov: Strange Radiosity effect
Date: 10 Jul 2001 15:26:49
Message: <3B4B571A.9EB04A6C@debitel.net>
Hi,

currently i give Moray a try and experiment with Radiosity. I build
a simple scene with a sphere over a plane. The sphere first had the
material Water1 from the Library. Computing the scene with radiosity
in Megapov and without any ambient light results in the sphere shining
blue and illuminating the plane. I tried to modify the color of the
sphere but everytime i do this the result is a black image. It seems
that only rgbf <0,0,1,0.9> gives this result with the possibility to
very small changings. E.g. if i modify rgbf to <0,0,0.95,0.9> its too
much change. Can someone explain this to me? Why is it not possible
to light a scene by a sphere with color <1,1,1,0.9>? 

// File: rad2.inc
//  Material Include file.
//
//  This file was generated for POV-Ray V3.1 by
//  NOTE: Do *NOT* remove the comment lines containing '$MRY$'.
//        To make Moray not re-export the material, change
//        the '$MRY$' to '$MRX$'.
//


//
// ********  MATERIALS  *******
//







// Materials from previous exports [MRY]

// Materials exported in this run [MRY]



//  $MRY$: 'Ebene'


#declare Ebene = 
   material  // Ebene
   {   
      texture
      {      
         pigment
         {
            color rgb <1.0, 1.0, 1.0>
         }
      }
   }


//  $MRY$: 'Water1'


#declare Water1 = 
   material  // Water1
   {   
      texture
      {      
         pigment
         {
            color rgbf <0.0, 0.0, 1.0, 0.9>
         }
      }
   }


//  $MRY$: 'PDB_Tex_C'


#declare PDB_Tex_C = 
   material  // PDB_Tex_C
   {   
      texture
      {      
         pigment
         {
            color rgb <1.0, 1.0, 1.0>
         }      
         finish
         {
            ambient 0.15
            specular 0.309333
            roughness 0.006177
         }
      }
   }


// File: rad2.pov
//  Persistence of Vision Raytracer V3.1
//  World definition file.
//
//  Contains 0 lights, 3 materials and 3 primitives.
//
//  This file was generated for POV-Ray V3.1 by
//  Moray V3.3 For Windows Copyright (c) 1993-2000 Lutz + Kretzschmar
//

//  Date : 07/10/2001    (10.07.2001)
//

/*
  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> }
  }
}

/* // Scene Comment

This scene was created with Moray V3.3 For Windows.

*/ // End Scene Comment

global_settings {
  adc_bailout 0.003922
  ambient_light <0.0,0.0,0.0>
  assumed_gamma 1.9
  hf_gray_16 off
  irid_wavelength <0.247059,0.176471,0.137255>
  max_intersections 64
  max_trace_level 10
  number_of_waves 10
  radiosity {
    brightness       130.0
    count            100
    distance_maximum 10.0
    error_bound      0.1
    gray_threshold   0.1
    low_error_factor 0.01
    minimum_reuse    0.01
    nearest_count    3
    recursion_limit  7
  }
}

background { color <0.000,0.000,0.000> }

camera {  //  Camera Camera01
  location  <      1.037,      -8.000,       5.074>
  sky       <    0.00000,     0.00000,     1.00000> // Use right
handed-system 
  up        <        0.0,         0.0,         1.0> // Where Z is up
  right     <    1.38192,         0.0,         0.0> // Right Vector is
adjusted to compensate for spherical (Moray) vs. planar (POV-Ray) aspect
ratio
  angle         54.40000    // Vertical      40.800
  look_at   <      0.000,       0.000,       1.000>
}


//
// ********  MATERIALS  *******
//

#include "rad2.inc"


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



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

box { // Cube001
  <-1, -1, -1>, <1, 1, 1>
  material {
    PDB_Tex_C
  }
  scale <0.1, 0.1, 1.0>
  translate  <1.49505, -2.446446, 1.0>
}


sphere { // Sphere002
  <0,0,0>,1
  material {
    Water1
  }
  translate  <-1.143836, -2.9901, 2.542269>
}


plane { // Plane001
  z,0
  material {
    Ebene
  }
}


// File rad2.ini
All_Console=On
All_File=
Bounding=On
Bounding_Threshold=3
Buffer_Output=Off
Buffer_Size=0
Clock=0
Create_Ini=rerun.ini
Cyclic_Animation=Off
Debug_Console=On
Debug_File=
Display_Gamma=2.2
Draw_Vistas=Off
Fatal_Console=On
Fatal_Error_Command=
Fatal_Error_Return= I
Fatal_File=
Field_Render=Off
Output_Alpha=On
Output_File_Name=
Output_to_File=On
Output_File_Type=N
Final_Clock=1
Final_Frame=-1
Histogram_Name=
Histogram_Grid_Size=0.0
Histogram_Type=X ; NONE
Initial_Clock=0
Initial_Frame=1
Library_Path=
Light_Buffer=On
Odd_Field=Off
Palette=3
Post_Frame_Command=
Post_Frame_Return= I
Post_Scene_Command=
Post_Scene_Return= I
Preview_End_Size=1
Preview_Start_Size=1
Pre_Frame_Command=
Pre_Frame_Return= I
Pre_Scene_command=
Pre_Scene_Return= I
Quality=9
Remove_Bounds=On
Render_Console=On
Render_File=
Sampling_Method=1
Split_Unions=Off
Statistic_Console=On
Statistic_File=
Subset_End_Frame=-1
Subset_Start_Frame=-1
Test_Abort_Count=100
User_Abort_Command=
User_Abort_Return= I
Version=3.1
Video_Mode=0
Vista_Buffer=On
Warning_Console=On
Warning_File=
Bits_Per_Color=8

Radiosity=On
Width = 800
Height = 600
Antialias = On
Antialias_Threshold = 0.4
Jitter=On
Jitter_Amount = 0.0
Antialias_Depth = 2
Sampling_Method = 2
Pause_When_Done = Off
Display = On
Verbose = Off
Continue_Trace = Off
Test_Abort = On
Input_File_Name = rad2.pov
Output_File_Type = N
Preview_Start_Size=1
Preview_End_Size=1


Post a reply to this message

From: Christoph Hormann
Subject: Re: MegaPov: Strange Radiosity effect
Date: 10 Jul 2001 15:38:53
Message: <3B4B5A4B.91288E70@gmx.de>
Udo Baumgart wrote:
> 
> Hi,
> 
> currently i give Moray a try and experiment with Radiosity. I build
> a simple scene with a sphere over a plane. The sphere first had the
> material Water1 from the Library. Computing the scene with radiosity
> in Megapov and without any ambient light results in the sphere shining
> blue and illuminating the plane. 
> [...]

>   radiosity {
>     brightness       130.0
>     count            100
>     distance_maximum 10.0
>     error_bound      0.1
>     gray_threshold   0.1
>     low_error_factor 0.01
>     minimum_reuse    0.01
>     nearest_count    3
>     recursion_limit  7
>   }
> }

These settings do not make much sense, it's often best to start with the
default settings using an empty radiosity block.  

In detail:

- distance_maximum is no more required and will be ignored
- recursion_limit 7 is quite high, you probably need much less
- brightness 130.0 is ways too high, 1.0 is standard and everything above
2 is probably never doing any good.
- ambient_light 0 should only be used if there are no 'light emitting'
objects in the scene, otherwise use 'finish { ambient 0 }' for all objects
not emitting light.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Udo Baumgart
Subject: Re: MegaPov: Strange Radiosity effect
Date: 10 Jul 2001 15:45:31
Message: <3B4B5B7C.526E9F09@debitel.net>
But that does not explain the situation. I tried very much different
setting. If you remove the cube from my scene it shows better.
Try rendering it without the cube. It looks like the sphere illuminates
the plane quite nice. With the settings. Change the color of the sphere
e.g. to rgbf <0,1,0,.9> which should only change color and the result
is a black image. It seems that MegaPov handles <0,0,1,0.9> a very
special way. Bug? Feature? 

Ciao, Udo


Post a reply to this message

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