Niah Larsson
LMC Content Creator
Join date: 8 Mar 2008
Posts: 27
|
02-19-2009 03:45
I uploaded textures which I saved as png (tried both interlaced & non interlaced) in PS. I uploaded them and they are fine.
When I then double checked by saving them to my hard drive and tried to open in PS they go crazy, showing a white background instead of transparent and have multi coloured borders and pixel fractions around them.
What could the issue be .. never seen anything like it. If you have any idea how to fix I would more than grateful!!!!
TY Niah
I just tried saving as .tga (32bits/pixel) ... now they are fine in-world but turn up with a solid white background when I save them and open in PS ..... ?
_____________________
Lilleth Mills Couture 
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
02-19-2009 04:15
That is a bug in Photoshop, it likes to write random garbage into "invisible" sections of an image when it saves to PNG. It's most noticeable when you have sharp edges like paths and shapes. The junk pixels won't matter in world because the alpha value hides them.
Because SL only offers texture saves to TGA at the moment, a download back from SL will let you see Photoshop's bugginess in its full glory. If you scoot over to the channel palette, make the alpha visible and set it to 100% opacity, you'll see that the intended outlines are still intact.
ETA: to work around this bug, I use ImageMagick, with a command like:
convert foo.tga foo.png
Once shuffled back to PNG, Photoshop will treat the alpha channel as layer transparency instead of a separate channel like it does with TGA, and the scariness goes away.
|
Niah Larsson
LMC Content Creator
Join date: 8 Mar 2008
Posts: 27
|
02-19-2009 04:34
TY Victoria  I can restore the original alpa .. but how do I explain that to my customers who buy them in-world and freak when they open them ? .. Looks like I am going to zip the files and make them available for download just in case. But are you saying that people using Gimp or PSP won't have that issue? TY, Niah
_____________________
Lilleth Mills Couture 
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
02-19-2009 05:01
As far as I've seen it's only a Photoshop quirk, even Illustrator doesn't make that mess when saving PNGs created there.
I did just try making some simple shapes in PS, saved to both PSD and PNG from there, then loaded up the PSD in Gimpshop and saved another PNG for comparison. After converting both PNGs to TGA with convert, the PhotoShop-sourced version displayed those artifacts but the Gimp-sourced one was clean.
But yes, a zip might be a nice thing to do for customers, then they can work with a version of your texture that hasn't been subjected to the JPEG2K reduction too.
ETA: I don't have PSP for testing.
|