FIX 4 PROBLEM TEXTURES?

Report bugs, bug fixes and workarounds here.
Topic author
Tech Sgt. Chen
Posts: 187
Joined: 04.11.2003
With us: 21 years
Location: Northern NJ/USA

FIX 4 PROBLEM TEXTURES?

Post #1by Tech Sgt. Chen » 07.11.2003, 13:49

Texture Bugs

I just discovered a fascinating phenomenon with certain texture(s) that I initially thought was a bug in Celestia. While trying to replace certain JPEG textures with their transparent .PNG counterparts, I found that the .PNG's would not load. After investigating the matter, I could not find any logical reason for the failure. This lead me to investigate the textures themselves. After using several different graphics programs to view the textures, I remembered that one in particular would alert me if the file extension was incorrect. I loaded the PNG into the program (which supports DDS, PNG and virtually every other extension), but again could find no reason for the load failure. I decided to RE-save the texture (a fix for problem, web, graphics I inadvertantly discovered a while back) under the PNG extension. While saving the graphic, the program gave me the option to save the original transparencies which, of course, I checked off.
Though the textures did not show signs of corruption, re-saving them to their original format did the trick and now they load properly.

The program is Irfanview. It's free and can be found here:
http://www.irfanview.com/

Post Script: The texture discrepancy may have occurred during the download process or may have originated on the server. The point is that there were no outward manifestations of it at any time. If you have a problem texture, try this and see if it works! :|
Hi guys. Listen, they're telling me the uh,
generators won't take it, the ship is breaking apart and all that. Just, FYI.
(Athlon X2 6000+ Dual Core 3Ghz, 8GB DDR2-800, 500GB SATA 7200RPM HD, 580W,
GeForce 9600GT-512, 64Bit, Vista Home Premium)

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #2by Bob Hegwood » 08.11.2003, 06:48

That's EXACTLY what I have been doing...

I've had this problem with the Black Hole jpeg, and the new colored versions of the Deimos and Phobos textures. Seems that PhotoShop may be the culprit, but I'm not sure.

Thanks for letting others know that I'm not nuts when I tell an author that there's something wrong with the textures. Still don't know what the problem IS, but the FIX is a simple re-saving of the file in either jpg or png formats using IrfanView.

Take care, Bob
Bob Hegwood
Windows XP-SP2, 256Meg 1024x768 Resolution
Intel Celeron 1400 MHz CPU
Intel 82815 Graphics Controller
OpenGL Version: 1.1.2 - Build 4.13.01.3196
Celestia 1.4.0 Pre6 FT1

Guest

Post #3by Guest » 09.11.2003, 14:09

Yeah it sure was wierd Bob. I found the fix quite accidently and just on a "let's see what happens if I do this" basis. My laptop has a bad habit of placing the .JPE file extension on images instead of the more common .JPG tag. If I don't remember to change it before saving the image, it won't open up properly in some graphics programs. When I tried to open a texture in Photoshop, (on a different computer that doesn't share the image save problem) the program alerted that it did not recognize the file extension (even though it told me the extension was .PNG!), a file association that is supported by Photoshop. I don't know how to explain the phenom. Maybe seldon, Grant or one of the others can elaborate. I not sure this fix will be the answer for every properly tagged image that fails to load, but it worked for me.:|

Topic author
Tech Sgt. Chen
Posts: 187
Joined: 04.11.2003
With us: 21 years
Location: Northern NJ/USA

Post #4by Tech Sgt. Chen » 09.11.2003, 14:15

Oh rats! I forgot to log-in...
That was my post above Bob. Sorry about that!
I checked the option for Auto Log-In, but it doesn't work for me all the time. :oops:
Hi guys. Listen, they're telling me the uh,
generators won't take it, the ship is breaking apart and all that. Just, FYI.
(Athlon X2 6000+ Dual Core 3Ghz, 8GB DDR2-800, 500GB SATA 7200RPM HD, 580W,
GeForce 9600GT-512, 64Bit, Vista Home Premium)

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #5by granthutchison » 09.11.2003, 16:59

I'm by no means a texture expert, but here's a question that might help narrow down the possible problem. Are you guys opening the files into an image editor directly from your web-browser, and then saving them to disk, or are you downloading them straight to disk?
If you're doing the first, then it's possible your image editor is altering the file format in transit, and the solution would be to download the files straight to disk without ever opening them. If you're doing the second, then it's some hardware/OS/driver incompatibility specific to your machines, since others aren't having the problem.

Maybe you've thought of this already, but I thought I'd mention it.

Grant

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #6by Bob Hegwood » 09.11.2003, 18:44

Grant,

I'm downloading straight to disk, and I'm beginning to think that my problem is specific to my machine. (See the topic "At Selden's Request" elsewhere in this forum.

I'm also having graphics problems with Celestia 1.3.1Pre11 that never occurred using 1.3.0. Does anyone here know about DirectDraw vs OpenGL, and whether the use of both on my machine could be causing problems?

Thanks, Bob
Bob Hegwood

Windows XP-SP2, 256Meg 1024x768 Resolution

Intel Celeron 1400 MHz CPU

Intel 82815 Graphics Controller

OpenGL Version: 1.1.2 - Build 4.13.01.3196

Celestia 1.4.0 Pre6 FT1

Topic author
Tech Sgt. Chen
Posts: 187
Joined: 04.11.2003
With us: 21 years
Location: Northern NJ/USA

Post #7by Tech Sgt. Chen » 09.11.2003, 19:49

That's a good question Grant! I'll have to keep my eyes on that.
Sometimes I save the image to disc after it loads in my IE browser's default viewer and sometimes I right click the link (w/no image visable)and save target as...
I have never used any other graphic program in the actual download process.
Hi guys. Listen, they're telling me the uh,
generators won't take it, the ship is breaking apart and all that. Just, FYI.
(Athlon X2 6000+ Dual Core 3Ghz, 8GB DDR2-800, 500GB SATA 7200RPM HD, 580W,
GeForce 9600GT-512, 64Bit, Vista Home Premium)


Return to “Bugs”