WarlockD / GMdsam

Some junk test stuff trying to decompile GM bytecode
45 stars 5 forks source link

Images have anti-aliasing? #6

Open colinator27 opened 8 years ago

colinator27 commented 8 years ago

I've noticed that sprites strangely have anti-aliasing on them. This isn't supposed to be happening...

Do you have any idea of fixing this?

Could it potentially be https://github.com/WarlockD/GMdsam/blob/master/GMdsam/GameMaker/ChunkTypes.cs#L276?

Or is it literally just https://github.com/WarlockD/GMdsam/blob/master/GMdsam/GameMaker/ChunkTypes.cs#L975?

WarlockD commented 8 years ago

Humm I think it has to do with the second one? I am fairly sure drawing using a Graphics object, unless you put in the settings, doesn't turn on anti-aliasing.

From what I have tried to figure out, the Font values are all set up, then game maker prints out the text to a bitmap then outputs that bitmap. Might check the textures directory (I think its texture_6) and look to see if its still antialissied.

colinator27 commented 8 years ago

Okay! :P

Also... can you possibly detect whether or not a sprite/background is a tileset or not? I kind of need it for https://github.com/colinator27/UnderGMX to work.

colinator27 commented 8 years ago

One more thing: Images seem to be cut off for me for some strange reason...

WarlockD commented 8 years ago

Oh yea that part is easy. Well sort of. Each room tile has a "background_index" and that index is to the "backgrounds" chunk. As for the image cut off humm. I have to check. I haven't checked all the images and I am still iffy about how the sprites are sized. Mainly cause frames have both a x,y AND an offset x,y. I have been fighting on witch works or not.

colinator27 commented 8 years ago

Okay! :D