POV-Ray : Newsgroups : povray.binaries.images : Tilemap patch for Megapov 1.2 : Re: Tilemap patch for Megapov 1.2 Server Time
5 Nov 2024 12:40:47 EST (-0500)
  Re: Tilemap patch for Megapov 1.2  
From: Rune
Date: 13 Sep 2006 09:55:49
Message: <45080de5@news.povray.org>
Chris Jeppesen wrote:
> I don't quite understand. What would MakeTileMap do? Does it create
> zillions of layered pigments where each tile gets a layer?

No, it doesn't use layers at all.

> I have never heard of a nested gradient pattern.

Here's a simple example of 2x2 tiles in a nested gradient:

plane {
   -z, 0
   pigment {
      #declare Img1 = pigment {image_map {png "1test.png"} scale 0.5}
      #declare Img2 = pigment {image_map {png "2test.png"} scale 0.5}
      #declare Img3 = pigment {image_map {png "3test.png"} scale 0.5}
      #declare Img4 = pigment {image_map {png "4test.png"} scale 0.5}
      #declare RowA = pigment {gradient x pigment_map {[0.0, Img1][0.5, 
Img1][0.5, Img2][1.0, Img2]}}
      #declare RowB = pigment {gradient x pigment_map {[0.0, Img3][0.5, 
Img3][0.5, Img4][1.0, Img4]}}
      gradient y
      pigment_map {[0.0, RowA][0.5, RowA][0.5, RowB][1.0, RowB]}
   }
   finish {ambient 1 diffuse 0}
   translate 2*z
}

Rune
-- 
http://runevision.com


Post a reply to this message

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