POV-Ray : Newsgroups : povray.general : difference on a object steals reflection Server Time
7 Aug 2024 09:18:48 EDT (-0400)
  difference on a object steals reflection (Message 1 to 4 of 4)  
From: marabou
Subject: difference on a object steals reflection
Date: 23 Oct 2001 16:38:04
Message: <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.


Post a reply to this message

From: Philippe Debar
Subject: Re: difference on a object steals reflection
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

From: marabou
Subject: Re: difference on a object steals reflection
Date: 23 Oct 2001 17:01:23
Message: <3bd5daa3@news.povray.org>
you really hit! that was my question. 
i am a new.. so i did not see it. 
thank you!

----------------------------------

Philippe Debar wrote:

> 
> "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

From: Philippe Debar
Subject: Re: difference on a object steals reflection
Date: 23 Oct 2001 19:23:42
Message: <3bd5fbfe$1@news.povray.org>
"marabou" <not### [at] availableyet> wrote in message
news:3bd5daa3@news.povray.org...
>
> you really hit! that was my question.
> i am a new.. so i did not see it.
> thank you!

You're welcome

You may find usefull to check :
- povray.newusers (on this news server),
- povray.announce.frequently-asked-question (on this news server),
- warp's Very Frequently Asked Question at http://iki.fi/warp/povVFAQ/
(_very_ usefull).


Povingly,


Philippe


Post a reply to this message

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