jMonkeyEngine / jMonkeyEngine/jmonkeyengine

DDS Loader issue with DXT3/DXT35 volume textures

Open
#1,301 25 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

I believe there is a problem loading DXT3/DXT5 volume textures exported from the NVidia Photoshop DDS plugin.

Issue 1: Loaded file appears to be very low quality and is perhaps missing the alpha channel. (just a guess).

Issue 2: When mips are generated through the plugin, texture is rendered all black.

Edit: These issues only occur when depth greater than 1. I found this when exporting a texture strip to volume. DDS plugin automatically creates z slices on the x axis

These issues where tested with the code snipped supplied by 1000ml here

I am supplying 4 files. DXT3/DXT5 are for the first issue, DXT5-MIPS is for the second. ARGB8888 is the expected result.

DDS issue.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied DDS issue.zip and the 3-D texture loading path exercised by the linked code snippet. Reproduce the DXT3/DXT5 cases with depth greater than 1, including DXT5 with generated mips, and compare them with the ARGB8888 expected result. Done means volume textures retain quality and alpha, and mipmapped textures are no longer rendered all black.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.