P3D v4 Purple artifacts when converting PSD to DDS - help, please!

#1
I am creating my VC textures in Photoshop for an add-on that I'm developing. When I convert my textures to DDS, I get purple artifacts all over the texture and they really show up in P3D. Here are a couple of screenshots from Photoshop. Sample_01 shows the PSD:

sample_01.jpg

Sample_02 shows the same region, but in the DDS:

sample_02.jpg

And finally, Sample_03 shows the same area in P3D, where it's much clearer to see the purple hue mucking up my texture:

sample_03.jpg

I'm early in the texturing phase, so this PSD only has a couple layers and no alpha. I've tried saving the DDS straight out of Photoshop via the NVidia plugin; bringing the PSD into ImageTool and saving out the DDS; and using command line to create the DDS via ImageTool. In each case I get these purple blemishes.

Has anyone encountered this before? Any solutions would be hugely appreciated.
 

tgibson

Resource contributor
#2
Certain color combinations just do not convert well, and you get such artifacts. Since your color is very close to gray, try removing all color from the image (i.e. grayscale) and try the conversion again. Sometimes things like reducing the saturation may allow you to avoid going all the way to gray.
 
#4
Certain color combinations just do not convert well, and you get such artifacts. Since your color is very close to gray, try removing all color from the image (i.e. grayscale) and try the conversion again. Sometimes things like reducing the saturation may allow you to avoid going all the way to gray.
Thanks for the feedback. I took my texture and converted it to grayscale, then generated the DDS again. This reduced the purple artifacts some, but overall they're still very present.

This wiki article explains why you sometimes get purple colors due to the compression:

https://www.fsdeveloper.com/wiki/index.php?title=DXT_compression_explained
Thanks, Arno. All of the colors in the texture I'm working with are grayscale at this point, so I'm guessing they're on "one linear line in the colour space" that's referenced in the article. If that's true, I'm surprised that the compression artifacts come back purple-ish.
 
#5
Hey there Mike, I figured I'd reach out because we were discussing this the other week and looking at the images, it makes me wonder, what DDS format are you using? If you're using DXT1 or 5, have you tried 32 bit to see if the issue remains?

I agree with Arno, I've also seen something similar with texture compression in my aircraft previously, though 32 bit doesn't have as much of an issue.
 
Top