Pages

Tuesday, January 19, 2016

POVRay o La persistencia de la visión

Persistence of vision

La persistencia de la visión


Сохранение зрения
Hello again everyone and happy new year! 
It has been more than a month since the last post, so I must publish one. 
Lately we have been reviewing two programs dedicated to 3D design: Blender and POVRay
Today we will talk about POVray, which is a software that would allow us to render 3D objects by "ray tracing" (light). 
Maybe later we'll talk about Blender in another post. 


POVRay history dates back to the 80s when it was created by David Kirk on the Amiga platform and then was migrated by Aaron Collins to the x86 Platform (old PCs). 
They collaborated to improve the program and it evolved to become a success in its day. 
Currently a few years ago this software has been reborn again and is free to download and modify the source code (AGPL3 license). 
Here's the link to download.  


This software does not include a graphical editor such as have the most typical 3D design programs. 
It generates images from a file ".pov" similar to other languages ​​with instructions of code (SDL) similar as C. 
So you need to know basic programming in order to render images. 
These files ".pov" take the information from several basic elements required to render a 3D image, as the light source, the camera position, and the position and properties of objects in the 3D world. 
It does not work with triangles (or triangle meshes) as most 3D programs do but mathematically handles objects according to the performing equations of light photons when impacting objects. 
Among the most common mathematical forms that it renders are: spheres, cylinders, cones, cubes, boxes, toroids, etc.). 
It allows you to create objects from the union or difference of two or more objects. It also allows rendering of isosurfaces. 



The relationship with fractals. We know that the recursive fractal images arise from mathematical formulas, in the same way we could use this program to generate fractals, although it is intended for rendering 3D worlds mainly. Just bellow you have an example of a file .pov: 

Until next time!
Hola a todos de nuevo y feliz año nuevo! 
Hace ya más de un mes desde el último post, así que ya toca publicar uno. Últimamente hemos estados dedicados a dos programas de diseño en 3D: Blender y POVRay
Hoy vamos a hablar de POVray, que es un software que nos permitirá renderizar objetos en 3D mediante trazado de rayos (de luz). 
Quizás más adelante hablaremos de Blender en otro post. 

La historia de POVRay se remonta a los años 80 cuando David Kirk lo creó en la plataforma Amiga, y posteriormente Aaron Collins lo migró a x86, la plataforma de los antiguos PCs. 
Ambos colaboraron para mejorar ese programa y fue evolucionando hasta llegar a ser un éxito en su día. 
Actualmente hace unos pocos años este software ha renacido de nuevo, y es libre para descargar y modificar su código fuente (licencia AGPL3). Aquí teneis el link para descargarlo


Este software no lleva un editor gráfico como tienen la mayoría de programas actuales de diseño en 3D. Genera las imágenes a partir de unos ficheros ".pov" con instrucciones de código (SDL) similares a otros lenguajes conocidos como el C. 
Así pues es necesario tener unos mínimos conocimientos de programación para poder renderizar imágenes. 
Estos ficheros ".pov" llevan la información de varios elementos básicos necesarios para renderizar una imágen en 3D, como la fuente de luz, la posición de la cámara, y la posición y propiedades de los objetos del mundo 3D. No funciona con triángulos (o mallas de triángulos) como la mayoría de los programas 3D, sino que trata los objetos matemáticamente en función de las ecuaciones de óptica que realizan los fotones de luz al incidir en los objetos. 
Entre las formas matemáticas más comunes que permite renderizar encontramos: esferas, cilindros, conos, cubos, cajas, toroides, etc). Permite crear objetos a partir de la unión o la resta de dos o más objetos. Asimismo permite la renderización de isosuperficies. 

La relación con los fractales. Sabemos que las imágenes fractales surgen de fórmulas matemáticas recursivas, de mismo modo podremos utilizar este programa para generar fractales, aunque está pensado para renderizar mundos en 3D principalmente. Justo abajo os dejo un ejemplo de un fichero .pov: 

Hasta la próxima!
Здравствуйте еще раз все и с новым годом ! 
Более месяца с момента последнего поста, так что я опубликовать в одно касание. 
В последнее время у нас есть две программы, посвященные 3D дизайна государств : Blender и POVRAY . 
Сегодня мы будем говорить о POVRAY, что программное обеспечение, которое позволит нам оказывать 3D объекты, используя метод трассировки лучей ( света ) Может быть, позже мы поговорим о Blender в другой должности. 
История POVRay восходит к 80-х годов, когда он создал Дэвид Кирк на платформе Amiga, а затем мигрировали его Аарон Коллинз платформы x86 старых ПК. 
Они сотрудничали, чтобы улучшить программу и превратилась в успех в его день. В настоящее время несколько лет эта программа была возродиться снова и является бесплатным для загрузки и модифицировать исходный код (AGPL3 лицензии). Вот ссылка для скачивания

Это программное обеспечение не включает в себя графический редактор и имеют самые современные 3D программы дизайна. Создает изображения из файла аналогичной на другие языки ".pov" с указанием кода (SDL), известных как С. Таким образом, вы должны иметь базовые знания программирования, чтобы сделать изображение. Эти файлы ".pov" взять информацию из нескольких основных элементов, необходимых для визуализации 3D-изображения в качестве источника света, положение камеры и положения и свойств объектов в 3D-мире. Не работает с треугольниками (или треугольник сетки), как и большинство 3D-программ, но математически обрабатывает объекты в соответствии с уравнениями, выполняющих оптические фотоны света посягать на объектах. Среди наиболее распространенных математических форм, которые позволяет оказывать являются: сферы, цилиндры, конусы, кубы, ящики, тороиды, и т.д.). Это позволяет создавать объекты из союза или вычитания двух или более объектов. Он также позволяет оказывать изоповерхностей. Отношения с фракталами . Мы знаем, что рекурсивные фрактальных изображений возникают из математических формул, для всего, как мы используем эту программу для создания фрактала, хотя она предназначена для рендеринга 3D миры в основном . Только вниз я оставляю пример файла .pov : 

 до свидания !


#include "colors.inc"
#include "woods.inc"    
#include "stones.inc"

camera {
 ultra_wide_angle angle 45
 location  <0, -0.6, -4>
        right     x*image_width/image_height
        look_at   <0,0,0>
}

light_source{
 <100,200,-200> color White
}  

sky_sphere {
    pigment {
        gradient y
        color_map {
            [0, 1  color Gray10 color Gray80]
        }
    }
}          

plane { y, -1.20
       texture {
         T_Wood3
            finish { specular 0.65 roughness 0.05 ambient 0.3 }
       }
}      

julia_fractal {
 <-0.083,0,-0.83,-0.025>
   quaternion
   sqr
   max_iteration 8
   precision 15 
   texture { T_Stone1 }   
   rotate <0,15,0>
}

Sources /Fuentes: WikiPedia
http://paulbourke.net/exhibition/povfrac/final/

No comments:

Post a Comment