Fire not showing in saved PNG #96200
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#96200
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 780/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.98
Blender Version
Broken: version: 3.2.0 Alpha, branch: master, commit date: 2022-03-04 16:11, hash:
295d5c6ef5
Worked: Unknown
Short description of error
When rendering a smoke/fire simulation, the fire shows in Blender's image editor after rendering, but not in the saved image.
In this example screenshot, you can see the render result in Blender's image editor (on the left) and the saved image (on the right), opened with my default image viewer. I also tried another image viewer as well as GIMP, which both showed the same result, just like the Windows image preview. The grey background in the image viewer (as opposed to checkerboard) is the viewer's background color, not the actual color of the image, which is instead transparent.
Exact steps for others to reproduce the error
Thank you to all developers for your work on Blender, I really love this software!
Added subscriber: @AndreasBecker
Added subscriber: @PratikPB2123
Added subscriber: @OmarEmaraDev
Changed status from 'Needs Triage' to: 'Needs User Info'
I can't replicate this issue. Attached is the output PNG image I get and the file that follows your instructions. Does this image and file have the same issue you described? If not, can you attach the image and file you got?
fireTransparent.blend
Hi Omar,
for me, your file has the same issue I described in my original post.
I attached your file again after saving it on my system, maybe there is some difference between the two versions (your upload and mine) that causes this issue.
I'll also try to replicate this on my old laptop later. That laptop runs on Linux Mint and has an integrated GPU, so it shouldn't be quite different in that sense.
Edit: I tried on my Linux laptop now with Omar's file, but it also gave me the same result: It shows the fire as expected inside Blender after rendering, but when I save and open the image, the fire is gone.
Edit2: On my laptop, I have Blender 3.0.0 installed. It runs Linux Mint 20.3 Cinnamon and has an Intel Core i5 2430M with integrated graphics controller.
fireTransparent.blend
Are you sure it is just not related to how the application you use to view the image is handling alpha? Some applications don't handle different cases of alpha like premultiplication well. Does the image I attached above get viewed correctly for you or is it just the same?
Here is a screenshot of my saved render (left) vs. your image from above, both opened in the same application. As you can see, the cube in my render has sharp edges, whereas in your image, the fire shows up correctly.
Here is my render, just to check if that is displayed correctly for you.
And here is a full resolution screenshot of that same render in my viewer application
There seems to be a very faint hint of the fire in the image, but it's far less than in Blender.
Changed status from 'Needs User Info' to: 'Needs Triage'
Added subscriber: @Ethan-Hall
It may be related to: https://developer.blender.org/T81199
It seems like the image viewer and compositor perform some tone mapping that causes bright transparent values to contribute to the alpha. However, the alpha channel is not modified when saving the image. The same problem happens when using bloom and transparency, particularly when using EEVEE's bloom.
Note that you can save the render as an EXR. Then, when you load the image back into Blender, Blender will reintroduce the tone mapping to the alpha channel and you can use the image in the compositor as expected. Then if you save the composite without alpha, there will not be a discrepancy between Blender's internal image viewer and an external image viewer.
Also, node that if you enable
Convert Premultiplied
, the alpha is not effected in the same way.Added subscriber: @mano-wii
It's the same problem described in #81199 (Some effects [bloom, smoke, fire, ..] still don't save in PNG with transparent background (occlusion vs. emission)).
Basically, Alpha + Emission + PGN don't get along well together.
That's because an emission like fire, although visible, can still have alpha 0.0, and PNG sees this as invisible.
Maybe the PNG codec needs to be edited to do a correct emission + alpha conversion.
Closed as duplicate of #81199
@mano-wii I would like to see two additional checkbox options for the PNG RGBA format.