|
![](/i/fill.gif) |
"Alf Peake" <alf### [at] peake42 freeserve co uk> wrote:
> "CFM" <nomail@nomail> wrote in message
> news:web.40968a1badc19618b90c55f80@news.povray.org...
>
> > ... I tried the "povmap.gif" statement given.
>
> Hi
>
> Use "povmap.png" instead, it is in the include folder.
> "gif" support has been removed.
>
> Alf
Thanks. Unfortunately, I don't know how to use comment tags properly to
comment out stuff. I rendered with an error saying, "No */ closing comment
found." The error was found at the BACKGROUND command. Could you check
below to see what I did wrong?
#include "colors.inc"
#include "textures.inc"
#include "metals.inc"
camera {location <0,20,-35>
look_at <0,0,0>
}
light_source {<-20,50,-50>color rgb<2,2,2>}
/*light_source {<10,30,-10>color White}
light_source {<0,30,10>color White}*/
plane {y,0 pigment {checker color Green color Yellow}}
background {rgb <.7,.7,1>}
/*This part declare a pigment for use
in the rust patch texture pattern*/
/*#declare Rusty=pigment {
granite
color_map {
[0 rgb<.2,0,0>]
[1 Brown]
}
frequency 20
}
//And this part applies it
//Notice that our original layered texture
//"Speckled_Metal" is now part of the map
#declare Rust_Patches=texture {
bozo
texture_map {
[0,pigment {Rusty}]
[.75, texture { //...has some flecks of rust...
pigment {
granite
color_map {
[0 rgb <.2,0,0>]
[.2 color Brown]
[.2 rgbt <1,1,1,1>]
[1 rgbt <1,1,1,1>]
}
frequency 16
}
] // (end rust fleck texture)
[1, texture { //...and some sooty black marks
pigment {
bozo
color_map {
[0 color Black]
[.2 color rgbt <0,0,0,.5>]
[.4 color rgbt <.5,.5,.5,.5>]
[.5 color rgbt <1,1,1,1>]
[1 color rgbt <1,1,1,1>]
}
scale 3
}
]} // (end of sooty mark texture)
} // (end of box declaration)
}
}
/*box {
<-10,0,-10>,<10,10,10>
texture {
Rust_Patches}}/*Silver_Metal //a metal object...
normal { //...which has suffered a beating
dents 2
scale 1.5
}
} // (end of base texture)*/
plane {
-z, 0
texture {
material_map {
png "povmap.png"
interpolate 2
once
texture {PinkAlabaster}//the inner border
texture {pigment {DMFDarkOak}}//outer border
texture {Gold_Metal}//lettering
texture {Chrome_Metal}//the window panel
}
translate <-.5,-.5,0>
scale 5
}
}
Post a reply to this message
|
![](/i/fill.gif) |