Game Development Community

Torque Don't take My PNG or JPEG File

by Dewaldt · in General Discussion · 04/02/2010 (11:33 pm) · 10 replies

Hi.


Like to know why does Torque Don't want to open the PNG or JPEG File? On the Terrain Painter>

Diffuse: Edit > Open Select your file {If it opens it! It make the terrain all Black & the Diffise icon that normally shows your current Picture is white?


Detail: Edit > Open Select your file {If it opens it! It make the terrain all Black & the Diffise icon that normally shows your current Picture is white?

Normal: Edit > Open Select your file {If it opens it! It make the terrain all Black & the Diffise icon that normally shows your current Picture is white?

Please help me with this, Can't seem to find out why it does it, It never Did happen Before?

Best Of Regards

#1
04/05/2010 (9:55 am)
How are you creating your PNG's or JPEG's? Are you loading them on a Mac or Windows machine?
#2
04/05/2010 (10:33 am)
Hi David.

I open it on an windows Machine? What I want also to do, There is lots of Texture site, I did get an Grass Texture, It is in PNG Format, So I open Torque, set everything up, Go to Terrain Painter, Select your choice of Textures, & Open, But there is were the Trouble Starts. The Icon Appear White, & the Terrain turns Black. But it only Happens with the Textures i get from Site? Like Textures Sites. Not the Textures that is included with the engine itself. So...! maybe it's something wrong etc, But is it suppose to do it?


Regards
#3
04/05/2010 (10:43 am)
It depends. Do you have an example PNG you can send me? It may be a munged header and running it through optipng will strip the header information and it will load correctly. Progressive JPEG's caused problems on the Mac, so that is why I asked about platform.
#4
04/05/2010 (2:39 pm)
you need to make sure that the dimensions are binary compatable too, 64, 128, 256, 512 and so forth.

Check the console for error messages, it should tell you since i believe the GUI and editors have no problems with non power of 2 images they dont report the issue.
#5
04/05/2010 (3:10 pm)
wow, now i feel kinda silly... when did T3D start allowing arbitrary image sizes to be used as textures?
#6
04/05/2010 (11:30 pm)
Hi David.

Here is 2 Pictures, Hope it may get me somewhere?

Before

[IMG]http://i934.photobucket.com/albums/ad190/xzalion/1Test.jpg[/IMG]

After

[IMG]http://i934.photobucket.com/albums/ad190/xzalion/2Test.jpg[/IMG]

Before

[IMG]http://i934.photobucket.com/albums/ad190/xzalion/FJR/th_1Test.jpg[/IMG]

After

[IMG]http://i934.photobucket.com/albums/ad190/xzalion/FJR/th_2Test.jpg[/IMG]


Jpg File

[IMG]http://i934.photobucket.com/albums/ad190/xzalion/FJR/th_Dirt.jpg[/IMG]

Png File

[IMG]http://i934.photobucket.com/albums/ad190/xzalion/FJR/th_DirtStone.png[/IMG]


The File that doesn't Want to open on Torque Terrain Painter.

[IMG]http://i934.photobucket.com/albums/ad190/xzalion/FJR/th_Groundplants0086_5_...


Best of Regards
#7
02/20/2012 (3:55 pm)
Wow..... Necro time for this thread methinks, as I am having this problem and can't understand why.

I created a 512x512 png in Photoshop CS2 on Win 7 64 bit. 32 bit image (4 channels at 8 bits per channel). This image which I wanted to test with transparency shows as a blank white square in the mat ed and the terrain painter.

I also created another 2 images from this initial one. A normal and a spec. Neither of these has transparency but they still show up as white.

The only possibility that I can think of is that I used a 100dpi instead of 72 or 96. Not sure that has anything to do with it though....

I even tried resizing these to 256x256 and still nothing.

Any help here will be greatly appreciated.

Dan
#8
02/20/2012 (4:06 pm)
i42.photobucket.com/albums/e304/kaffeend/DifSpecNorm_ConstructorTest_00.png
As you can see, Constructor has no such issue with these images. These are the 256 px version.

[I just noticed that the image tags have been changed. Is there a ghost in the machine here? Spooky.]
#9
02/20/2012 (4:21 pm)
I just tested these on a cube in-game and it works fine except that the transparency isn't happening. But that's another question for another day.
#10
02/21/2012 (4:23 pm)
I thought transparency was a separate mask (black and white jpeg), not read in from the alpha channel. I may be wrong though.