|
|
Hello:
I'm using POV 3.6, and when I downloaded this:
//------------------------------------
#declare Ebump=function{
pigment {
image_map {jpeg "earthbump1k.jpg"
map_type 1
interpolate 2
}
}
}
isosurface{
function{f_sphere(x,y,z, 1)-Ebump(x,y,z).gray*0.05 }
contained_by{sphere{0,1.05}}
texture {
pigment {
image_map {jpeg "earthmap1k.jpg"
map_type 1
interpolate 2
}
}
}
}
All I get is:
Parse Error: Expected 'Operator', found ( instead
What does that mean?
Help!
Thanks,
James
Post a reply to this message
|
|
|
|
james lake nous illumina en ce 2008/04/27 20:30 -->
> isosurface{
> function{f_sphere(x,y,z, 1)-Ebump(x,y,z).gray*0.05 }
> contained_by{sphere{0,1.05}}
> texture {
> pigment {
> image_map {jpeg "earthmap1k.jpg"
> map_type 1
> interpolate 2
> }
> }
> }
> }
>
You can replace Ebump(x,y,z).gray by Ebump(x,y,z).x and get a faster render.
The bump image is normaly a B/W image. When you use ".gray", all 3 channels are
averaged together, but they all have the same value. So, if you use only one
channel, you get the same end result, but you save some calculations. You only
access the image once per sample instead of trice, and you then save the time
needed to add the values and divide the summ by 3.
This can be used whenever you use a B/W pigment.
--
Alain
-------------------------------------------------
A Bill of Rights is what the people are entitled to against every
government, and what no just government should refuse, or rest on inference.
Thomas Jefferson
Post a reply to this message
|
|