POV-Ray : Newsgroups : povray.general : bumpmapping problem : Re: bumpmapping problem Server Time
4 Nov 2024 23:20:08 EST (-0500)
  Re: bumpmapping problem  
From: Texel
Date: 30 Aug 2003 18:05:01
Message: <web.3f511ebe47b3ca758e547c150@news.povray.org>
I have tried to render the example file of the PovRay package named
"bumpmap.pov" and it works very well.
And this example use diffuse color (without texture) and use ambient.
And the texture i use for my scene work with this example (it's not a
problem of my texture).
Why does it not work with my scene ?


bumpmap.pov file:

global_settings { assumed_gamma 2.2 }

#include "colors.inc"

camera {
   location  <0, 0, -120>
   direction <0, 0,  1.5>
   up        <0, 1,  0>
   right   <4/3, 0,  0>
   look_at   <0, 0,  0>
}

sphere { <0, 0, 0>, 25
   pigment {Blue}

   normal {
      bump_map {
         //png "bumpmap_.png"
         gif "bump.gif"
         bump_size 5
         interpolate 2
         once
      }
      scale 50              /* scaled and translated into position  */
      translate <-25, -25, 0>
   }
   finish {ambient 0.2 diffuse 0.7 specular 0.6}
}

plane { y, -25
   pigment {Gold}
   finish {ambient 0.1 diffuse 0.5}
}

light_source {<100,120,-130> colour White}


Post a reply to this message

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