Non-Power of 2 Texture in Map2Dif?
by J.C. Smith · in Torque Game Engine Advanced · 09/11/2006 (10:28 am) · 10 replies
I've been having problems compiling difs with the new map2dif and map2dif_plus in MS4. The error it keeps giving me is that it is encountering a non-power of 2 sized texture, and it occurs with every texture. The odd thing is that these textures are powers of 2. I've tried creating temporary textures at 32x32, 64x64, 128x128, 256x256 and 512x512 as tests and saving them as jpgs and pngs but it keeps giving me this same error.
It also spits out bogus sizes on the textures, example:
Error: Non-power of two sized texture - background (512 x 943077120)
That is on a 512x512 texture.
I only get the console.log and output on map2dif_plus btw. Map2dif simply crashes.
It also spits out bogus sizes on the textures, example:
Error: Non-power of two sized texture - background (512 x 943077120)
That is on a 512x512 texture.
I only get the console.log and output on map2dif_plus btw. Map2dif simply crashes.
#2
09/11/2006 (11:33 am)
Aye, tried it. Tried changing types from jpeg to PNG. Tried resizing, and tried creating blank textures of specified sizes. It definately isn't the textures I can open them up with any of my image editing programs fine and they show up as 512x512, that is in photoshop, paint shop pro, paint, etc.
#3
09/11/2006 (11:52 am)
You sure you are not using a old map2Dif? I use the latest one and it works fine. Map2Dif plus has not been updated, I would stay away from it.
#4
If map2dif is working fine for you though then it's probably an error in my map file or something that its being stringent about now that I don't have in there. I'll mess with it tomorrow and see what I can come up with. Going to sleep now.
09/11/2006 (12:07 pm)
Yep definately. Just did a fresh compile. It could be that it's another error that is causing the crash, as map2dif doesn't give any output it just crashes. But if you run map2dif_plus it gives the non-power of two texture text. If map2dif is working fine for you though then it's probably an error in my map file or something that its being stringent about now that I don't have in there. I'll mess with it tomorrow and see what I can come up with. Going to sleep now.
#5
During the TLK for TSE beta, I did manage to merge and compile the proper changes to map2dif+, and at that time it worked as well. I've since lost that copy, and have higher priority jobs to complete before attempting another shot at it.
09/11/2006 (12:19 pm)
I used the originally posted binary-only version of map2dif+ on MS4, and it works perfect still. Of course it's missing John's lightmap etc additions, but I just can't bear to see another DMoore smacking message, ever again :)During the TLK for TSE beta, I did manage to merge and compile the proper changes to map2dif+, and at that time it worked as well. I've since lost that copy, and have higher priority jobs to complete before attempting another shot at it.
#6
Here's the latest log trying to compile one of Aste's buildings. I have already modified the worldspawn and such so that it would compile on the old map2dif_plus:
Successfully opened map file: bdb_0.map
Loading textures:
Loaded texture CONCRET3
Loaded texture B_01
Loaded texture RIVETBOX
Loaded texture RTCORR_5
Loaded texture 5_CONC01
Loaded texture MRC_METWALL02B
Loaded texture G_BRIC_TRIM
Loaded texture G_RTBRICB_DK
Loaded texture BROCK2BGR
Loaded texture G_RTBRICB_DKPIE
Error: Non-power of two sized texture - CONCRET3 (1024 x 17896688)
Error: Non-power of two sized texture - B_01 (1024 x 18036224)
Error: Non-power of two sized texture - RIVETBOX (1024 x 19431584)
Error: Non-power of two sized texture - RTCORR_5 (1024 x 19571120)
Error: Non-power of two sized texture - 5_CONC01 (512 x 19803728)
Error: Non-power of two sized texture - G_BRIC_TRIM (512 x 31228448)
Error: Non-power of two sized texture - G_RTBRICB_DK (512 x 31367984)
Error: Non-power of two sized texture - BROCK2BGR (1024 x 17326832)
This happens with the sourceart textures from that pack which are power of 2 textures and 24 bit jpegs. Resaving the files, changing them to PNG etc has no effect. This problem isn't exclusive to Aste packs, but I used this as an example since many people may have them.
If it's working for you guys I'm at a loss for what could be causing it. Perhaps something with VC7.1, maybe a bad lib file, not really sure. If someone can post a working executable that would help a bunch.
09/12/2006 (10:50 am)
Map2dif still doesn't work for me. Same errors. I tried it with tons of models today, from Aste packs, to models from illumina, to test models I created quickly in 3dws. Every time it either gives me the non-power of 2 texture bs (which is false) or it says that the texture must be 24 or 32 bit (which is is already). I'm using JPGs and PNGs, and I've been using map2dif for years. Here's the latest log trying to compile one of Aste's buildings. I have already modified the worldspawn and such so that it would compile on the old map2dif_plus:
Successfully opened map file: bdb_0.map
Loading textures:
Loaded texture CONCRET3
Loaded texture B_01
Loaded texture RIVETBOX
Loaded texture RTCORR_5
Loaded texture 5_CONC01
Loaded texture MRC_METWALL02B
Loaded texture G_BRIC_TRIM
Loaded texture G_RTBRICB_DK
Loaded texture BROCK2BGR
Loaded texture G_RTBRICB_DKPIE
Error: Non-power of two sized texture - CONCRET3 (1024 x 17896688)
Error: Non-power of two sized texture - B_01 (1024 x 18036224)
Error: Non-power of two sized texture - RIVETBOX (1024 x 19431584)
Error: Non-power of two sized texture - RTCORR_5 (1024 x 19571120)
Error: Non-power of two sized texture - 5_CONC01 (512 x 19803728)
Error: Non-power of two sized texture - G_BRIC_TRIM (512 x 31228448)
Error: Non-power of two sized texture - G_RTBRICB_DK (512 x 31367984)
Error: Non-power of two sized texture - BROCK2BGR (1024 x 17326832)
This happens with the sourceart textures from that pack which are power of 2 textures and 24 bit jpegs. Resaving the files, changing them to PNG etc has no effect. This problem isn't exclusive to Aste packs, but I used this as an example since many people may have them.
If it's working for you guys I'm at a loss for what could be causing it. Perhaps something with VC7.1, maybe a bad lib file, not really sure. If someone can post a working executable that would help a bunch.
#7
09/12/2006 (4:59 pm)
I'll take a look J.C. I'll talk to Tim and get that building so I can test.
#8
09/12/2006 (9:51 pm)
Thanks Brian.
#9
I did re-export the orkbase.dif and did not run into this problem. Since it's obviously getting crazy values in the y dimension, it might be easy to debug the problem yourself in the meantime.
09/13/2006 (5:31 pm)
Tim didn't get back to me, I'll check with him tomorrow.I did re-export the orkbase.dif and did not run into this problem. Since it's obviously getting crazy values in the y dimension, it might be easy to debug the problem yourself in the meantime.
#10
Thanks a bunch.
09/13/2006 (6:32 pm)
Ahh great, I'm not the only one then. I had some problems getting it to compile in debug mode the other day, and had other things on the plate, but others had seemed to say it was working fine so I assumed it was something with the way mine was compiled and didn't lend it too much time. I'm out of town today for a family thing but I'll take some time tomorrow and try to nail it down.Thanks a bunch.
Torque Owner Dave MacIsaac