Latest

Archive

Community news

C++

Communities and Content

Databases

Editorials

Emacs

General

HTML

Java

Notices

PHP

XML

Apache

C++

Database

General

HTML

Java

Javascript

Linux

Object oriented programming

Open source

Perl

PHP

Python

Ruby

SOAP

XML

Suggest a link

Advertise on zez

Contribute

Contact us

About zez


Free Multiplatform raytracing with POV-Ray



A fallen column



A plane and a cylinder
In the second scene we add a stone cylinder lying on its side.

#include "colors.inc"
#include "stones1.inc"

// Monitor brightness
global_settings { assumed_gamma 2.2 }

// Background color
background { color LightBlue }

// The camera
camera {
    location <6, 3, -4>
    look_at <2.5, 2, 0>
}

// Two lights
light_source { <8, 7, 0> color White }
light_source { <2, 3, -20> color White }

// An infinite checkered plane
plane {
    <0, 1, 0>,
    0
    pigment {
 checker color Yellow, color Green
    }
    finish {
 ambient 0.3
 diffuse 0.6
    }
}

// A stone cylinder
cylinder {
    <-4, 2, 3>,
    <4, 2, 3>,
    2
    texture { T_Stone23 scale 4 }
    finish {
 ambient 0.3
 diffuse 0.6
    }
}


The cylinder statement starts with two coordinates which describe the end points of the cylinder. The next value is the radius of the cylinder. It has a stone texture, which requires a second include, stones1.inc. The finish is changed in the same way as we did with the plane. There is also a second light source at the front of the cylinder.


<< Previous page | 1 | 2 | < 3 > | 4 | 5 | Next page >> | Printer-friendly page |

Comment List


Topic: Author:
Time:
Intro to POV Dr M 15.05.2005 06:19

So many website talk about POV;
but this is the first time,
I learnt how to use POV
and that too in 15 minutes.
Keep up the good work.

I am in Silly-Con valley, where clear
explanations are hard to find.


Great Article! John Holden 17.02.2002 16:03

This has been a really informative article. Although it isn't in-depth, it's perfect for a beginner like me.

Thanks for putting it up here!

John


sp. origin Vik Olliver 24.11.2001 04:48

Are we meant to proofread here?

It's origin, not origo.

Vik :v)


   RE: sp. origin Gunnstein Lye 26.11.2001 13:16

> Are we meant to proofread here?
> It's origin, not origo.

I'm not a native english speaker, but my dictionary states that the word "origo" can be used when speaking of coordinate systems. But I'll change it if "origin" is more commonly used or more correct.

Gunnstein




Forgot your password?

Register a new user

Results

Polls