POV-Ray : Newsgroups : povray.beta-test : uv_mapping in function crashes beta 13 : uv_mapping in function crashes beta 13 Server Time
29 Jul 2024 18:16:32 EDT (-0400)
  uv_mapping in function crashes beta 13  
From: Sebastian H 
Date: 24 Mar 2002 06:17:47
Message: <3C9DB64B.3020006@web.de>
Whenn adding "uv_mapping" to a pigment in a function which is used for a 
pigment in a texture it crashes beta13 (linux)
-> Speicherzugriffsfehler (english: segmentation fault?)


// ----- crashes -----
#declare f_png = function {
   pigment {
     uv_mapping      // problem here?
     image_map {png "plasma2.png"
       map_type 0
       interpolate 2
     }
   }
}

#declare T_tex =
   texture {
     pigment {
       function { f_png (x,y,z).red }
     }
   }

box {
   <0, 0, 0> <1, 1, 1>
   texture {
     T_tex
   }
   translate <0, 0, 1>
}



// ----- works -----
#declare f_png = function {
   pigment {
     image_map {png "plasma2.png"
       map_type 0
       interpolate 2
     }
   }
}

#declare T_tex =
   texture {
     pigment {
       uv_mapping
       function { f_png (x,y,z).red }
     }
   }

box {
   <0, 0, 0> <1, 1, 1>
   texture {
     T_tex
   }
   translate <0, 0, 1>
}


Post a reply to this message

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