|
|
Dear Alain and clipka,
Thank you very much!
Here is my first try, but I do not understand why my middle polygons become
grey. For single, it is white. Very strange.
Do you have any idea why?
// Persistence Of Vision raytracer version 3.5 sample file.
//
// -w320 -h240
// -w800 -h600 +a0.3
global_settings { assumed_gamma 1.0 }
#include "colors.inc" // Standard colors library
#include "shapes.inc" // Commonly used object shapes
#include "textures.inc" // LOTS of neat textures. Lots of NEW textures.
//#include "arrow.inc"
//#include "smallarrow.inc"
#declare Camera_1 = camera { // modifieddiagonal view
angle 9
location <40.0 ,40.5 ,55.0>
right x*image_width/image_height
look_at <0.3 , 1.5 ,-0.2>
}
camera{Camera_1}
// Light source
//light_source {<-30, 11, +20> color White }
//light_source {< 31, 12, -20> color White }
//light_source {< 32, 11, -20> color LightGray }
light_source{<1500,2500,-2500> color White}
// sky -------------------------------------------------------------------
sky_sphere{ pigment{ gradient <0,1,0>
color_map{ [0 color rgb<1,1,1> ]//White
[0.4 color rgb<1,1,1>]//~Navy
[0.6 color rgb<1,1,1>]//<0.14,0.14,0.56>]//~Navy
[1.0 color rgb<1,1,1> ]//White
}
scale 2 }
} // end of sky_sphere
//------------------------------------------------------------------------
#include "rdgranit.map"
#declare Pink_Gran_Texture =
texture {
pigment {
granite
color_map { M_RedGranite }
scale 0.4
}
finish {
specular 0.75
roughness 0.0085
ambient 0.15
reflection 0.2
}
}
//#declare Phase = union{
/*
union {
// sphere {<0, 0, 0>, 1.75}
box { <-4,1,-4>,<4,1.4,4>}
//pigment{checker color rgb < 0.03, 0.5, 0.>, color White}
pigment{checker color rgb < 0.05, 0., 0.35>, color White}
//box { <1,.050,3> , <-4,-0.05,-3>}
// texture { Pink_Gran_Texture scale 0.55 }
// rotate y*45
}
*/
#declare al=4;
/*
polygon {
4,
<0,4, 0>, <0,4, 1>, <1, 4,1>, <1,4, 0>
texture {
finish { ambient 1 diffuse 0 }
pigment { color rgb<1,0,0> }
}
//scale and rotate as needed here
}
*/
#declare al=4;
#declare w=1.2;
polygon {
4,
< 5,0, -w>, <-5, 0,-w>, <-5,0, w>,<5,0, w>
texture {
finish { ambient 1 diffuse 0 }
pigment { color rgb<0.1,0.1,0.1> }
}
//scale and rotate as needed here
}
#declare h=0.8;
#declare wid=2;
#declare ls=-3;
#declare le=ls+wid;
#declare Index = 0;
#while(Index <= 5)
polygon {
4,
< ls+Index,0, -h>, <le+Index, 0,-h>, <le+Index,0, h>,<ls+Index,0, h>
texture {
finish { ambient 1 diffuse 0 }
pigment { color rgb<1,1,1> }
}
//scale and rotate as needed here
}
#declare Index = Index + 2.5;
#end
//==================end===========================
Thanks a lot!
Guoping
Alain <kua### [at] videotronca> wrote:
> > Dear All,
> >
> > I would like to use Povray to draw old 35 mm films. Then I want to plot some
> > images in them. These films should be viewed from an angle, so the films go away
> > from the viewer, into future. I could not find a useful example how I can create
> > a shape.
> >
> > I would appreciate it if you could give me some hints.
> >
> > Best regards,
> >
> > Guoping
> >
> >
> If a flat surface is enough, then you can use a thin box or a polygon
> that you create on the X-Y plane.
> You apply your image to it using an image_map.
> Finally, you tilt that away using rotate x*45, or any angle you may
> want. The angle is in degrees.
>
>
> Alain
Post a reply to this message
|
|