So I'm making an RPG game using single images on polygons for the graphics (think Doom with no animation ;) ). The graphic images I'm using are 32*32 pixels each arranged in large grids. My main problem right now is that at that size, they become too blurry when rendered to polygons 400 pixels high. For this reason I'm scaling up their size when I load them. 2X is not enough, but when I try scaling 3X I get an out of memory error, and garbage collection every Nth time doesn't help. This is odd since all of the images only come out to 724 kilobytes (so shouldn't that only be about 6mb when scaled?) So my first question:
Is there a way to increase resolution of a polygon without having to just increase the size of the image?
Currently, I'm working on a level editor for it, which is why I need all the images loaded at once. In the game itself I'll have a more intelligent way to only load the images I need for that level.
Another thing I'm not sure of is how to store them. Right now I'm splitting them all up into an array holding each 32*32 (or now 64*64 or 96*96) tile. So my second question:
Would it be helpful or harmful to just store them in their unscaled grid form, and then each time I texture a polygon, get() the part I need and scale it, then replace it with the next one? I'm just not sure how expensive get() and suchlike are.
Is there a way to increase resolution of a polygon without having to just increase the size of the image?
Currently, I'm working on a level editor for it, which is why I need all the images loaded at once. In the game itself I'll have a more intelligent way to only load the images I need for that level.
Another thing I'm not sure of is how to store them. Right now I'm splitting them all up into an array holding each 32*32 (or now 64*64 or 96*96) tile. So my second question:
Would it be helpful or harmful to just store them in their unscaled grid form, and then each time I texture a polygon, get() the part I need and scale it, then replace it with the next one? I'm just not sure how expensive get() and suchlike are.
1