POV-Ray : Newsgroups : povray.newusers : "Floor" plane with tiled/checkered image : Re: "Floor" plane with tiled/checkered image Server Time
19 Apr 2024 23:59:40 EDT (-0400)
  Re: "Floor" plane with tiled/checkered image  
From: William F Pokorny
Date: 25 Oct 2022 05:35:53
Message: <6357adf9$1@news.povray.org>
On 10/25/22 00:20, neri-engineering wrote:
> I've been banging my head against the wall trying to use the image "wood.jpg"
> for each of the checker boxes.

Perhaps something like:

..
#declare Plane00 = plane { y, 0 }
#macro ImageMap00(_HF) // Macro due my tcl command wrapper of SDL...
   #if (_HF=0)
     image_map { "wood.jpg"
   #else
      "wood.jpg"
   #end
   #if (_HF=0)
      map_type 0
      interpolate 2
     }
   #end
#end
#declare Pigment00 = pigment { ImageMap00(0) rotate x*90 }
#declare Pigment01 = pigment { Pigment00 rotate y*90 }
#declare Pigment02 = pigment {
     checker
     pigment { Pigment00 }
     pigment { Pigment01 }
}
#declare Texture02 = texture {
     pigment { Pigment02 }
     normal { granite 0.2 scale 0.3 }
     finish { phong 0.6}
//  scale 0.5
}
#declare Obj02 = object { Plane00 texture { Texture02 } }

//--- scene ---
//  camera... light...
     object { Obj02 }
..

Bill P.


Post a reply to this message

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