|
|
The following source gives a brighter image when focal blur is turned
on...
///////////////////////////////// begin
#version 3.1;
#include "colors.inc"
global_settings
{
assumed_gamma 1.0
}
// ----------------------------------------
camera
{
location <0.0, 0.5, -4.0>
direction 1.5*z
right 4/3*x
look_at <0.0, 0.0, 0.0>
// uncommenting the next three lines brightens up the image
/*aperture 0.05
focal_point 0.0
blur_samples 40*/
}
sky_sphere
{
pigment
{
gradient y
color_map { [0.0 color blue 0.6] [1.0 color rgb 1] }
}
}
light_source
{
0*x // light's position (translated below)
color red 1.0 green 1.0 blue 1.0 // light's color
translate <-30, 30, -30>
}
// ----------------------------------------
plane { y, -1 pigment {color rgb <0.7,0.5,0.3>}}
//=========================================
// macro mAlign
//-----------------------------------------
// translate vers P2-P1 si on veut positionner l'objet en P2
#macro mAlign(P1,P2)
#local yV1=vnormalize(P2-P1);
#local xV1=vnormalize(vcross(yV1,z));
#local zV1=vcross(xV1,yV1);
matrix
<xV1.x,xV1.y,xV1.z,yV1.x,yV1.y,yV1.z,zV1.x,zV1.y,zV1.z,P1.x,P1.y,P1.z>
#end
cylinder {
0, y, 1
pigment { color Red }
mAlign (<0, 0, 0>, <1, 1, 1>)
}
//box {
// -<1000, 1000, 1000>, <1000, 0, 1000>
plane {
y, 0
texture {
pigment {
gradient x
pigment_map {
[ 0.9 color rgbf 0 transmit 1 ]
[ 0.9 color Blue ]
}
}
}
texture {
pigment {
gradient z
color_map {
[ 0.9 color rgbf 0 transmit 1 ]
[ 0.9 color Blue ]
}
}
}
translate 0.45*y
}
/*fog
{
fog_type 2
distance 10
color rgb 0.6 // gray
fog_offset 0.1
fog_alt 0.2
turbulence 0.8
} */
/////////////////////////////////// end
Jerome
--
*******************************
* they'll tell you what can't * mailto:ber### [at] inamecom
* be done and why... * http://www.enst.fr/~jberger
* Then do it. *
*******************************
Post a reply to this message
|
|