Questions related to images, including creation and modification
41
votes
6answers
4k views
Which image format is more memory-efficient: PNG, JPEG, or GIF?
Which image format is more efficient to save memory? PNG, JPEG, or GIF?
33
votes
7answers
1k views
Managing text-maps in a 2D array on to be painted on HTML5 Canvas
So, I'm making a HTML5 RPG just for fun. The map is a <canvas> (512px width, 352px height | 16 tiles across, 11 tiles top to bottom). I want to know if there's a more efficient way to paint the ...
14
votes
4answers
962 views
Why would some PNG files extracted from games display incorrectly?
I've noticed extracting PNGs from some game files that the image becomes distorted part-way through. For example, here are a couple of PNGs extracted from the Textures file in Skyrim:
Is this some ...
11
votes
1answer
656 views
How can I get the palette of an 8-bit surface in SDL.NET/Tao.SDL?
I'm looking to get the palette of an 8-bit surface in SDL.NET if possible, or (more than likely) using Tao.SDL. This is because I want to do palette swapping with the palette directly, instead of ...
9
votes
2answers
211 views
Should the color of a texture be adjusted for display on a television?
If a 24bit RGB image with a range of 0-255 per channel is displayed on a television that displays a range of approx. 16-235 per channel, color detail will be lost, correct?
If so, should images be ...
7
votes
5answers
765 views
Is there a game oriented graphics or image editor?
I remember looking a few times over the years for an alternative to Photoshop for editing images. I've tried using Gimp too, and that's also not quite sufficient. There are some problems that have ...
7
votes
3answers
596 views
Storing a Hex Grid
I've been creating a small hex grid framework for Unity3D and have come to the following dilemma. This is my coordinate system (taken from here):
It all works pretty nicely except for the fact I ...
6
votes
4answers
1k views
Which image format to use for sprites in an HTML5 game?
In a 2D HTML5 game, what is the best image format to use and why? Should I use different formats in different situations? For example, .png for the background image, .jpeg for the animation frames and ...
5
votes
1answer
202 views
Rendering scaled-down card images
I have high-quality SVG card images, but they drastically lose their quality when I downsize them. I have tried two ways of rendering cards (using Inkscape and Imagemagics):
1) Render SVG to high-res ...
5
votes
1answer
915 views
How can I resize pixel art in Pyglet without making it blurry?
I have a tileset of 8x8 pixel images, and I want to resize them in my game so they'd be double that (16x16 pixels, e.g. turning each pixel into a 2x2 block.) What I'm trying to achieve is a ...
5
votes
1answer
2k views
How to create a XNA texture from a GDI Image with source rectangle?
A Texture2D in XNA can only hold so much. Depending on which profile I use that limit is either 2048 or 4096 pixels wide. As far as I could tell from my research (someone correct me if I'm wrong) GDI ...
5
votes
1answer
235 views
Split Texture2D Across Line
Background
I'm using a texture as a damage map represented by an array of floats for displaying damage effects on a space ship in a process.
An upside of this is being able to 'slice' ships in ...
4
votes
1answer
448 views
Whats the point of all these Surface Formats
I am relevantly new to Graphics Programming. I have written some basic games in xna in the past but I am trying to understand what the point of all these surface formats is. For instance Xna and DDS ...
4
votes
4answers
384 views
Can a high FPS negatively affect how a program runs?
Yeah I know this is a broad question and will get down rated, I'm just hoping for some answer before it gets closed.
Anyway, I'm using Slick 2D/Java to play around with graphics. I'm having some ...
4
votes
4answers
2k views
Need a good quality bitmap rotation algorithm for Android
I am creating a kaleidoscopic effect on an android tablet. I am using the code below to rotate a slice of an image, but as you can see in the image when rotating a bitmap 60 degrees it distorts it ...
3
votes
6answers
1k views
How to get quality sprite sheet generation with rotations
I'm working on a game that uses sprite sheets with rotation for animations. While the effect is pretty good, the quality of the rotations is somewhat lacking. I exported a flash animation to png ...
3
votes
2answers
175 views
split pngs for sidescroller
I want to split a long png from my artist into vertical chunks that I can load into my code for a side scroller.
Is there a tool that will help do that or do I have to do it manually?
3
votes
2answers
654 views
OpenGL 3.0+ framebuffer to texture/images
I need a way to capture what is rendered on screen, i have read about glReadPixels but it looks really slow.
Can you suggest a more efficient or just an alternative way for just copying what is ...
3
votes
1answer
184 views
Pygame performance issue for many images
I've made a script for generating a game world based off of image pixel data.
Trying to make a python map editor
My progress so far has resulted in a program which loads an image and draws sprites ...
3
votes
1answer
212 views
What algorithms exist for generating collision geometry from an image?
I am currently working on a game using SFML and Box2D. I am interested in generating collision geometry from the sprite data that I load into SFML. So, for example, an algorithm that would do this ...
3
votes
1answer
554 views
How can I convert a 2D bitmap (Used for terrain) to a 2D polygon mesh for collision?
So I'm making an artillery type game, sort of similar to Worms with all the usual stuff like destructible terrain etc... and while I could use per-pixel collision that doesn't give me collision ...
2
votes
2answers
677 views
Best practice for image compression
Which is the best format or best technique to compress images without loss of quality for iPhone/iPad games?
2
votes
2answers
210 views
there is a BLOB standard to store images in memory?
I would like to abstract all the images in memory, to do so i would like to have just 1 format of reference without talking about the usual file formats for the filesystem like JPG, TGA, and so on.
I ...
2
votes
1answer
221 views
Basic knowledge for 2d gaming and images?
Can anybody refer me some pdf or ebook that i should follow for basic 2d programming and texture ,shaders and other gaming elements details in depth.By which i can easily get through the 2d game ...
2
votes
2answers
607 views
State of the art in image compression?
I'm looking for good algorithms for compressing textures offline (ie decompressing them at install or load time, I know about using DXT/3DC to save runtime video memory, but these create awful visual ...
2
votes
2answers
281 views
How do you handle iPhone graphics for both high and low DPI settings?
How do you guys create your game graphics for iPhone? Considering you need a retina version and a nomal one?
Do you create a big version of your image, save HD, then resize to smaller version, and ...
2
votes
1answer
76 views
Getting an images rgb value at click
I'm not sure if this is at all possible, but maybe it will spark up an interesting conversation. (Sidenote: working on a small game in Löve).
I'm making an archery shooting kind of game, and I was ...
2
votes
1answer
520 views
Does swf provide better compress rate than zlib for png image?
Somebody told me that when a png image is stored in swf, it's separated to several layer, hence the alpha channel can be compressed better. Is it true? Or, once png image is imported into a swf, it's ...
2
votes
1answer
122 views
Multiple images written and read from one meta-file?
Short version:
I need a way to store multiple image files in one bigger file, to be used using C#, preferably easily compatible with XNA. The files will be read, written to, but also adaitional files ...
2
votes
1answer
98 views
How to combine image with a gradient? Or make it more featured in a different way
I generate an abstract 128x128 image, that is in general two-color (it uses values scaled between "blue" and "white", or other similar color pair). I need to make the image more "featured".
...
2
votes
1answer
142 views
Is there a way to export all the images of my tweening effect in Flash?
i'm using Flash to create the animation of my character in 2D (i'm just beginning). Is it possible to make a tween effect of a character, and then automatically export all the images/frames?
So far, ...
2
votes
1answer
367 views
How can I resize a set of sprite images?
Hey StackExchange GameDev community, I'm attempting to resize series of sprites upon instantiation of the class they're located in.
I've attempted to use the following code to resize the images, ...
2
votes
3answers
495 views
Rendering a 3D scene without a window
This is kind of an odd question, but what would be the best solution for rendering a 3D scene without a render window active? The end goal would be to simply render a 3D scene to an image file.
I ...
2
votes
1answer
82 views
AngelCode's Bmfont about widths
In AngelCode's Bmfont is there a way to make it so that all of the widths are equal?
2
votes
2answers
163 views
Splitting a texture atlas into seperate images [duplicate]
Possible Duplicate:
How to decompose sprite sheet
I'm doing a port of an existing game and the designer no longer has all of the original art; he only has the resulting texture atlases he ...
2
votes
2answers
2k views
Loading and rendering one large image or many smaller ones
I am working on an android game with a top down style view similar to the original GTA's or a scrolling version of Legend of Zelda.
I have recently begun designing some prototype levels for the game ...
2
votes
1answer
153 views
Can I use one set of images to represent multiple sprites in Java?
I've got a game that has 3 basic sprites, at the moment I'm loading 8 images into each sprite for animating.
Each character class has a sprite object.
if I've got 10 characters on screen at once ...
2
votes
1answer
382 views
Colour Problems When Using SDL_Resize()
In a 3D SDL application I inherited (I have little 3D or SDL experience), I have a 'screenshot' routine that either saves a full-size image or a scaled image, depending on the context (differing ...
1
vote
4answers
428 views
What is a good way to load more than a million images for a collectible card game?
I'm using C# with MonoGame and I'm wondering what would be an efficient way to load more than a million card images for a collectible card game. More cards would be continuously added in future ...
1
vote
2answers
245 views
Why is the background image less smooth on the phone?
I've just downloaded Gamestate code from create.msdn.com, and as you can see from the image below:
The result is less smooth then the image imported to visual studio, how do I increase the quality?
...
1
vote
2answers
217 views
Recommended formats to store bitmaps in memory?
I'm working with general purpose image rendering, and high-performance image processing, and so I need to know how to store bitmaps in-memory. (24bpp/32bpp, compressed/raw, etc)
What is the "usual" ...
1
vote
1answer
291 views
Graphic optimization for iPhone
Basically, I am creating a large iPhone game (with an overwhelming amount of 2d graphics).
I am concerned about the game file size.
Since the iPhone game will accept Retina and Normal display, we ...
1
vote
2answers
105 views
Filtering (e.g. Gauss blur) on seamless textures but without border artifacts?
I am looking for a way to apply (Photoshop, Gimp etc.) filters to seamless textures without the usual border artifacts. The kernel of the Photoshop Gauss filter for example does not wrap around the ...
1
vote
2answers
670 views
How do I set a single pixel of an image in Slick2D?
I would like to set an individual pixel in Slick (i.e Image.setPixel(x, y, r, b, g)) but I can't figure out how.
There is an Image.setPixel function but it doesn't take x and y coordinates. Any ...
1
vote
2answers
252 views
Why cant I use slick-util with image IO and bufferedImage
My problem is that I get errors when I use
texture = TextureLoader.getTexture("PNG", ResourceLoader.getResourceAsStream("TEXTURE PATH HERE"));
it gives me these errors:
Exception in thread "main" ...
1
vote
1answer
149 views
Pixelated and incomplete image when loading with pygame.image.load
This is the image I'm trying to load on the surface, an 40x40 Ubuntu logo:
Ans this is how it looks when trying to show the image on the surface via the blit method:
I'm trying to load different ...
1
vote
2answers
598 views
Image splitting / tiling software for Mac
I have been programming for a bit and for 2D games and other applications I frequently make large images for the levels / the maps. Before I place these into the games I split the large images down ...
1
vote
1answer
155 views
Absorbtion 2d image effect
I want to create a specyfic 2d image effect. It consists in modifying a sprite so it looks like it is being zoomed to a point or "absorbed" by that point. I'm not really sure what is the technical ...
1
vote
1answer
188 views
Lost transparency in SDL surfaces drawn manually
I want to create SDL_Surface objects for each layer of my 2d tile-based map so that I have to render only one surface per layer rather than too many tiles. With normal tiles which do not have ...
1
vote
2answers
577 views
Dynamically load images inside jar
I'm using Slick2d for a game, and while it runs fine in Eclipse, i'm trying to figure out how to make it work when exported to a runnable .jar. I have it set up to where I load every image located in ...



