Game Development Community

TX2D : PNG loads into game builder blown up [SOLVED]

by Charlie Talley · in Torque X 2D · 06/12/2009 (8:47 am) · 5 replies

When I load a PNG file as a material, only a small rectangular portion of the image seems to load. For example, one of the Powered by Torque splash screen PNG's loads, but you can only see the top right quarter of the image. Anybody know of any fixes/causes of this? Here's a link to an image of the problem img188.imageshack.us/img188/7013/tx2dpngscreenshot.jpg.

#1
06/12/2009 (9:55 am)
The image in the viewport matches the thumbnail, so the editor looks correct so far. Can you also post a screen capture of the Material Editor for this texture file? (click the picture frame toolbar button) Maybe your image is set to 'cell mode' or something. Also, what is the actual size of the image?

John K.
www.envygames.com
#2
06/12/2009 (1:44 pm)
Here's what the image looks like in the material editor:
img132.imageshack.us/img132/1075/tx2dpngscreenshot2.jpg

Here's the original image, or what it should look like:
img132.imageshack.us/img132/777/splashtxhd720p.png
#3
06/12/2009 (2:18 pm)
This makes no sense at all... maybe the source image is goofed up. Can you humor me and download the same image from my site: www.envygames.com/share/splashGG.png ? It's the same image, only it works perfectly for me in my 2D game and looks correct in the 2D Builder (just tested again).

John K.
www.envygames.com
#4
06/12/2009 (2:26 pm)
Yeah, it still does it with the image from your website. I have tried an uninstall and re-install, but still doing it. From your reaction I take it that this is probably a problem with my system.
#5
06/13/2009 (12:12 am)
Ok, figured it out. Seems my install of TX2D doesn't like PNG files that are only 24-bit depth count per pixel, i.e. no alpha channel. I added an alpha channel to my images and they all work like butter now.