The Persistence of Vision Raytracer (POV-Ray).
This is the legacy Bug Tracking System for the POV-Ray project. Bugs listed here are being migrated to our github issue tracker. Please refer to that for new reports or updates to existing ones on this system.
Attached to Project: POV-Ray
Opened by Timwi - 2013-03-24
Last edited by William F Pokorny - 2017-04-21
Opened by Timwi - 2013-03-24
Last edited by William F Pokorny - 2017-04-21
FS#282 - Unrendered region should be transparent, not black
When rendering only a region of a file, using the command-line options +sc/+sr/+ec/+er, the area of the image that is excluded comes out as black in the final PNG.
Expected behaviour is for it to be transparent.
The behavior is expected. The pixels are never filled, as you explicitl requested them to not be renderd. The background in a scene only applies to pixels rendered.
This report is not referring to the background in a scene at all. The unrendered region should simply always be transparent — after all, as you correctly pointed out, it is not rendered. It should not be filled with black.
Please reopen as the closer misunderstood the bugreport.
Did you read the response to your report 283?
Report 283 is completely unrelated to this one. Report 283 is about “background { ... }”. This one is not. This one is about +sc/+sr/+ec/+er.
But to answer your question, yes, I read it, and I tried +UA, and it still comes out as opaque black.
I think it is reasonable to expect unrendered portions of the image to come out transparent when alpha support is enabled for the output file. After all, the preview window also still shows the checkerboard pattern in those regions. I therefore re-opened this issue as a feature request.
I agree, it would be a useful feature. Of course, we had been discussing if we want a full image generated for a partial render or not for a long time anyway. Once we add a choice for that, we can also change the current behavior.
Just an opinion to consider: outputting a partial render with transparent unrendered parts can be extremely useful. In cases when a small part of the image changes, and the rest stays the same (this is ok if there's no radiosity and reflections), rendering speed can be significantly increased if only the changing part is rendered, and then the partial image is composited over a single render of surroundings. Let's say, a render of animation that includes a rotating or morphing object in static environment (common in scientific presentations). Having a transparent background makes the compositing a trivial operation. The same technique can be used to distribute rendering across different machines (such as ad-hoc cluster over ssh): chunks can be easily merged if the unrendered parts are transparent.
Now tracked on github as issue #279.