POV-Ray : Newsgroups : povray.beta-test : cutaway_textures oddity Server Time
23 Dec 2024 04:57:58 EST (-0500)
  cutaway_textures oddity (Message 1 to 1 of 1)  
From: Jim Holsenback
Subject: cutaway_textures oddity
Date: 17 Apr 2010 08:58:56
Message: <4bc9b090@news.povray.org>
Greetings,

I do believe I've stumbled across a bit of a problem with 
cutaway_textures in v3.7beta36. I've had two other users confirm the 
behavior before posting here for wider confirmation. In a nutshell v3.6 
cutaway_textures works as advertised, and with the current beta the 
difference part traces black. Here's the simple scene:

---
#include "colors.inc"
#include "woods.inc"

camera {
   perspective
   location  <-1.5, 1.5, 2.5>
   look_at   <0, 0,  0>
   right     x*image_width/image_height
   }


light_source {
   <-10, 10, 10>
   color rgb 1.0
   }

background {rgb <0.5,0.175,0>}
plane {y,0 pigment {rgb <0.5,0.175,0>}}

difference {
     box {<0,0,0>, <0.5,0.25,1>
             texture {
                     T_Wood1
                     scale <0.5,0.25,1>
                     translate <0.25,0.125,0>
                     finish {ambient 0 diffuse 1 }
                     normal {agate 0.1 scale 0.1}
                     }
             }
     cylinder {<0,0.25,-0.2> <0,0.25,1.2>, 0.05}
     cutaway_textures
     }
---

also found something of lesser importance ... woodmaps.inc depends on 
colors.inc, more specifically the definition of the color "Clear" 
perhaps a #ifndef colors.inc belongs in woodmaps.inc or probably more 
correctly changing the call of "Clear" to rgbf 1

Jim


Post a reply to this message

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