POV-Ray : Newsgroups : povray.binaries.images : Textured block pattern problem : Re: Textured block pattern problem Server Time
31 Jul 2024 22:18:28 EDT (-0400)
  Re: Textured block pattern problem  
From: Jörg 'Yadgar' Bleimann
Date: 24 Mar 2009 22:30:33
Message: <49c99749@news.povray.org>
High!


>But there's still one problem: almost all countries' flags are 
> rectangles (usually at a 3:2 ratio) rather than squares, so I need to 
> scale the checker cells *before* I insert the defined textures...

I got it... scaling the checker pattern and then reciprocally rescaling 
the textures does the trick!

plane
{
   y, 0
   texture
   {
     scale x*1.5
     pigment
     {
       checker
       pigment { P_Flag_Palau scale 0.3 scale <2/3, 0, 0> translate 
<0.42, 0, 0.5> warp { repeat x } warp { repeat z } }
       pigment { P_Flag_TrinidadAndTobago scale <2/3, 0, 0> translate 
x*0.65 warp { repeat x } warp { repeat z } }
     }
     finish { ambient 1 diffuse 0 }
   }
}

See you in Khyberspace!

Yadgar


Post a reply to this message


Attachments:
Download 'procflagstest.png' (15 KB)

Preview of image 'procflagstest.png'
procflagstest.png


 

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