Pov Ray no Linux

Pov-Ray no Linux

Pov-Ray é um software multiplataforma usado para computação gráfica, ele renderiza o desenho.

  1. Baixe o pacote (http://www.povray.org/download)

      Instalação

    Em um terminal como root, digite apt-get install povray povray-doc povray-examples povray-includes Uso Edite um arquivo com a extensão .pov com o conteúdo: [colocar aqui um arquivo .pov bem simples] para renderizar o arquivo: povray arquivo.pov Para visualizar o arquivo: display arquivo.png

    Saída

    povray arquivo.pov e ele cospe um arquivo.png

  1. Para abrir e usá-lo novamente, basta abrir um terminal e digitar:

    povray

  2. O desenho dele vc faz em um editor de texto simples.

Exemplo:

Abre um editor de texto e escreve:

#include “colors.inc”

#include “textures.inc”

camera {

location <-4, 3, -9>

look_at <0, 0, 0>

angle 48

}

plane {

y, -1

texture {

pigment {

checker

color rgb<0.5, 0, 0>

color rgb<0, 0.5, 0.5>

}

finish {

diffuse 0.4

ambient 0.2

phong 1

phong_size 100

reflection 0.25

}

}

}

torus {

1.5, 0.5

texture { Brown_Agate }

rotate <90, 160, 0>

translate <-1, 1, 3>

}

box {

<-1, -1, -1>, <1, 1, 1>

texture { DMFLightOak }

translate <2, 0, 2.3>

}

cone {

<0,1,0>, 0, <0,0,0>, 1

texture { PinkAlabaster }

scale <1, 3, 1>

translate <-2, -1, -1>

}

sphere {

<0,0,0>,1

texture { Sapphire_Agate }

translate <1.5, 0, -2>

}

light_source {

<2, 10, -3>

color White

}

O resultado é:

    por: Alyne Castro

~ por alynecastro em Setembro 5, 2008.

Deixe uma resposta