Questions related to images, including creation and modification
0
votes
4answers
76 views
Changing color of a moving image without lowering the fps
I just added an option to my game that makes it so that all the enemies will have a random color for their clothes instead of the regular blue. I use this code to draw rectangles over the shirt of the ...
0
votes
2answers
99 views
How to reduce/handle image loading times?
I'm working on a 2D game that has very high resolution images (so that things look good on Retina MacBooks and such), and am seeing a noticeable lag caused by image loading.
I notice the strongest ...
-1
votes
1answer
94 views
Creating 2D game engine, image = null error [closed]
When ever I run this, I get the error
Exception in thread "main" java.lang.IllegalArgumentException: input == null!
I tried many different solutions including moving parts of the code around and ...
1
vote
1answer
176 views
Is this the best way to do sprite sheet animation? [closed]
I would like to make my player animate via a sprite sheet.
I looked online and there are many different ways; I want to know what is the best way. Which method will allow me greater flexibility when ...
0
votes
0answers
116 views
Removing image background color?
I have a sprite sheet (image) and I want to draw it on the screen.
image = sprite sheet image
x = player x position
y = player y position
width = player width
height = player height
public class ...
0
votes
0answers
265 views
Loading and displaying a BMP file C++/Opengl
When I run the following code, it just shows a plain color, like Pink or Orange. The picture which I'm trying to load is a 24-bit BMP which should work 100%. (Size 256x256)
BmpLoader.h
#ifndef ...
0
votes
0answers
51 views
pygame object returns wrong button object
Another question from dumb developer :)
I have class for window:
class MainMenuWindow(Window):
# singeltone:
_instance = None
def __new__(cls, *args, **kwargs):
if not cls._instance:
...
1
vote
2answers
264 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
votes
2answers
177 views
bump map from color map (RGB) generation?
Is there a library like PIL (Python Imaging Library) which takes a RGB image (pixel data) and generates a bump map image?
If not, how can I do that? I know the results might not be very good.
I know ...
1
vote
0answers
51 views
Another Question from the Image Efficiency for Memory Handling
At this topic, "Which image format is more memory-efficient: PNG, JPEG, or GIF?", one of the fellow Game Development community @Panda Pajama told about the complex concept about image memory handling ...
43
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?
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 ...
0
votes
2answers
73 views
Images not rendering in Slick
I have built a game that uses the Slick framework. The maps are tmx files and were built using TileD. The game iterates through a list of players and maps - once a game with a player and map is ...
1
vote
4answers
433 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 ...
3
votes
1answer
185 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 ...
2
votes
1answer
79 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
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
170 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 ...
5
votes
1answer
206 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 ...
1
vote
2answers
219 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" ...
0
votes
0answers
103 views
JPEG images not loading on PlayBook (Marmalade + iwgame)
I'm using iwgame on a test project and I was trying to render different resolutions of JPG and PNG images. Everything works fine on the Marmalade Simulator, however once I deploy the game to our ...
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 ...
7
votes
3answers
605 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 ...
4
votes
4answers
385 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 ...
0
votes
0answers
193 views
How to code a 4x shader/filter which emulates arcade crt display behavior?
I want to write a shader/filer probably in adobe Pixel Bender that will do the best job possible in emulating the fill of an oldskul monochromatic arcade CRT screen. Much like this here:
...
3
votes
2answers
659 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 ...
1
vote
1answer
200 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
votes
1answer
135 views
How do I increase the size of a buffered image to the left and upwards?
I need to know how to increase the size of my buffered image to the left and up, not just the right and down.
bI = new BufferedImage(yMax*size*5, xMax*size*5, BufferedImage.TYPE_INT_RGB);
2
votes
1answer
124 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 ...
-1
votes
2answers
176 views
Dealing with new animations in html5
Wish I knew of a better title, but the issue is rather specific.
So the producer of the game I'm working on has given me new animations to put in the game. I knew there might be issues right off when ...
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 ...
3
votes
1answer
213 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 ...
2
votes
1answer
101 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
2answers
687 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?
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 ...
0
votes
1answer
323 views
Where to get PNG icons/graphics for game development for kids? [duplicate]
Possible Duplicate:
Where can I find free sprites and images?
I'm teaching kids to program using Ruby and the gaming framework Gosu/Chingu. Kids love it, including the part where they have ...
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 ...
0
votes
1answer
851 views
Slick2D - Cannot instantiate the type Image
I am getting this strange error and I cannot for the life of me figure out why:
Cannot instantiate the type Image
CODE:
import java.awt.Image;
import org.newdawn.slick.GameContainer;
import ...
0
votes
2answers
150 views
DrawImage doubt
What is the best option for animation in a game (HTML5 Javascript)? Put all the images in one png and change the background.
Or create each image separately and draw with DrawImage?
-2
votes
2answers
279 views
how to double buffer in multiple classes with java
I am creating a Java 2D video game. I can load graphics just fine, but when it gets into double buffering I have issues. If i run this code, nothing is displayed except for the string("hello"); but ...
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, ...
0
votes
1answer
221 views
How to select an image on the J2ME Canvas
I am working on J2ME. I have got a canvas, with a layout of a Checkers board. At the position of pieces, I have placed images. The point at which I got stuck is, how to select/highlite a piece's image ...
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 ...
1
vote
2answers
592 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 ...
1
vote
1answer
151 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 ...
0
votes
1answer
3k views
DevIL image library isn't loading my image
This is the first time I've had this problem, my code just won't load the images I need it to.
Here is my first function for loading the image into data:
void ...
3
votes
1answer
561 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 ...
0
votes
1answer
82 views
What is the best way to turn image voting into a game? [closed]
I'm trying to come up with a design for an image voting site that turns the (potentially boring) task of voting on thousands of images into a game. The goal is to get the user to vote on as many image ...
0
votes
1answer
157 views
Image Processing in game engines
I'm going to try and use GEGL to allow real-time texture manipulation on an open-source 3D game engine.
What are the most common and most needed operations used on images, textures in game engines?
...
2
votes
1answer
374 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, ...


