Page MenuHomeFeedback Tracker

Importing png as texture breaks the texture and fills empty space with white color
Closed, ResolvedPublic

Description


^ This is what the PNG looks like after importing

The PNG before importing:

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General

Event Timeline


Example of 2 images, one of them works

The one that works:
I added a barely visible overlay on the edges of image

Raw file(works):

Raw file(does not work)

Seems like some weird compression issue, I tried changing the settings in reforger workbench for importing, but none of them had the desired effect of NOT ruining the image

Geez changed the task status from New to Assigned.Apr 4 2023, 11:55 AM
Geez closed this task as Resolved.Apr 12 2023, 12:14 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello GlutenFreeVapes.
According to the devs you need to select correct channel you want to visualize, see the picture.

Regards,
Geez

The issue isn't in displaying the texture in the workbench.
The issue is the texture loads wrong.

Here's a demonstration from in-game comparision:
(notice how the outside of the reticle is fully colored


Here are the textures I used to demonstrate:

Here are the 2 textures compared in windows:

Notice the circle I have to draw around the texture13 to make it invisible in-game.
I don't know the specifics, but this is like a compression issue, the workbench compresses the alpha0 space when it's imported and changes it to RGBA(255,255,255,255) (I tried changing the import settings, nothing worked)

Geez added a comment.Apr 14 2023, 10:58 AM

Hello again.
Further info from the devs:

PNG has issues with alpha channel, preferred format is to use TIFF in case of textures with alpha channel. According the images it looks that this could be the case

Can you please try with the TIFF format?

Tiff works 👍 Thanks!