POV-Ray / povray

The Persistence of Vision Raytracer (POV-Ray)
https://www.povray.org/
GNU Affero General Public License v3.0
1.37k stars 283 forks source link

Artifacts rendering a prism with beziers #399

Closed JohnCC330 closed 4 years ago

JohnCC330 commented 4 years ago

261 # Summary

When rendering prisms with Bezier curves, I seem to get artifacts rendering.

Environment

Steps to Reproduce

I created a POV include using the export from Inkscape. I rendered those in a scene. The original inkscape file contained a text, the text was 'decomposed' to paths to enable exporting.

Expected Behavior

Nice render of the text

Actual Behavior

Several artifacts deformed the characters in the render

Render Settings

povray +I"file.pov" +P +A0.03 +W1024 +H768

Scene

#include "colors.inc"
#include "logo_subtext.pov"

camera {
    location <100, 100, 100>
    look_at <100, 0, 50>
    up <0, 1, 0>
}

light_source {
    <0, 100, 20>
    color <1, 1, 1>
}

object {
    path113
    pigment{ White }
    rotate <0, 0, 0>
}

I've attached Screenshot_2020-06-24_03-24-23.png (detail from the render by POVRAY) Screenshot_2020-06-24_03-26-27.png (suspecting the coordinates created by Inkscape, I made a simple viewer, just 'connecting the dots'. i.e. the coordinates in the table to check if the coordinates didn't contain strange values. Note that the viewer shows the character upside-down (it's 03:30 AM) logo_text.pov.gz is the complete Inkscape export, I used only path113 in the scene above

logo_text.pov.gz

Screenshot_2020-06-24_03-26-27

Screenshot_2020-06-24_03-24-23

JohnCC330 commented 4 years ago

Solved. Adding 'sturm' to the prism definition made the problem go away. Maybe it would save some time if 'sturm' were mentioned in the prism description more prominently.