DDS Texture Alpha Problem (DXT1 compression) #18653

Closed
opened 2009-04-29 20:34:02 +02:00 by Tony DiRienzo · 8 comments

%%%I've tested the attached file in both Blender 2.48a and Blender 2.49 RC1 (Linux i386, Python 2.5 dynamic). In 2.48a the DXT1 texture displays solid when it should have a binary alpha channel. In 2.49 RC1, the entire DXT1 texture disappears in game (which is also not the correct functionality).

Also, alpha channels are not displayed properly in the UV editor for DDS textures using the DXT1, DXT3, or DXT5 methods of compression.

You all are probably more knowledgeable on the subject than I am, but from what I understand, DXT1 uses 8-bit color channels and a 1-bit alpha channel.

I've compiled what information I have been able to find on DDS textures here:
http://blenderartists.org/forum/showthread.php?t=154090

Programming references I've found (just in case anyone should need them):

http://developer.nvidia.com/attach/6585
http://www.mindcontrol.org/~hplus/graphics/dds-info/
http://msdn.microsoft.com/en-us/library/bb943990(VS.85).aspx

The DDS files in the attached .blend were created using the GIMP DDS plugin:
http://nifelheim.dyndns.org/~cocidius/dds/
("apt-get install gimp-dds" on Ubuntu)%%%

%%%I've tested the attached file in both Blender 2.48a and Blender 2.49 RC1 (Linux i386, Python 2.5 dynamic). In 2.48a the DXT1 texture displays solid when it should have a binary alpha channel. In 2.49 RC1, the entire DXT1 texture disappears in game (which is also not the correct functionality). Also, alpha channels are not displayed properly in the UV editor for DDS textures using the DXT1, DXT3, or DXT5 methods of compression. You all are probably more knowledgeable on the subject than I am, but from what I understand, DXT1 uses 8-bit color channels and a 1-bit alpha channel. I've compiled what information I have been able to find on DDS textures here: http://blenderartists.org/forum/showthread.php?t=154090 Programming references I've found (just in case anyone should need them): http://developer.nvidia.com/attach/6585 http://www.mindcontrol.org/~hplus/graphics/dds-info/ http://msdn.microsoft.com/en-us/library/bb943990(VS.85).aspx The DDS files in the attached .blend were created using the GIMP DDS plugin: http://nifelheim.dyndns.org/~cocidius/dds/ ("apt-get install gimp-dds" on Ubuntu)%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%They appear to be correct for me. They look exactly the same in Blender as they do the BGE, and I don't see anything obviously wrong with any of them. Unless is the first one supposed to have alpha on the black part?

OS: Windows 7 Beta
GFX: NVIDIA 8600m GT
REV: 20135%%%

%%%They appear to be correct for me. They look exactly the same in Blender as they do the BGE, and I don't see anything obviously wrong with any of them. Unless is the first one supposed to have alpha on the black part? OS: Windows 7 Beta GFX: NVIDIA 8600m GT REV: 20135%%%
Author

%%%Yes, the first image is supposed to have alpha on the black part.

As I stated, the alpha channels are not displayed properly in the UV editor, in Blender, or in the BGE. In order to see the image displayed properly, you will need to unpack it and view it with a DDS supporting image editor, such as The GIMP with Gimp-DDS installed (there are links for DDS plugins for popular image editors in my blenderartists thread)

I've tested with 2.49 RC2, and you are correct that the texture is once again appearing in Blender and the BGE the same (wrong) way again. In the Linux 2.49 RC1 the image was disappearing in the BGE.%%%

%%%Yes, the first image is supposed to have alpha on the black part. As I stated, the alpha channels are not displayed properly in the UV editor, in Blender, or in the BGE. In order to see the image displayed properly, you will need to unpack it and view it with a DDS supporting image editor, such as The GIMP with Gimp-DDS installed (there are links for DDS plugins for popular image editors in my blenderartists thread) I've tested with 2.49 RC2, and you are correct that the texture is once again appearing in Blender and the BGE the same (wrong) way again. In the Linux 2.49 RC1 the image was disappearing in the BGE.%%%

%%%Is that working in Blender 2.5beta3?%%%

%%%Is that working in Blender 2.5beta3?%%%
Member

%%%For reference, I submitted a fix for this, about 9 months ago, for Blender 2.5:

http://projects.blender.org/tracker/?func=detail&aid=21590&group_id=9&atid=127%%%

%%%For reference, I submitted a fix for this, about 9 months ago, for Blender 2.5: http://projects.blender.org/tracker/?func=detail&aid=21590&group_id=9&atid=127%%%

%%%Armorilia's patch (except for the nvtt sync) has been committed by jesterKing in r36541. Could you verify that the problem is fixed for you?%%%

%%%Armorilia's patch (except for the nvtt sync) has been committed by jesterKing in r36541. Could you verify that the problem is fixed for you?%%%

%%%The file looks correct in 2.63, so I'm closing this bug report. If you still have issues, please open a new bug report.%%%

%%%The file looks correct in 2.63, so I'm closing this bug report. If you still have issues, please open a new bug report.%%%

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
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
4 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#18653
No description provided.