POV-Ray : Newsgroups : povray.general : difference on a object steals reflection : Re: difference on a object steals reflection Server Time
7 Aug 2024 07:14:54 EDT (-0400)
  Re: difference on a object steals reflection  
From: Philippe Debar
Date: 23 Oct 2001 16:57:15
Message: <3bd5d9ab@news.povray.org>
"marabou" <not### [at] availableyet> wrote in message
news:3bd5d52c@news.povray.org...
> hello all!
>
> i searched most of the postings but found no answer to that question:
> if i make a difference on an object then the area under the differenced
> object is black and has no reflection.
> what or where do i have to look for?
>
> thanks.
>

if your code looks like this (this is pseudocode, it won't run) :

difference {
  object { // could be any object : box, sphere, csg, even "object"
    texture { pigment{color Gray50} finish{reflection .25}}
  }
  object { // could be any object : box, sphere, ....
  }
}

then only the object you substract from is textured and object you substract
with is the default black texture (with no reflection). Move the texture
towards the end of the difference, outside the objects, like this :

difference {
  object { // could be any object : box, sphere, ....
  }
  object { // could be any object : box, sphere, ....
  }
  texture { pigment{color Gray50} finish{reflection .25}}
}



Of course, without seeing your code, it might be anything else.



Povingly,

Philippe


Post a reply to this message

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