POV-Ray : Newsgroups : povray.general : putting textures on a difference object : Re: putting textures on a difference object Server Time
7 Aug 2024 03:23:53 EDT (-0400)
  Re: putting textures on a difference object  
From: bob h
Date: 2 Dec 2001 23:39:17
Message: <3c0b01f5@news.povray.org>
<the### [at] yahoocom> wrote in message
news:3c0ab020$1@news.povray.org...
> Is there anyway to apply the texture to each side individually?
> ie apply it normally on the sides w/o the difference, and rotate the
texture
> on the side where the texture is applied?

I rendered it and couldn't see anything wrong, all sides are the same brick
pattern.  Albeit it will look a little different depending on where the
camera is and the size of the image.
If you try my changed script and use the AA settings too you will see:

// +a0.1 +r5  // try this and also +a +r3 the default AA

#declare White_Brick=texture{

    pigment{
      brick pigment{rgb .9}, pigment{rgb 1}
      brick_size <3, 1, 2>
      mortar .5
      scale 1
    }

}

#declare C=4;
#while (C>0)
      difference{
        box{
          <-15, 0, -15>, <15, 43, 15>
        }
        box{
          <-100, -100, 0>, <100, 100, -100>
          translate z*-15
          rotate x*10
        }
        box{
          <0, -100, 100>, <100, 100, -100>
          translate x*15
          rotate z*10
        }
 texture {White_Brick}
        translate <47, 0, -47>
        rotate y*C*90
      }
#declare C=C-1;
#end

light_source{
  <0,50,150>, 1
}

camera {location <0,25,100> look_at 0}


Post a reply to this message

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