POV-Ray : Newsgroups : povray.general : Help with cutaway_textures : Re: Help with cutaway_textures Server Time
29 Jul 2024 18:18:49 EDT (-0400)
  Re: Help with cutaway_textures  
From: Solar Mike
Date: 16 Dec 2010 23:20:00
Message: <web.4d0ae476487b631173b3f5c50@news.povray.org>
I am still having the texture problem - if it is working properly I have not
thought of a good way of working around it.  Here is my test code and the
resulting output

#macro cutter()
    union {
        cylinder {<lWood/2, 0, wWood/3>,<lWood/2, 150, wWood/3>, lWood/4 }
        cylinder {<lWood/2, 0, wWood*2/3>,<lWood/2, 150, wWood*2/3>, lWood/4 }
    }
#end

difference  {
    myWood()
    cutter()
    cutaway_textures
    translate (wWood+20)*z
}

intersection {
    myWood()
    cutter()
    cutaway_textures
}

http://s1223.photobucket.com/albums/dd507/solarmike1/?action=view&current=testIntersect.png

I would have expected the wood texture on both the difference and the
intersection.  Any thoughts as to how I can re-work this?


Post a reply to this message

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