POV-Ray : Newsgroups : povray.advanced-users : Multiple Transparent Boxes : Re: Multiple Transparent Boxes Server Time
28 Jul 2024 14:31:23 EDT (-0400)
  Re: Multiple Transparent Boxes  
From: Redjack
Date: 10 Jan 2005 16:30:01
Message: <web.41e2f35a8484d91ef6e3d5770@news.povray.org>
"Redjack" <nomail@nomail> wrote:
> Now that should settle it :) Thanks a lot ! I'll try this evening and report
> my success (or not ;))

It doesn't work! I don't know what to do now ... I'll post my complete
source code now, so that if you are able to spare the time, you could look
for errors in my architecture:

#include "colors.inc"
#include "woods.inc"
#include "stones.inc"

global_settings{max_trace_level 256 adc_bailout 0 photons{count 50000
autostop 0}}

camera{location <0,0,-20> look_at <0,0,0>}
light_source{<0,1,-10> color White fade_power 0}

//Yellow Cone : the Mirage-Object
cone{<0,0.5,0>,2,<0,3,0>,0 texture{pigment{Yellow}} photons{target
reflection on} no_shadow}

merge{
box{<-40,-3.5,3>,<40,-3.01,-20> texture {T_Wood19} photons{target reflection
on}}
box{<-20,-3.01,3>,<20,20,3.5> texture{T_Grnt3} photons{target reflection
on}}
}

//Generates the Refraction-Slices
#declare Counter=0;
#declare Steps=25;
#declare n0=1;
#declare n1=0.94;
#declare deltan=(n0-n1)/Steps;
#declare h=3;
#declare deltah=h/Steps;
#declare y0=-3+h;

union{
#while(Counter<Steps)
box{<-40,y0-(Counter+1)*deltah,2.99>,<40,y0-Counter*deltah-0.01,-20>
texture{pigment{transmit 1}}
interior{ior n0-deltan*Counter} photons{target collect off refraction on}}
#declare Counter=Counter+1;
#end
}

As you can see if you render it, the refracted mirage images are already ...
recognizable :|, but the floor at the bottom is so dark and I don't know
why !


Post a reply to this message

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