|
|
Dave Cook <nos### [at] homecom> wrote in message
news:382a4ec2@news.povray.org...
> Thanks for posting (and writing) this Paul! Any chance you might post an
> example .pov for us?
>
> TIA, Dave
>
No problem, here is a modified version of the demo render.
// <source follows>
// Persistence of Vision Ray Tracer Scene Description File
// File: b3.pov
// Vers: 3.1
// Desc: Sample bottle file
// Date: 11/10/99
// Auth: Paul H.
//
/*----------------------------------------------
Makes some sample bottles from the macro
Designed for UVPov patch (whatever the current
version is. Comment out the global photon block
and the photon statement in each object
to render in 3.1g.
===============================================*/
#version 3.1
#include "colors.inc"
#include "glass.inc"
#include "bottle.inc"
#declare phd=1;
// If you don't want to use photons
// comment out the following line.
#declare Use_Photons = yes;
global_settings
{
max_trace_level 45
#ifdef (Use_Photons)
photons
{
gather 20, 100
radius 0.1*phd, 2, 2//, 0.1*phd
autostop 0
jitter .4
expand_thresholds 0.2, 40
}
#end
}
//
file://-------------------Textures (from Stones.inc)
//
#declare P_Grnt0 =
pigment
{
granite
turbulence 0.4
color_map
{
[0.000, 0.153 color rgbf <0.729, 0.502, 0.451, 0.000>
color rgbf <0.769, 0.686, 0.592, 0.000>]
[0.153, 0.398 color rgbf <0.769, 0.686, 0.592, 0.000>
color rgbf <0.843, 0.753, 0.718, 0.000>]
[0.398, 0.559 color rgbf <0.843, 0.753, 0.718, 0.000>
color rgbf <0.780, 0.667, 0.561, 0.000>]
[0.559, 0.729 color rgbf <0.780, 0.667, 0.561, 0.000>
color rgbf <0.741, 0.659, 0.576, 0.000>]
[0.729, 1.001 color rgbf <0.741, 0.659, 0.576, 0.000>
color rgbf <0.729, 0.502, 0.451, 0.000>]
}
}
file://----- Creamy Whites with yellow & light gray
#declare P_Grnt1 =
pigment
{granite
turbulence 0.6
color_map
{
[0.000, 0.212 color rgbf <0.898, 0.898, 0.851, 0.000>
color rgbf <0.969, 0.980, 0.875, 0.000>]
[0.212, 0.424 color rgbf <0.969, 0.980, 0.875, 0.000>
color rgbf <0.859, 0.859, 0.859, 0.000>]
[0.424, 0.627 color rgbf <0.859, 0.859, 0.859, 0.000>
color rgbf <0.992, 0.922, 0.659, 0.000>]
[0.627, 0.881 color rgbf <0.992, 0.922, 0.659, 0.000>
color rgbf <0.937, 0.965, 0.902, 0.000>]
[0.881, 1.001 color rgbf <0.937, 0.965, 0.902, 0.000>
color rgbf <0.898, 0.898, 0.851, 0.000>]
}
}
// ----------------------------------------
camera
{
location <0.0, 5, -18.0>
direction 1.5*z
right 4/3*x
look_at <0, 4.5, 0.0>
}
// Set a color of the background (sky)
background { color red 0.1 green 0.3 blue 0.8 }
light_source
{
0*x // light's position (translated below)
color red 1.0 green 1.0 blue 1.0 // light's color
translate <-10, 30, -30>
}
// ----------------------------------------
object
{
Bottle_Macro (1, .35, 3.5, .47, 6.3, 5, 1.25, T_Glass3 )
#ifdef (Use_Photons)
photons
{
separation 0.02*phd
refraction on
reflection on
ignore_photons
}
#end
rotate <0,45,0>
}
/*----------------------------------------------
// More bottles
object
{
Bottle_Macro (2, .5, 2, 1.4, 8.5, 7, 1.5, T_Dark_Green_Glass )
photons
{
separation 0.02*phd
refraction on
reflection on
file://ignore_photons
}
rotate <0,120,0>
translate 5*x
}
object
{
Bottle_Macro (.2, .35, 2, .6, 5, 4, 1, T_Glass4 )
photons
{
separation 0.02*phd
refraction on
reflection on
ignore_photons
}
rotate <0,95,0> translate -5*x
}
==============================================*/
// Box in the background
box
{
<20, 20, 10> // one corner position <X1 Y1 Z1>
< -20, -1, 11> // other corner position <X2 Y2 Z2>
texture
{
pigment
{
checker
pigment {P_Grnt0}
pigment {P_Grnt1}
}
scale 3
}
}
// box to stand bottles on
box
{
<-20, -3, -10> // one corner position <X1 Y1 Z1>
< 20, 0, 10> // other corner position <X2 Y2 Z2>
texture
{
pigment
{
checker
pigment {P_Grnt0}
pigment {P_Grnt1}
}
scale 3
}
}
Post a reply to this message
|
|