|
![](/i/fill.gif) |
I was trying to make a gold texture rendering similar to the golden 'mushy
sphere posted by Tor Olev Kristensen when I accidentally came across an
optical illusion. I always thought you HAD to use a parabolic dish to get
this effect but it seems not .
I've only recently started using PoV again so please excuse any messy code.
Suggestions are always welcome.
Nekar
// Persistence Of Vision raytracer version 3.1 sample file.
// File by Alexander Enzmann
#include "metals.inc"
#include "golds.inc"
#include "shapes.inc"
#include "colors.inc"
#include "textures.inc"
#include "shapesq.inc"
global_settings { assumed_gamma 2.2 }
camera {
location <0, 0, -5>
direction <0, 0, 1.2071>
look_at <0, 0, 0>
}
light_source { < 0, -10, -30> color red 1 green 1 blue .75 }
light_source { < 0, -10, 15> color red 1 green 0.2 blue 0.1 }
light_source { < 0, 10, 15> color red 0.1 green 0.5 blue 0.75 }
blob {
threshold 0.6
component 1.0, 1.0, <0.75, 0, 0>
component 1.0, 1.0, <-0.375, 0.64952, 0>
component 1.0, 1.0, <-0.375, -0.64952, 0>
texture { T_Gold_1E }
normal{
bumps 1
scale 0.1
}
}
sphere {<0, 0, 0>,1
texture { T_Chrome_1E }
scale 30
}
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
> Thanks for sharing this.
It's a pleasure.
>It might give ideas for special scenes...
=)
Nekar
--
#local N=<-4,8,20>;#local K=<4,-8,20>;#local R=seed(0);union{#while((K-N).x>0)
#local X=N;#local N=N+<rand(R),rand(R),1>/30;#local N=(vlength(N-K)<vlength(X-K
)?N:2*X-N);sphere{<N.y,-N.x,N.z>,.2}sphere{N,.2}sphere{<-N.x-8,N.y,N.z>,.1//-NX
pigment{rgb N}}sphere{<N.x+8,-N.y,N.z>,.1 pigment{rgb N}}#end pigment{rgb 9}}
Post a reply to this message
|
![](/i/fill.gif) |