Maniphest T56248

DDS Normal maps not rendering for certain DDS versions
Confirmed, NormalKNOWN ISSUE

Assigned To
None
Authored By
Geoff Gerber (Heffay)
Aug 6 2018, 1:06 AM
Tags
  • BF Blender
  • Cycles
  • Render & Cycles
Subscribers
Bastien Montagne (mont29)
Brecht Van Lommel (brecht)
Geoff Gerber (Heffay)
mike (mikeblend)

Description

System Information
Win10, Nvidia 970

Blender Version
Broken: 2.79b (I haven't tested on previous versions, but this has been an issue I've run into for a while.)

Summary:
When using a normal map from some DDS files, Blender can display the image fine in UV/Image Editor, but when plugged into a normal map node, the normals don’t show. If you take that DDS file and open/resave in GIMP, the normals do show. If you take that DDS file and pack it into the project, the normals also work properly.

Steps to reproduce:

  • Extract the linked Blend file, which contains a simple cube and node layout.
  • Set the view port to rendered mode.
  • Attach the brick_a_ddn-gimp.ddsImage Texture node to the Separate RGB node (DDS mixes up R and G for normals). The rendered image should show some nice pretty normals.
  • Attach the brick_a_ddn-orig.dds (ATI2 DDS File) Image Texture node to the Separate RGB node. The normals disappear, and you just see a flat surface on the cube.
  • Pack the brick_a_ddn-orig.dds into the project (UV/Image editor, open the brick_a_ddn-orig.dds file, and go Image -> Pack Image).
  • Refresh the viewport, and poof, you have normals again.

Also attached is a tif file converted from the orig DDS, which also works properly.

So while I have a workaround to get by this issue, it’s not ideal. I’m setting up a texture library, and don’t want to have to muddle with the original files to make them work properly. Nor do I want to pack all the images into the Blend file, since if I want to modify the textures in the future, it won’t apply to all the existing Blend files.

Blend file (zipped)

Event Timeline

Geoff Gerber (Heffay) created this task.Aug 6 2018, 1:06 AM
Bastien Montagne (mont29) assigned this task to Brecht Van Lommel (brecht).Aug 6 2018, 9:02 AM
Bastien Montagne (mont29) lowered the priority of this task from 90 to 50.
Bastien Montagne (mont29) added a project: Cycles.
Bastien Montagne (mont29) added subscribers: Brecht Van Lommel (brecht), Bastien Montagne (mont29).

That’s probably and OIIO library issue, @Brecht Van Lommel (brecht)?

Dalai Felinto (dfelinto) removed Brecht Van Lommel (brecht) as the assignee of this task.Dec 23 2019, 4:36 PM
Dalai Felinto (dfelinto) added a project: Tracker Curfew.
Richard Antalik (ISS) removed a project: Tracker Curfew.Feb 10 2020, 11:09 PM
Richard Antalik (ISS) changed the subtype of this task from "Report" to "Known Issue".
Brecht Van Lommel (brecht) added a project: Render & Cycles.Jun 18 2020, 6:16 PM
mike (mikeblend) added a subscriber: mike (mikeblend).Sep 13 2021, 12:40 AM
Aras Pranckevicius (aras_p) mentioned this in T101405: DDS image format improvements.Sep 27 2022, 3:02 PM