Flame is transparent together with the background #110607

Closed
opened 2023-07-29 11:59:28 +02:00 by Shoya-Kudo · 3 comments

System Information
Operating system:Widows11 home 64bit
Graphics card:12th gen intel(r) core(tm) i7-1260p 2.10 ghz

Blender Version
Broken: 3.6

Short description of error
When I used Cycles and tried to render the flame as a background transparent material in PNG format RGBA, the flame as well as the background were transparent together. Please help.

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

**System Information** Operating system:Widows11 home 64bit Graphics card:12th gen intel(r) core(tm) i7-1260p 2.10 ghz **Blender Version** Broken: 3.6 **Short description of error** When I used Cycles and tried to render the flame as a background transparent material in PNG format RGBA, the flame as well as the background were transparent together. Please help. **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible).
Shoya-Kudo added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-07-29 11:59:28 +02:00
Member

Hi! looks like the flame is rendered correctly here both in 3.6 and 4.0 (I cleared bake and re-baked 1 frame).

The file itself opens with a baked cache path /AppData/Local/Temp/blender_a03632/cache_fluid_4b85f272/, could you go to your user AppData folder and check if this cache exists?

图片

Hi! looks like the flame is rendered correctly here both in 3.6 and 4.0 (I cleared bake and re-baked 1 frame). The file itself opens with a baked cache path `/AppData/Local/Temp/blender_a03632/cache_fluid_4b85f272/`, could you go to your user AppData folder and check if this cache exists? ![图片](/attachments/cc3b411d-c80d-450a-844a-e359c51258dd)
107 KiB
YimingWu changed title from About transparent background to Flame is transparent together with the background 2023-07-29 15:29:40 +02:00
Author

Thanks for the reply. I just checked and the cache itself is there. When I do the background transparency, I can render it. But when I download it and open it as a PNG, the flame as well as the background is gone.

Thanks for the reply. I just checked and the cache itself is there. When I do the background transparency, I can render it. But when I download it and open it as a PNG, the flame as well as the background is gone.
Member

This is actually a limitation of PNG files themselves. Blender's render engines, including Cycles, output associated (premultiplied) alpha. The PNG specification states that PNG files use unassociated (non-premultiplied) alpha, and that associated (premultiplied) alpha must be converted.
https://www.w3.org/TR/png/#6AlphaRepresentation

The PNG specification says

If the alpha value is zero, output black (zeroes).

when converting premultiplied alpha to PNG's non-premultiplied format.
https://www.w3.org/TR/png/#12Alpha-channel-creation

It is recommended to use a file format that supports associated (premultiplied), such as OpenEXR, instead.

As this is a file format limitation, and not a bug, I'll go ahead and close this report.

This is actually a limitation of PNG files themselves. Blender's render engines, including Cycles, output associated (premultiplied) alpha. The PNG specification states that PNG files use unassociated (non-premultiplied) alpha, and that associated (premultiplied) alpha must be converted. https://www.w3.org/TR/png/#6AlphaRepresentation The PNG specification says > If the alpha value is zero, output black (zeroes). when converting premultiplied alpha to PNG's non-premultiplied format. https://www.w3.org/TR/png/#12Alpha-channel-creation It is recommended to use a file format that supports associated (premultiplied), such as OpenEXR, instead. As this is a file format limitation, and not a bug, I'll go ahead and close this report.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-07-30 05:45:57 +02:00
Sign in to join this conversation.
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
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#110607
No description provided.