POV-Ray : Newsgroups : povray.newusers : How get two # color in blob Server Time
6 Sep 2024 10:11:04 EDT (-0400)
  How get two # color in blob (Message 1 to 3 of 3)  
From: Martial Rameaux
Subject: How get two # color in blob
Date: 24 Sep 1998 21:23:27
Message: <360AE258.7BA40B66@Biosys.net>
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 !


Post a reply to this message

From: VerseCurse
Subject: Re: How get two # color in blob
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

From: Martial Rameaux
Subject: Re: How get two # color in blob
Date: 1 Oct 1998 17:37:27
Message: <3613BA08.E24CC94F@Biosys.net>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Ok! Thanks for advices...But is curious behavior in csg.
<BR>If you use union or merge the distance is very great  z=100 for
z=2 in blob.
<BR>If you don't use union, the distance is long z=8 for  z=2.
<BR>It's very difficult to get one's bearing.
<BR> </HTML>


Post a reply to this message

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