POV-Ray : Newsgroups : povray.general : putting textures on a difference object : putting textures on a difference object Server Time
20 Nov 2024 02:29:59 EST (-0500)
  putting textures on a difference object  
From: the humeister
Date: 25 Nov 2001 19:10:31
Message: <3c018877$1@news.povray.org>
so I'm trying to put a texture on a csg (difference) object. The problem is that that
the texture doesn't come out correctly.

Here's what I'm talking about:

#declare White_Brick=texture{

    pigment{
      brick pigment{Gray90}, pigment{White}
      brick_size <3, 1, 2>
      mortar .5
      scale 1
    }

}
light_source{
  <0,500,-500>, White
}

      difference{
        box{
          <-15, 0, -15>, <15, 43, 15>
        }
        box{
          <-100, -100, 00>, <100, 100, -100>
          translate z*-15
          rotate x*10
        }
        box{
          <0, -100, 100>, <100, 100, -100>
          translate x*15
          rotate z*10
        }
        translate <47, 0, -47>
        rotate y*counter*90
      }


What you should see is that on the side where the difference isn't applied, the brick
pattern works
However, on the side where the difference was applied, there're gray bars where bricks
should be.
Any idea how to solve this?

-John


Post a reply to this message

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