POV-Ray : Newsgroups : povray.unofficial.patches : Bug: photons/average Server Time
1 Nov 2024 21:19:51 EDT (-0400)
  Bug: photons/average (Message 1 to 2 of 2)  
From: Sigmund Kyrre Aas
Subject: Bug: photons/average
Date: 17 May 2000 10:33:14
Message: <3922ADB0.22473A1F@stud.ntnu.no>
I'm glad to see the texture_map/photons bug fixed, but the average "pattern"
seems to have problems still. It doesn't seem to be related to translation.

Here's a scene I made while tracking the texture_map bug. As before,
changing the texture_map to texture{pigment_map} make caustics show up.

sig
--
#version unofficial MegaPov 0.5;
 
$Lpos=<3,5,-5>*6;
light_source { 0, 2  translate Lpos }

camera {
   location  <0, 10 ,-10>
   look_at 0
   rotate 90*y
}
global_settings{
    max_trace_level 12
    photons{
        count 80000
        autostop 0
    }
}
$Ruby_mat=material {
    texture {
        pigment {rgb x filter 0.95}
        finish {specular .4 roughness .01}
    }
    interior { ior 1.06}
}
$C1=<120,1,165>/255;

$Plan= plane{y,.3 clipped_by {box {-1.4,1.4 }} }

#macro Box(Pattern,Pos)
    object {Plan 
         texture {
            #switch (Pattern)
                #case (1) pigment {color <120,1,165>/255} #break
                #case (2) hexagon  #break
                #case (3) brick #break
                #case (4) checker #break
                #case (5) average #break
                #case (6) wood #break
                #case (7) gradient x #break
                #case (8) bozo #break 
                #case (9) agate #break
                #case (10) onion #break
                #case (11) granite #break
                #case (12) marble #break
                #case (13) cells #break
                #case (14) cylindrical #break
                #case (15) spherical #break
                #case (16) waves #break
            #end
            #if (Pattern <=4 & Pattern !=1) 
                  texture {pigment {color C1} }
                  texture {pigment {color C1*1.5} }
                  #if (Pattern=2) texture {pigment {color C1*.4} } #end
            #end
            #if (Pattern >4)
               texture_map {
                  [.5 pigment {color C1} ]
                  [.5 pigment {color C1*1.5} ]
               }
           #end
           scale .5 
        } 
        translate Pos
        
    }
#end
$k=0;$l=0;$counter=0; 
#while (k<=1)
    #while (l<=1)
        box {-.5,.5
            material {Ruby_mat}
            photons { target refraction on}
            $Pos=<-5+k*10, 0, -5+10*l>;
            translate Pos+(Lpos-Pos)*.04 +y*.3
        }
        $counter=counter+1;
        Box(counter,Pos) 
        $l=l+1/3;
    #end
    $l=0; 
    $k=k+1/3;
#end
plane {y,.01 pigment {rgb .2} finish{diffuse .7 specular .3 roughness .1
brilliance 1.2}}
plane {y, 100 pigment {rgb <.2,.2,.7>}}


Post a reply to this message

From: Nathan Kopp
Subject: Re: photons/average
Date: 17 May 2000 20:24:25
Message: <39233839@news.povray.org>
Sigmund Kyrre Aas <as### [at] studntnuno> wrote...
> I'm glad to see the texture_map/photons bug fixed, but the average
"pattern"
> seems to have problems still. It doesn't seem to be related to
translation.
>
> Here's a scene I made while tracking the texture_map bug. As before,
> changing the texture_map to texture{pigment_map} make caustics show up.
>

Sig,

I have confirmed this bug and have solved it.  There was an errant statement
that assigned the color black to all photons that hit a surface with an
average texture.  This has been fixed.

I hope to release a bug-fixed MegaPov 0.5a in a few weeks, so you shouldn't
have to wait too long.  Thanks for your help.

-Nathan


Post a reply to this message

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