POV-Ray : Newsgroups : povray.binaries.images : Help with light problem? : Help with light problem? Server Time
1 Oct 2024 07:23:16 EDT (-0400)
  Help with light problem?  
From: CreeD
Date: 4 Sep 2000 12:49:01
Message: <01c01690$aa7b8fa0$ae1ba1d0@mk>
See attached pic.  Notice the superellipsoid doesn't show up?
How can I fix this without changing the lighting of the scene dramatically?
Code follows.

//
#version unofficial MegaPOV 0.5;

global_settings { assumed_gamma 2.2 radiosity {}
photons{count 40000    autostop 0    jitter .4}
 }
 

#include "colors.inc"
#include "textures.inc"
#include "woods.inc"
#include "metals.inc"
#include "stones.inc"
#include "glass.inc"

#declare A=<0,60,0>;
#declare B=<-50,50,-30>;
#declare Random=seed(tick_count)

camera { 
   location B
   look_at 
   <0,0,0>}
   
light_source {
<-50,51,-30> 
//notice the light is to the far left, but shows up the most on the right
side of the floor. 
color White*1.5
//area_light <-20,0,-20>,<20,0,20>,5,5
//photons { refraction on reflection on}
} 

#declare Row = union {

#declare Count = 0;
#while (Count < 10)

height_field{
 tga "HFTest" 
 translate -.5
 scale <10,.5,80>
 texture{

 //image_map {tga "HFTest"}
 T_Wood10 //turbulence .1
 translate Count*rand(Random)*4*<1,1,1>
 rotate z*rand(Random)*20
 normal {
 bump_map {tga "HFTest"}}
 finish{phong .3 phong_size 20}}
 translate -2.25*y translate z*80.3*Count
} 

#declare Count = Count + 1;
#end
}//end row union

#declare Planks1 = union {
#declare Count = 0;
#while (Count < 5)   
object {Row translate <20.1*Count,0,40>}
object {Row translate <10,0,0> translate <20.1*Count,0,0>} 
#declare Count = Count + 1;
#end
}//end Planks1 union

#declare Wall = 
height_field{
 tga "HFTest2" 
 translate -.5
 scale <500,.3,500>
 texture{
 pigment {White}
 }
 }

// and here's the problem piece .... why doesn't it show up?
superellipsoid {
<0,0> scale <1,3,100> translate <40,1,0>
texture {T_Wood1}
finish {phong 1 phong_size 300}
}

object {Planks1 translate <-50,0,-50>}
object {Wall rotate <0,0,90> translate <50,-30,50>}


Post a reply to this message


Attachments:
Download 'HFTest2.bmp.dat' (226 KB)

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