POV-Ray : Newsgroups : povray.binaries.images : object_pattern fun : Re: object_pattern fun Server Time
4 May 2024 21:09:24 EDT (-0400)
  Re: object_pattern fun  
From: Thomas de Groot
Date: 18 Oct 2019 07:36:55
Message: <5da9a3d7$1@news.povray.org>
Op 17/10/2019 om 08:21 schreef Thomas de Groot:
> Op 16/10/2019 om 19:46 schreef Bald Eagle:
>> I made some signs for a W that's still IP, maybe you can play with the 
>> code and
>> see about expanding on it for your own purposes.
>>
> 
> Mmm... I have to investigate this. At first glance, you seem to be doing 
> what I failed to do one way or another. Thanks!
> 

Right. I clarified things for myself. I obviously made a bit of a mess 
of my code. ;-)

So, the layering of the following two textures /is/ possible:

//------------------------------------------
#local T_Rose1 =
texture {
   pigment {
     object {Rose1
       rgbt <1, 1, 1, 1>   // outside object
       rgb <1, 1, 0>       // inside object
     }
   }
   normal {ripples 2.0 scale 0.1}
   finish {diffuse 0.8 specular 0.25 roughness 0.001}
}

#local T_Rose2 =
texture {
   pigment {
     object {Rose2
       rgbt <1, 1, 1, 1>   // outside object
       rgb <0, 1, 0>       // inside object
     }
   }
   normal {granite 2.0}
   finish {diffuse 0.8 specular 0.25 roughness 0.001}
}
//------------------------------------------

The layering of the following two textures /is not/ possible because 
they are patterned:

//------------------------------------------
#local T_Rose1_alt =
texture {
   object {Rose1
     texture {pigment {rgbt <1, 1, 1, 1>}}   // outside object
     texture {pigment {P_star1}}             // inside object
   }
}

#local T_Rose2_alt =
texture {
   object {Rose2
     texture {pigment {rgbt <1, 1, 1, 1>}}   // outside object
     texture {pigment {P_star2}}             // inside object
   }
}
//------------------------------------------

Individually however, they can be used.

-- 
Thomas


Post a reply to this message

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