POV-Ray : Newsgroups : povray.binaries.images : Height field misbehaving Server Time
2 Oct 2024 14:14:26 EDT (-0400)
  Height field misbehaving (Message 1 to 4 of 4)  
From: Sigmund Kyrre Aas
Subject: Height field misbehaving
Date: 26 Apr 2000 13:02:42
Message: <390720C4.BB23124@stud.ntnu.no>
The sphere and the height field has the same texture. Why do they look
different? There are two lights above and behind the objects; you can see the
shadows on the front side of the hf.

Here's the texture:
    pigment { colour rgb <.4,.2,0>}
    finish {specular .1 roughness .2 ambient 0}        

TIA
sig.


Post a reply to this message


Attachments:
Download 'svada.jpg' (16 KB)

Preview of image 'svada.jpg'
svada.jpg


 

From: Rick [Kitty5]
Subject: Re: Height field misbehaving
Date: 27 Apr 2000 02:40:42
Message: <3907e0ea@news.povray.org>
really naughty, what happens if you just change the camera angle?

Rick


Post a reply to this message

From: Sigmund Kyrre Aas
Subject: Re: Height field misbehaving
Date: 27 Apr 2000 04:15:13
Message: <3907F710.67CC8ABF@stud.ntnu.no>
"Rick [Kitty5]" wrote:
> 
> really naughty, what happens if you just change the camera angle?

It's the same. I have extracted the relevant lines from the code:

#version unofficial MegaPov 0.4;
#declare Lys= light_source { 0, .85 
    looks_like { sphere { 0, 1 pigment { rgb 1 } finish { ambient 1 } } }
}
object { Lys translate <2,4,3>*10 }
object { Lys translate <-1,4,-2>*10 }
camera {
   #local L=90;
   location  <2, 1 ,-15>
   look_at   0
   angle degrees(atan2(35,L))
}

#default {finish {ambient 0 specular .1 roughness .05}}
$Jord_tex=
texture {
    pigment { color rgb <.4,.2,0>}
    finish {specular .1 roughness .2}        
}

#declare HF=
height_field {
    pattern 250,250 {
        hf_gray_16
        average
        pigment_map {
            $i=0;
            #while (i<1)
                $P=seed(i*200+220); 
                $R=seed(i*20+20);
                [1 cylindrical 
                    color_map { [0 rgb 0] [1 rgb 1] }
                    scale .5+.5*max(rand(P),rand(R))
                    translate <rand(P),0,rand(R)> 
                    //turbulence .6 lambda 2.9 octaves 6 omega .4
                ]
                $i=i+.1;
            #end
            [.4   spiral1 3 color_map { [0 rgb 0] [1 rgb 1] } scale .5  turbulence .5
lambda 2.2 octaves 9]
            [.1  marble color_map { [0 rgb 0] [1 rgb 1] } scale .01 turbulence .5]
        }
        translate 1
        scale .3
    }
    smooth
}

object {HF
    texture {Jord_tex}
    clipped_by {plane {-y,-.05}}
    scale <5,-2,5>
    translate 2*.05*y -<1,.5,1> -x*2.2
}

sphere {0,.15 
    pigment {rgb x} 
    translate <-.5,-.5,.3>
}

sphere {0,.15 
    pigment {rgb x} 
    translate <1,-.5,.3>
}

sphere {0,1 
    texture {Jord_tex}
    clipped_by { plane {y,-.45}}
    translate x
}


Post a reply to this message

From: Sigmund Kyrre Aas
Subject: Re: Height field misbehaving
Date: 28 Apr 2000 05:47:43
Message: <39095E39.D4B663FF@stud.ntnu.no>
Just discovered that removing the smooth keyword corrects the problem. The same
behaviour can be observed in version 3.1g (with a tga-file instead of pattern).

Can someone confirm whether this is a bug?

sig.


Post a reply to this message

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