POV-Ray : Newsgroups : povray.newusers : How get two # color in blob : Re: How get two # color in blob Server Time
6 Sep 2024 08:10:44 EDT (-0400)
  Re: How get two # color in blob  
From: VerseCurse
Date: 26 Sep 1998 21:01:55
Message: <360d8073.0@news.povray.org>
Message <360AE258.7BA40B66@Biosys.net>, Martial Rameaux  typed...
>
>Bonjour.
>In a blob
>I wanna got one color different of the main.
>In a finger the texture of the nail different of the Hand.
>but the two texture are always dissolved.
>
>for sample:
>
>//====================================
>#default { finish { ambient 0.5}}
>#declare T_ongle=texture { pigment {color rgb 1} }
>#declare T_doigt=texture { pigment {color rgb <0.8,0.5,0.5> }}
>camera { location <0,10,-5> look_at <0,0,0>}
>light_source { 0*x color rgb 1 translate <0,40,-20> }
>
>blob {
>        threshold 0.60
>//--------index
>              sphere   { <0.50,-.10,0.0>,0.2,1.2  }           //
>(1)
>              cylinder { <0.50,   0,  0>,<0,1.5,0>,1.0,1 }     //
>(2)
>              cylinder { <   0, 1.5,  0>,<0,3,0>,1.0,1 }      //
>(3)
>              cylinder { <0,3,0>,<1.5,3.8,-.1>,1.0,1.}
>
>//---------reduction des noeuds et faisons des ongles
>
>              sphere { <0.0,-.18, 0.0>,0.5,-0.32 texture {T_ongle
>}}
>//nail texture
>//(1)  index
>
>              sphere { <0.0, 1.5, 0.0>,1,-1 }          //(2)
>              sphere { <0.0, 3.0, 0.0>,1,-1 }          //(3)
>
>     texture { T_doigt }  // main texture
>     rotate y*-90
>     rotate x*60
>  }
>//======================
>
>
>The two texture are also blob.
>
>what can I make ?
>Thanks !
>

It seemed to look alright to me; at least, I "see" a fingernail there...
Besides that, blob component textures (those in each of the 'sphere' or 
'cylinder' parts) will always *average* together where they meet.
What you may be needing is two different things: i.e., the finger-tip and 
finger-nail to be two unique objects. Perhaps a cylinder CSG segment entirely 
outside of the blob object, or another blob CSG.

Bob


Post a reply to this message

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