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
1
vote
0 answers

How can I solve this problem with render using vapory on python?

I was just learning how to use povray with python. I used a simple code found online exploiting vapory but it doesn't work. HERE IS THE CODE from vapory import * camera = Camera( 'location', [0,2,-3], 'look_at', [0,1,2] ) light = LightSource(…
1
vote
0 answers

How can I place my scene with a background of the Andromeda galaxy

I'm rather new at povray and I've been struggling with just getting a simple background image behind my rendering. I can create spheres and atmospheres and mapping clouds and surfaces, but I can't make an image simply show up behind my planet. I've…
Walt Howard
  • 7,676
  • 1
  • 16
  • 11
1
vote
0 answers

PovRay rendering stops when simulating Gaussian beam passing through lens

I am trying to create a scene in PovRay where I have a Gaussian beam (tilted by 45°) passing through a lens with a focal point of 500mm, then reflecting off a flat surface. Rendering without the lens is no problem but at the point when I included…
Fabian
  • 11
  • 3
1
vote
1 answer

Why do my old Povray files not work in a new installation?

I have just installed Povray on a new computer. Suddenly, files that have always worked before produce weird errors. 6.pov should render this image of a cube. But apparently the #for gets confused for a variable: File: 6.pov Line: 21 File Context…
Watchduck
  • 1,076
  • 1
  • 9
  • 29
1
vote
1 answer

Povray: Different spacing in colors in seemingly equivalent color gradients

I have a rather particular question about color gradients in Povray. There are two polygons in 3D space and I want to have an even color gradient from green to red. I managed to determine the direction and the scale of the gradient to match the…
p6majo
  • 277
  • 2
  • 11
1
vote
1 answer

image_map in Pov-ray not working as expected

I would like to map an image I have to the face of a box in Pov-ray. The image's dimensions are 1500x1125 (Example Image) So I set up a scene with a light source above a camera looking at a box camera{location <3,1.8,0> look_at…
TheFluffDragon9
  • 514
  • 5
  • 11
1
vote
1 answer

Condition based on length of string

Using POV-Ray for Windows version 3.7, I wrote a script to render translucent cubes representing chemical elements: #declare H=difference { box { <-1, -1, 0>, <1, 1, 0.5> material { M_Glass } } …
Cee McSharpface
  • 8,493
  • 3
  • 36
  • 77
1
vote
1 answer

How to create an irregular round shape in vapory

I would like to render a large rock/boulder in vapory and currently I have a sphere with a stone texture. This looks ok but not very rock-like. Is there a way to create a more irregular or jagged round shape with vapory? Also if anyone can point me…
TheFluffDragon9
  • 514
  • 5
  • 11
1
vote
2 answers

Vapory Error: FileNotFoundError: [WinError 2] The system cannot find the file specified

I ran vapory sample code in github, but it has errors. Code from vapory import * camera = Camera( 'location', [0,2,-3], 'look_at', [0,1,2] ) light = LightSource( [2,4,-3], 'color', [1,1,1] ) sphere = Sphere( [0,1,2], 2, Texture( Pigment( 'color',…
Ping Zhang
  • 53
  • 4
1
vote
1 answer

How could I use POV-Ray with an .stl file for merge with object?

I have this povray code: #include "colors.inc" camera{ location <4, 4, -10> look_at 0 angle 36 } light_source{ <500, 500, -1000> White } plane{ y, -1.5 pigment{ checker Green White } } union{ box{ -1, 1 pigment{ Blue } } sphere{ 0,…
userpov
  • 13
  • 4
1
vote
0 answers

No shadows when rendering very small objects

I have a simple scene with a cylinder on a white plane, and two light sources that are far away at opposing angles. I'll be making thousands of these images with the light sources rotated or lowered a little bit each time, and the main purpose for…
Carter Day
  • 11
  • 1
1
vote
1 answer

From POV-Ray to rgl

I've followed this tutorial to export a POV-Ray graphic to a STL file, through Meshlab. I've also tried the export to the OBJ format. Everything seems to work fine from the creation of the POV-Ray graphic to the exporting in Meshlab. But then I've…
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
1
vote
1 answer

POV-Ray image map on a curved surface

First of all, I have this code which creates a curved surface that looks like a flying carpet. #include "colors.inc" camera { location <5,140,25> look_at <0, 0, 0> angle 7} light_source { <20, 20,…
Yun Tae Hwang
  • 1,249
  • 3
  • 18
  • 30
1
vote
2 answers

How do you loop a spline in POV-Ray?

Sigh! I wish this worked: // Spline Sine #declare SphereSine = union { #local Radius = 0.15; #local Amplitude = 2; #local Iterator = 0; #local Amount = 20; sphere_sweep { b_spline Amount, #for (Iterator,…
Kebman
  • 1,901
  • 1
  • 20
  • 32
1
vote
2 answers

How to pass infomation to POV-Ray from a shell script

How do I pass a variable from a shell script to POV-Ray? My desire would the ability to pass a variable as a command-line argument and then use that value in the .ini file or .pov file Something like POV-Ray +pass var=$imageNumber file.pov And then…