POV-Ray : Newsgroups : povray.general : UV mapping bug Server Time
17 Nov 2024 03:22:06 EST (-0500)
  UV mapping bug (Message 1 to 1 of 1)  
From: Manuel
Subject: UV mapping bug
Date: 18 Jun 2003 15:04:55
Message: <3ef0b7d7@news.povray.org>
The uv_mapping keyword don't work for bump_map.
I use the example in Pov Manual, section 6.7.7.
The rendering is a black scene, but if you change the
"uv_mapping normal"  with only "normal", it work.


#include "finish.inc"
#include "colors.inc"


light_source {
    <1, 1, 1>
     color rgb <1.0, 1.0, 1.0>
     fade_distance  10.0
     fade_power  2

}
camera {
     perspective
     location <1, 1, 1>
     look_at <0, 0, 0>

}
mesh {
    triangle {
      <0,0,0>, <0.5,0,0>, <0.5,0.5,0>
      uv_vectors <0,0>, <1,0>, <1,1>
    }
    triangle {
      <0,0,0>, <0.5,0.5,0>, <0,0.5,0>
      uv_vectors <0,0>, <1,1>, <0,1>
    }
    texture {
      uv_mapping pigment {
        image_map {
          png "texture.png"
          map_type 0
          interpolate 0
        }
      }
      uv_mapping normal {
        bump_map {
          png "texture.png"
          map_type 0
          interpolate 0
        }
      }

    }
  }


Post a reply to this message

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