Questions tagged [povray]

POV-Ray is a free open-source ray-tracing program which accepts a scene description in a textual programming-like language and renders an image with lighting, shadows, reflections, refraction and other visual effects calculated automatically.

POV-Ray (Persistence of Vision Raytracer) renders scenes described by a scene description language. Conventional computer graphics techniques (scan-line techniques) loop through each object to be rendered and calculate where and how to draw them on the image. In contrast, ray tracing loops through each pixel in the image, and fires a ray from the viewpoint (the eye) back through the pixel into the world to find out what object the ray will eventually hit. The color of that object is assigned to the pixel. If the object has a reflective surface, another ray is fired off in the appropriate direction and a component of its color is added to the pixel. Similarly, surfaces that refract light generate another ray through the transparent material and a component of the color it calculates is also added to the pixel.

POV-Ray is available from www.povray.org and is free to use. The program itself cannot be embedded into commercial software without permission but the images created are owned by the creator of the scene file. See www.povray.org for details on the licensing.

96 questions
12
votes
1 answer

Creating a sphere that looks like Earth

How can you create a sphere in POV-Ray that looks like Earth? Presumably the answer would involve taking some kind of map of Earth and somehow wrapping it around a sphere as a texture. A Google search got me as far as…
rwallace
  • 31,405
  • 40
  • 123
  • 242
11
votes
4 answers

Running Blender python script outside of blender

I want to visualize some scientific data, which is, at the moment, only an animation of some spheres with different colours and sizes. I already created a script within Mathematica which creates the input for POV-Ray. My problem is, that I'm not…
Stefan
  • 2,460
  • 1
  • 17
  • 33
9
votes
3 answers

POV-Ray: Setting output resolution or width/heigh ratio within the script

I have a code that generates a bunch of *.pov files for visualization using POV-Ray. Unfortunately, they are of different aspect ratios (width/height). That information is in the script in the form of the up/right vectors. However, when I render a…
ANSI C Mastah
  • 149
  • 1
  • 6
8
votes
3 answers

Plot 3D surface that is not the graph of a function

I have a 3D data set of a surface that is not a function graph. The data is just a bunch of points in 3D, and the only thing I could think of was to try scatter3 in Matlab. Surf will not work since the surface is not a function graph. Using scatter3…
db1234
  • 797
  • 2
  • 11
  • 28
5
votes
3 answers

Convert/export graphics from Pov-Ray in 2D vector format

By default, Pov-Ray renders a bitmap file. Is there a way to convert or export the same image, in a vector format like eps, pdf, svg etc?
Cristi Stoica
  • 169
  • 2
  • 7
4
votes
0 answers

Superimpose objects on a video stream using Python and POVRAY

I am using Vapory which is a wrapper Python library for Povray. It allows using Python functions to manipulate typical Povray operations. I want to superimpose 3D models in every frame of my video stream. The way to do this in Vapory is the…
Schütze
  • 1,044
  • 5
  • 28
  • 48
4
votes
1 answer

Povray: Can an object only interact with some light sources?

Consider a sphere, with a "spotlight" light source inside. I would like the sphere not to interact with that particular "spotlight" lightsource, but it should interact with all the other light sources. I know that this is not realistical, I would…
thomasfermi
  • 1,183
  • 1
  • 10
  • 20
4
votes
1 answer

Looping through 9000 individual .pov files to create 9000 individual png

This question has been asked a lot but no solution seems to match the questions asked! I have 9000 pov ray files numbered frame0001.pov frame0002.pov frame0003.pov ... frame9000.pov They each define a frame of an animation (that is put together from…
CharlieSmith
  • 311
  • 4
  • 12
4
votes
2 answers

Povray transparent background with shadows

I'd like to use Pov-Ray to generate pictures that can be used in a website on any background color. The pictures need to have a transparent background, but with reflection and shadows cast on a transparent plane surface. In Pov-Ray (3.7), you can…
Martijn
  • 3,696
  • 2
  • 38
  • 64
4
votes
2 answers

Sample configuration to speed up POVRAY image creation

We're using POV-Ray to generate some 80 images per run, which we stitch together to form two moving GIF files (two 360 degree views of a scene). We're looking for ways to speed-up this image creation (on a headless linux server) as much as…
Tim
  • 19,793
  • 8
  • 70
  • 95
4
votes
1 answer

Is this a Povray precision loss artifact?

I'm experimenting with procedural terrain generation of entire planets. This means I tend to render very big objects from very close up, and as a result I occasionally run into precision loss issues. My latest terrain generator is producing images…
David Given
  • 13,277
  • 9
  • 76
  • 123
3
votes
1 answer

Texturing a sphere with an image so that it faces the camera

I created a basic sphere, and I have an image with roughly a 2:1 aspect ratio that I'm using as a texture. The actual image is a client's logo, so the PNG of the UK flag is a stand in. Using the basic sphere demo code and applying the (scaled) image…
Michael A
  • 4,391
  • 8
  • 34
  • 61
3
votes
1 answer

Add text to sphere surface

I am trying to add some text to a sphere - labels on nodes of a graph. So for example, in the graph below, I'd like each node labelled. #include "colors.inc" global_settings { assumed_gamma 1.0 ambient_light Gray } light_source {…
user2957945
  • 2,353
  • 2
  • 21
  • 40
3
votes
1 answer

POVRay "Contour line" Texture

Can someone please tell me how I can do the following with a POVRay texture... //PseudoCode texture { pigment { if(y mod 5 == 0) { color rgb 0 } else { color rgb 1 } } } ie - I want to get the…
Basic
  • 26,321
  • 24
  • 115
  • 201
3
votes
1 answer

Plotting CMYK color space as 3D color solid

I am using the following POV-Ray loop to plot sRGB coordinates in other color spaces. The loop only generates points along the outer surface, and then connects them with triangles. Since the sRGB space is a sort of twisted cube, that means 6 outer…
posfan12
  • 2,541
  • 8
  • 35
  • 57
1
2 3 4 5 6 7