|
|
Hi,
another question:
Is it possible to inherit pigment and finish seperately?
I'd like to do something like
object {
union {
box with pigment color red ...
box with pigment color green ...
box with pigmetn color blue ...
}
finish {reflection 0.3}}
i.e. to give the parts of a union different colors while defining other
parts of the texture globally for all parts of the union. It does not
seem to work, the colors red/green/blue seem to completely override all
texture settings including the finish...
regards
Hadmut
Post a reply to this message
|
|
|
|
Hadmut nous apporta ses lumieres en ce 23/06/2006 20:12:
> Hi,
>
> another question:
>
> Is it possible to inherit pigment and finish seperately?
>
> I'd like to do something like
>
>
>
> object {
> union {
>
> box with pigment color red ...
> box with pigment color green ...
> box with pigmetn color blue ...
>
>
> }
> finish {reflection 0.3}}
>
>
> i.e. to give the parts of a union different colors while defining other
> parts of the texture globally for all parts of the union. It does not
> seem to work, the colors red/green/blue seem to completely override all
> texture settings including the finish...
>
>
>
> regards
> Hadmut
Any texture attributed to a component in an union will override the one given to the
whole union.
When you define a pigment, you are using the default texture altered by your pigment.
Unless you define it otherwise, the default texture is texture{pigment{rgb
0}finish{ambient 0.1
diffuse 0.6 reflection 0}}
That finish is thus effectively given to your components and everride the one given to
the whole union.
Alain
-------------------------------------------------
BE ALERT!!!! (The world needs more lerts ...)
Post a reply to this message
|
|