POV-Ray : Newsgroups : povray.general : applying a finish to an object ? Server Time
1 Nov 2024 05:24:14 EDT (-0400)
  applying a finish to an object ? (Message 1 to 2 of 2)  
From: tth
Subject: applying a finish to an object ?
Date: 22 Aug 2017 15:47:44
Message: <599c8a60$1@news.povray.org>
EHLO

I have some computer generated .INC files with this type of object :

#declare essai = object {
union {
sphere { <0.000000, 0.000000, 0.000000> 0.300000
    pigment { color <0.500000, 0.500000, 0.500000> } }
sphere { <0.361449, 0.271070, 0.291044> 0.251914
    pigment { color <0.000000, 0.000000, 0.000000> } }
}

In the main scene, I try that :

object { essai finish { reflection 0.9 ambient 0 diffuse 0.1 } }

And,  noway to have all my little bubbles be a mirror...
http://la.buvette.org/POV/fractal-agregat/bug_finish.gif

I can post the complete poc...

tTh


Post a reply to this message

From: Alain
Subject: Re: applying a finish to an object ?
Date: 22 Aug 2017 19:43:39
Message: <599cc1ab@news.povray.org>
Le 17-08-22 à 15:50, tth a écrit :
> EHLO
> 
> I have some computer generated .INC files with this type of object :
> 
> #declare essai = object {
> union {
> sphere { <0.000000, 0.000000, 0.000000> 0.300000
>     pigment { color <0.500000, 0.500000, 0.500000> } }
> sphere { <0.361449, 0.271070, 0.291044> 0.251914
>     pigment { color <0.000000, 0.000000, 0.000000> } }
> }
> 
> In the main scene, I try that :
> 
> object { essai finish { reflection 0.9 ambient 0 diffuse 0.1 } }
> 
> And,  noway to have all my little bubbles be a mirror...
> http://la.buvette.org/POV/fractal-agregat/bug_finish.gif
> 
> I can post the complete poc...
> 
> tTh
> 
> 
> 
> 
> 
It just can't work.
Any texture that is explicitely applyed to any object are never replaced 
nor layered over by any texture or finish applyed to the CSG object.
object{sphere{0 1 pigment{rgb<1,0,0>}} pigment{rgb<0,1,1>}}
Will result in a pure red sphere, without any hint of cyant.

If you where to add some untextured object, then, that object will get 
reflective.

A possible workaround would be as follow:

#declare O_Default = texture{}
  // Save the original default texture.
  // An empty texture block always return the current default texture.
#default{finish{ reflection 0.9 ambient 0 diffuse 0.1 } }
  // Set a new default texture with the reflection that you want
object { essai }
  // Place your object
#default texture { O_Default }
  // Restore the original default texture



Alain


Post a reply to this message

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