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
3
votes
1 answer

Merge povray's partial images of arbitrary size

Starting situation: Using povray I create 4 partial images of a scene. povray +SR1 +ER200 +SC0 +EC200 +W400 +H400 +OPART1 povray.pov povray +SR1 +ER200 +SC201 +EC400 +W400 +H400 +OPART11 povray.pov povray +SR201 +ER400 +SC0 +EC200 +W400 +H400…
Nerian
  • 15,901
  • 13
  • 66
  • 96
3
votes
1 answer

Broken lathe object

I'm a beginner of Pov-Ray and I'm trying to create a lathe object in Pov-Ray, and it looks broken somehow. Could someone give me some suggestion on how to fix it? The code I used to create is #include "colors.inc" global_settings { …
xslittlegrass
  • 4,826
  • 4
  • 26
  • 32
3
votes
2 answers

POVRAY for windows: using the command line to render several pov files

I am trying to automate the rendering of several pov files so I made a simple script that runs all the pov (pvengine.exe...etc) in a for loop. However, this doesn't work since the GUI editor always comes up so that I have to manually close it down…
dm76
  • 4,130
  • 8
  • 35
  • 46
3
votes
1 answer

How can I keep the same side of a box perpendicular to the camera location in povray?

I have a box object in povray defined by two 3 dimensional vectors. V1 specifies the top left of the box while V2 is the bottom right of the box. On one of the sides of the box is a jpeg. I am trying to figure out how to rotate the box when the…
Aaron
  • 31
  • 1
3
votes
1 answer

How do you wrap an image around a box in POV-Ray?

I am trying to build a very simple scene of a couple of Christmas presents with wrapping paper wrapped around them. Here is how I'm trying to do this but the image (wrapping_paper.jpg) just gets mapped onto the box face and then "extruded" in the Z…
Richard Hurt
  • 2,049
  • 24
  • 32
3
votes
2 answers

How to compute normal vector to least square plane in PovRay only

Is it possible to calculate normal vector to a plane defined by set of points using PovRay only (proper set has more than 3 points)? At the moment I'm using external program that computes via Jacobi eigenvalues of a least square plane. Still it…
Kris_R
  • 2,738
  • 3
  • 20
  • 21
2
votes
1 answer

Refraction for object { mesh {...}} surface shows artifacts

We want to render a parametrized surface in front of a grid plane and observe the transformation of the grid due to refraction happening at the surface. Our surface is in this simple example a 2D normal distribution which we will view directly from…
halirutan
  • 4,281
  • 18
  • 44
2
votes
0 answers

Problem with a POV-Ray algebraic surface (undesired line of black points)

Here is the POV-Ray image I get with the code below. As you can see there is a vertical line of black points which has nothing to do here. It goes away if I remove the isosurface. Do you know how can I get rid of these points? #version…
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
2
votes
2 answers

Calculate image height based on image width in Povray?

To render an image that is 1000px wide and 1500px high, I have to pass both variables from the command line: povray scene.pov Width=1000 Height=1500      (or povray scene.pov +W1000 +H1500) It would be much more practical to just write povray…
Watchduck
  • 1,076
  • 1
  • 9
  • 29
2
votes
1 answer

POV-Ray 2D gradient (polygon)

So, what I want to do is apply a color gradient on a custom 2D polygon and I can't find anywhere instructions/examples on how to do it (all I can find are 3D ones). Specifically, I want to do this: Also in general, I would like to know how to apply…
Monochromatic
  • 172
  • 13
2
votes
0 answers

Povray prism not closed warning

I have a prism in povray, but I keep getting a warning: Parse Warning: Prism not closed. Ignoring it. I don't understand this, start coordinate is the same as the last one. What am I doing wrong? It should be a curve I am subtracting from another…
André
  • 750
  • 11
  • 24
2
votes
1 answer

Blender render " location: and " UnboundLocalError " with Pov Ray addon

I am not sure this is the best place the ask but here I go... I am trying to render an image with the Pov ray addon for Blender 2.79b. When I do so, it just shows me an ugly checkerboard. After some goofing around I clicked the info tab and it…
Tyler
  • 23
  • 1
  • 5
2
votes
1 answer

POV-RAY code conversion to Python's Vapory

Here, I am trying to convert some POV-Ray code to Python. I'm using the VAPORY module. Especially, the part scale <4/3,1,1>*1.75 and pigment{ color rgb<1,1,1>*1.1 } is highly confusing. Can't figure out how to add *1.75 and *1.1 into the Python…
Anay Bose
  • 880
  • 1
  • 14
  • 24
2
votes
1 answer

POVRay doesn't show object behind difference

I have a POVRayfile which creates this cone using Mesh2: and I would like to cut a piece out of it, so I can see inside. For this I'm using an intersection with these 3 boxes: union { box { <0,0,0> <-100,-100,100> texture { …
Stein
  • 3,179
  • 5
  • 27
  • 51
2
votes
0 answers

POV Ray Rendering fails

I am trying to render this code using POVRay 3.7: #include "colors.inc" #include "glass.inc" #include "golds.inc" #include "metals.inc" #include "stones.inc" #include "woods.inc" #include "shapes.inc" #include "textures.inc" #include…
Sean
  • 789
  • 6
  • 26