POV-Ray / povray

The Persistence of Vision Raytracer: http://www.povray.org/
GNU Affero General Public License v3.0
1.35k stars 282 forks source link

Normal for the prism's bezier spline mode is reversed from other spline types & lathe uses. #65

Closed wfpokorny closed 6 years ago

wfpokorny commented 8 years ago

The issue is that the normal for the prism bezier spline is reversed from all other spline uses in both lathes and prisms. See the attached tarball for the README, test cases, some pre-rendered.

PrismBezierNormalFlipped.tar.gz

wfpokorny commented 8 years ago

New version of test cases where both prism ends are visible to the camera given the discovery here:

http://news.povray.org/57533e83%40news.povray.org

PrismBezierNormalFlipped_V0.1.tar.gz

LeForgeron commented 8 years ago

There is two issues, separate:

wfpokorny commented 7 years ago

Let us add a third normals issue to this github issue...

In the attached image we should not see the red interior texture at all, but we do on the text object sides.

textobjectsidenormalflipped

LeForgeron commented 7 years ago

For the text object, It might be fixed with

https://github.com/LeForgeron/povray/commit/2595932240ea8caa99b2a9c610c8af9d90ff0558

(yep, it is !)

wfpokorny commented 7 years ago

Thanks Jérôme. Now that you mention it I do remember your version of POV-Ray getting this fix... I did it in my pull request as an afterthought to the performance changes which where my primary interest.

wfpokorny commented 6 years ago

Closing.

Ran all the tests again plus additional text cases to look at the normal changes there and all is fixed with e7aac79.

For anyone picking up these tests again note a few stacked ring orthographic camera ones are noisy at the edges. Further there have been change from say v370 to v380 - the ambient default for example which affects the test case results herein.