Author Archives: bgimeno

Curved polygon

Consider a polygon of N sides. On one side of this polygon draw a semicircle of diameter less than the length of the side. Draw an arc with center on one of the vertices adjacent that connects to the first semicircle. The process is repeated on each side. If the first semicircle is located outside the shape is … Continue reading

Posted in Sin categoría | Leave a comment

Slices

Possibly one of the first macros that were written for Pov-Ray when  the conditional statements were implemented, although I don’t know who was the first to devise it or write it. My CAT macro for scanning of objects is based on the idea that was used here.  

Posted in Macros | Tagged | Leave a comment

Color Wheel

This macro was originally published in the POV-Ray user forum  in August 2011 and is a simple modification of the macro included in “colors.inc” to switch from RGB to HSV. This macro returns the pigment located at ”A” degrees of the input pigment into the color wheel. It is valid to calculate complementary colors. triads … Continue reading

Posted in Macros | Tagged , | Leave a comment

Trigonometry in Pov-Ray

One of my worst vices in math has always been having to rethink and rewrite the same formulas in different scenes for simple math calculations in POV-Ray. See here, a simple macro to calculate angles, sides and areas of regular polygons.  

Posted in Macros | Tagged , , , , | Leave a comment

The Persistence Of Vision Ray-Tracer

The Persistence of Vision Ray-Tracer creates three-dimensional, photo-realistic images using a rendering technique called ray-tracing. It reads in a text file containing information describing the objects and lighting in a scene and generates an image of that scene from the … Continue reading

Posted in Sin categoría | Tagged , , | 2 Comments