POV-Ray : Newsgroups : povray.advanced-users : pigment for isosurface VS pigment for texture Server Time
28 Jul 2024 16:28:48 EDT (-0400)
  pigment for isosurface VS pigment for texture (Message 1 to 2 of 2)  
From: ZeSly
Subject: pigment for isosurface VS pigment for texture
Date: 1 May 2004 18:28:55
Message: <409424a7$1@news.povray.org>
I want my pigment used as a function for an isosurface to correspond 
with a pigment used as a texture. Here is the code. It's simple, I want
red groove :

light_source { <1,1,2>*10000 color rgb 1.4 parallel }

camera
{
   location <2.5,1.7,9.5>
   look_at <0,1.7,8>
}

#declare F_PilierEntree =
function
{
   pigment
   {
     crackle
     color_map
     {
       #local cc = 0.1;
       [ cc-0.05 color rgb 0 ]
       [ cc color rgb 1 ]
     }
     scale 0.1
   }
}

#declare T_PilierEntree =
texture
{
   pigment
   {
     function { F_PilierEntree(x,y,z).gray }
     pigment_map
     {
       #local cc = 0.001;
       [ cc color red 1 ]
       [ cc color rgb 1 ]
     }
   }
}

isosurface
{
   #local R = 0.15;
   function { x*x + z*z - R*R - 0.002*F_PilierEntree(x,y,z).gray}
   max_gradient 2.5
   contained_by { box { <-1,0,-1>, <1,2.4,1> } }
   translate <0,0,8>
   texture { T_PilierEntree }
}

Thanks

-- 
ZeSly
http://perso.wanadoo.fr/zesly/


Post a reply to this message

From: ZeSly
Subject: Re: pigment for isosurface VS pigment for texture
Date: 1 May 2004 20:06:55
Message: <40943b9f$1@news.povray.org>

> isosurface
> {
>   #local R = 0.15;
>   function { x*x + z*z - R*R - 0.002*F_PilierEntree(x,y,z).gray}
>   max_gradient 2.5
>   contained_by { box { <-1,0,-1>, <1,2.4,1> } }
>   translate <0,0,8>
>   texture { T_PilierEntree }
> }

gRRominet has found on irc : the translate must be under the texture.


Post a reply to this message

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