POV-Ray : Newsgroups : povray.general : Highlights Syntax : Re: Highlights Syntax Server Time
30 Jul 2024 06:30:45 EDT (-0400)
  Re: Highlights Syntax  
From: Zeger Knaepen
Date: 27 Aug 2009 13:10:58
Message: <4a96be22@news.povray.org>
"clipka" <ano### [at] anonymousorg> wrote in message 
news:4a968920@news.povray.org...
> Zeger Knaepen schrieb:
>> and what if, for whatever reason, you want the effect of both models 
>> combined?
>
> Name one.

You're missing the point.  It's not because you or I can't think of a 
reason, no one can. Your idea takes functionality away, just because you 
believe there's no reason for that functionality to exist. (Or better: your 
idea makes it a lot harder to do the same thing).

But, if you really want an example: try this:
--- START CODE ---
camera {
 angle 160
 location 0
 look_at z
 translate x
}
light_source {
 <-1,0,0>
 rgb 1
}
torus {
 1,.5
 texture {
  pigment_pattern {bumps scale .2}
  texture_map {
   [0
    pigment {blue 1}
    finish {
     ambient 0 diffuse 0
     reflection 1
     phong .5 phong_size 15
     specular 1 roughness .001
     metallic .5
    }
   ]
   [1
    pigment {red 1}
    finish {
     ambient 0 diffuse 0 brilliance 10
     reflection 1
     phong .5 phong_size 15
     specular 1 roughness .001
     metallic .5
    }
   ]
  }
 }
}
--- END CODE ---

Possibly this could also be done with averaged textures, but the code would 
be a lot more complicated.

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

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