MegaGlest Forum

Modding and game content creation => Tools => Topic started by: jacko161 on 20 May 2010, 04:42:28

Title: Texture Issues
Post by: jacko161 on 20 May 2010, 04:42:28
Every time i try to drop my model into the game glest crashes.... but when we remove the texture the model works fine
Bruce and i double checked every step in texturing but it still doesn't work

Any advice???
Title: Re: Texture Issues
Post by: John.d.h on 20 May 2010, 08:40:03

I hope one of those helps, because otherwise I'm at a loss.
Title: Re: Texture Issues
Post by: ElimiNator on 20 May 2010, 16:06:18
Yah, that's about it. I mainly thought of the name of it to have no spaces or caps and RLE compression to be off.
Title: Re: Texture Issues
Post by: softcoder on 20 May 2010, 16:08:55
As a side note Mega-Glest supports PNG and JPG textures for models, perhaps try using a non TGA texture and see if it helps (I find TGA is quite picky)
Title: Re: Texture Issues
Post by: Fluffy203 on 20 May 2010, 21:11:50
woah really , i've never seen png or jpg used in games at all , i've only seen .dds , .tga and unusual , but every now and then .gif .
Title: Re: Texture Issues
Post by: Omega on 21 May 2010, 16:57:57
Most likely RLE compression.
Title: Re: Texture Issues
Post by: softcoder on 21 May 2010, 17:58:59
Ok so we should add a check to the code to spit out errros if the modder did not enable compression instead of just crashing.
Title: Re: Texture Issues
Post by: jacko161 on 23 May 2010, 23:07:36
No it's not compression the Tga is uncompressed but it still crashes :( idk what to do
Title: Re: Texture Issues
Post by: Gabbe on 23 May 2010, 23:08:20
post the texture and model here so we can fix it for you.
Title: Re: Texture Issues
Post by: jacko161 on 23 May 2010, 23:09:02
mmk well they are basic drafts not of very high quality.

do you want it in .blend or .g3d format?
Title: Re: Texture Issues
Post by: Gabbe on 23 May 2010, 23:12:33
.blend thanks, and idc about quality ;)
Title: Re: Texture Issues
Post by: jacko161 on 23 May 2010, 23:14:30
ok well sorry my USB is at home can i post it up tonight?

i can give you the texture but not the .blend
Title: Re: Texture Issues
Post by: John.d.h on 23 May 2010, 23:24:22
i can give you the texture but not the .blend
Something is better than nothing.
Title: Re: Texture Issues
Post by: jacko161 on 23 May 2010, 23:26:54
http://filesaves.com/1feod2kn9fl2/tank_cube.tga.htm (http://filesaves.com/1feod2kn9fl2/tank_cube.tga.htm)
Title: Re: Texture Issues
Post by: Gabbe on 23 May 2010, 23:28:42
Only green?
Title: Re: Texture Issues
Post by: jacko161 on 23 May 2010, 23:29:56
well yeah cause no textures that i make will work so bruce and i tried a basic texture
Title: Re: Texture Issues
Post by: Gabbe on 23 May 2010, 23:34:00
is .JPG format supported/useable for it? that may cause it. i`ll test now.
Title: Re: Texture Issues
Post by: Gabbe on 23 May 2010, 23:39:30
A worker with a Worker XML from Original Tech with MegaGlest worked fine, perhaps XML is messed up?
Title: Re: Texture Issues
Post by: jacko161 on 23 May 2010, 23:45:36
you want the XML?
Title: Re: Texture Issues
Post by: Gabbe on 23 May 2010, 23:49:30
uhm...i hate to admit, but im a noob in XML, D.H?
Title: Re: Texture Issues
Post by: jacko161 on 23 May 2010, 23:52:14
thats fine we are checking my xml to someone elses that worked to see if its messed up
Title: Re: Texture Issues
Post by: Gabbe on 23 May 2010, 23:53:27
 :O okay, hope i`ve helped solving it
Title: Re: Texture Issues
Post by: John.d.h on 24 May 2010, 00:02:00
It renders fine on a dummy model in Blender, but is it really a 512x512 TGA that's only 8KB?  If so, then there has got to be some kind of compression going on, because an uncompressed TGA that size is almost 800KB.  I tested it by renaming it "texture_golem.tga" (replacing the Golem's regular texture), and it crashed Glest when I tried to run it.  I opened the texture and saved it again, turning off RLE compression and it worked flawlessly.  Despite your objections, RLE compression is what's causing the problem.

(By the way, testing with MegaGlest doesn't do us much good, because it supports different image formats.)
Title: Re: Texture Issues
Post by: Gabbe on 24 May 2010, 00:04:01
give us the image and we un-compress it!  :O
Title: Re: Texture Issues
Post by: John.d.h on 24 May 2010, 00:12:40
Y'all are using the GIMP for your textures, right?

(http://img180.imageshack.us/img180/2681/screenshot1phg.png) (http://img180.imageshack.us/i/screenshot1phg.png/)

See that check box?  It should not be checked.  Every time you save your image, make sure the box in un-checked, as the GIMP will forget your selection.  No matter how many hundreds of times you've saved the same image with RLE compression turned off, the next time you open GIMP, it will assume you want RLE compression turned on.  This is why you have to use "Save as..." instead of "Save" at least once per session, because GIMP forgets your selection every time you open it.
Title: Re: Texture Issues
Post by: sand_drew on 25 May 2010, 00:04:40
I had a similar issue, however, I managed to solve it after redoing the texture and saving as.

Jackson's appears to be different however.
Title: Re: Texture Issues
Post by: jacko161 on 25 May 2010, 00:09:37
Strange we went through and unticked the box 6 times  :o    ill remake the texture
The texture now works there was compression but we unticked the box :look: oh well it doesnt matter now
Title: Re: Texture Issues
Post by: Gabbe on 25 May 2010, 13:59:43
-.-
Title: Re: Texture Issues
Post by: John.d.h on 25 May 2010, 19:26:08
So it works now?
Title: Re: Texture Issues
Post by: Gabbe on 25 May 2010, 20:06:11
The texture now works
Title: Re: Texture Issues
Post by: sand_drew on 26 May 2010, 02:35:31
I've seen it, it works fine.

I'm as confused as Jacko is. He and Bruce went through the process several times and always un-ticked the box, and it never worked.
Title: Re: Texture Issues
Post by: Gabbe on 26 May 2010, 14:14:27
maybe only maybe, he opened a allready compressed TGA then he needed to make a new picture to mak the new one without TGA , like if TGA doesn`t uncompress when already compressed even if you untick, anyways
The texture now works
Title: Re: Texture Issues
Post by: sand_drew on 27 May 2010, 04:22:02
Why are you constantly reposting that quote?

On topic, however, Jacko did make a new one every time, and saved as every time. Whatever the problem was, it's solved now.
Title: Re: Texture Issues
Post by: Omega on 28 May 2010, 15:34:24
*Spends a looong time cleaning up double posts and garbage*
Please Jacko, some of your posts were literally minutes apart. Please edit your last posts rather than make new ones. Thank you.

Since this is solved, I will now lock it. Remember to turn off RLE compression everytime (its on the safe screen of both paint.NET and the GIMP, so can't be missed.

*Locked*
Title: Re: Texture Issues
Post by: -Archmage- on 28 May 2010, 20:17:33
Why lock it? :look:
Title: Re: Texture Issues
Post by: John.d.h on 29 May 2010, 00:50:20
Because the problem has been resolved, so there's no need to keep bumping it. ::)

</topic>