Questions related to images, including creation and modification
0
votes
0answers
17 views
Load different grayscale images into the same texture
I have a series of images loaded as
data1 = stbi_load_from_file(file1,&width,&height,&comp,1);
data2 = stbi_load_from_file(file2,&width,&height,&comp,1);
data3 = ...
-3
votes
1answer
35 views
How can I perfectly center an image in a window using Slick2d?
Dividing the window's width by two to position it in the middle of the x-axis did not work.
What else can I do?
0
votes
0answers
40 views
Image layer into tile map concept
I'm not really familiar with programming but I wanted to ask if someone could give me some tips. I would like my game maps could be easily designed in some kind of graphics editor. I came with an idea ...
0
votes
0answers
64 views
Drawing pathmap [Solved]
I am developing an editor for my game and I like to implement something like this (screenshot from wc3 editor):
(I need the pathmap)
I have one implementation already, I just store in chunk renderer ...
0
votes
0answers
32 views
Making a Collision Detection for ImageViews
I'm trying to make a collision detection system for two ImageViews, but I can't seem to figure it out. I've tried doing several things from StackOverflow and other places, but they don't work. One ...
1
vote
1answer
26 views
SDL2_ttf gradient
I want to render some text using a gradient instead of a solid color, but I can't figure out how to. I first load a gradient like this:
SDL_Surface* gradient = IMG_Load("blue-cian.png");
then I ...
0
votes
0answers
30 views
AndEngine: image partially disappear on finger move
I am new to andengine and I want to create an app like that:
I have 2 images one on other now what I want is if I move my finger on upper image It should partially disappear only from the position ...
0
votes
0answers
26 views
images for game [duplicate]
I develop games for couple of years now (mostly 2d) and i always had the same problem, images for my game. I tried a few times to find a designer but i couldn't find some one that is serious enough.
...
0
votes
2answers
51 views
How to manipulate 2d image as different objects
Hello Im very new to this so I don't even know what this process is called exactly.
Im posting image of flappy bird here in which it consist all the objects day, night, birds, font etc Here :
So how ...
0
votes
3answers
111 views
Can I use copyrighted images and music in my game? [duplicate]
I am working on my first ever project , and I have used some copyrighted images(images taken from some other well recognized games). Is it even possible that I edit the images a little bit and then ...
4
votes
1answer
517 views
Should I be concerned about assets being accessed by dumping VRAM?
I have heard many people tell me that a user can dump the VRAM on their GPU and get all the images in my game. Including all "Streamed" images. This includes most of my Menu graphics.
How would a ...
1
vote
1answer
361 views
How do I combine images into a single entity in libgdx?
I've googled this but can't seem to find anything on "concatenating" two images, especially with libgdx.
Any ideas?
0
votes
2answers
347 views
How do I add an image inside a rectangle or a circle in JavaFX?
Suppose we have a rectangle called r
Rectangle r = new Rectangle(40, 20);
and an image called image
Image image = new Image("...src for image");
How do I fit the image inside the rectangle? ...
2
votes
1answer
208 views
When should I use color keying vs PNG transparency?
SDL (and other toolkits) can use color keying to make a certain color in an image transparent. Alternatively, you could load a PNG image that supports transparency.
When should I use which?
2
votes
1answer
129 views
How do I convert a partially transparent image into polygons?
I'm using GLEE2D, a level editor allowing me to import images, scale them, rotate them, and position them onto layers and export the data into XML format. However, it does not tell me objects' ...
0
votes
1answer
264 views
Render two images to an SDL_window
I want to create a menu for an SDL game, so I load an Image to an SDL_Window as the background, then I try to load the next image which will be a button but it doesn't display the button to the ...
0
votes
2answers
5k views
How do I make a background fill the whole screen in Libgdx?
I'm using this code to set a 800x420 image to be full screen:
public void show() {
float w = Gdx.graphics.getWidth();
float h = Gdx.graphics.getHeight();
camera = new ...
1
vote
3answers
1k views
How can I use a char array to store image data?
I am learning the physics engine Chipmunk. In the source code, the example demo "LogoSmash" uses char array to store image_data, but I don't understand how to do that, it's amazing!
Here is the ...
0
votes
1answer
83 views
How can I use the same number of tiles in any screen resolution, with an isometric projection?
I have an isometric grid with 64x32 diamond images. Each tile is a class, each instance is in a 2D array.
Players have different screen resolutions and the grid must take up the whole screen. ...
0
votes
2answers
261 views
Tweening multiple image objects in html5/js
Is there an optimal way to choose when tweening multiple images as a single image?
For example let's say i have 10 preloaded image objects in my script, and i want to place them one on top of the ...
4
votes
2answers
380 views
Use large image individually, or in TextureAtlas?
Does it make any sense to include a large image (with dimensions of say 1920x1080) in a TextureAtlas and then use it with libgdx for example?
Or should I rather use it individually and include the ...
0
votes
1answer
269 views
“Fading” effect between different screens?
I'm not sure what the correct word for it is, but I'm thinking like the fading effects when you move between different screens in Powerpoint or Keynote; that the screen fades black before the new ...
3
votes
1answer
456 views
How can I optimize this flood fill algorithm?
I'm creating a sprite and animation editor like this one. I'm having performance issues with my flood-fill algorithm.
Basically, I open an image with the different modules that are part of a frame of ...
1
vote
1answer
40 views
2 Images, same object: tone difference and alignment
I would like to know a software which helps in post-production to calculate the general color/tone difference of 2 images. The images contain the same object, but arn't shot from the same position. ...
2
votes
1answer
99 views
How do I quantize an image into an arbitrary bitdepth with dithering?
In the games I make, sometimes I need to balance the quality of the images I show with the amount of memory they consume. This is especially true for smartphones and other devices with very tight ...
0
votes
2answers
332 views
Cocos2d: Moving background on update: offsett issue
working with Objective C, iOS and Cocos2d I am developing a vertical scrolling shooter game for iPhone (retina display models with 640 width x 960 height pixel resolution).
My basic algorithm works ...
1
vote
2answers
290 views
RGB values from image into a one dimension array in c# [closed]
I was wondering if there is a was a way to read rgb values from an image into a one dimensional array in C#. If it doesnt make sense, in java I would do something like this.
int[] pixels;
...
0
votes
0answers
22 views
Bones & Blood Sprite [duplicate]
I'm currently playing with a small 2d canvas game for fun.
I'm looking for some images, primarily some bones and blood to be left in an XY position after killing an enemy.
Does anyone know where I'd ...
0
votes
3answers
355 views
Loaded Images are upside down
I'm using SharpDX Toolkit and load a png file with SharpDX.Toolkit.Graphics.Texture.Load(GraphicsDevice, Stream)
If I apply the texture to another texture it's drawn upside down.
The texture is:
and ...
0
votes
0answers
1k views
Drawing and rotating bitmaps (with transparency) efficiently in Android
I just started making a game for Android and I'm already having some issues regarding performance.
You can imagine the game as being some kind of Tower Defense game with a top-view, and the enemies ...
-2
votes
1answer
282 views
Cannot instantiate the type Image java?
public Image images[] = new Image[20];
for(i=0; i<10; i++){
images[i]=new Image(getClass().getResource("/images/"+i+".jpg"));
}
I am trying to add images to array but it gives the ...
36
votes
5answers
1k views
Best Way to allow players to “Dye” images without losing color quality?
I am creating a 2.5D isometric (2D images) game.
I want the players to be able to "dye" their armor, clothes, and other things. I find that grayscaling everything leads to losing out on some of the ...
2
votes
2answers
177 views
Should I create generic bitmap/sound/et cetera wrappers for Allegro?
Basically, I have been writing a game in C++ using Allegro.
I mostly just use the library to draw bitmaps, draw text, and play audio.
My main concern as the game continues to grow code-wise, is that ...
1
vote
2answers
2k views
SFML: Generate a background image
I want to generate a background, which is used in the game, on every instance of the game based on certain conditions. To do so, I'm using a sf::RenderTexture and a sf::Texture like this:
...
3
votes
1answer
343 views
Javascript tile map -> bitmap or JSON
I would like to know which idea is better in terms of performance.
The map is 5000x5000 tiles and I plan to expand it even more. It is split into 50x50 regions and camera doesn't move with player, ...
0
votes
1answer
136 views
Is there a need to set the parameters again when updating a texture?
Suppose that I'm developing the class COpenGLControl here in code guru to use it for showing a 2D texture in an MFC CPictureControl. and after applying some filters on the image, I will update the ...
8
votes
3answers
449 views
Why is it possible to encounter a texture coordinate greater than 1 or less than 0
I'm studying a text about texture mapping and in the preparing to draw session, I read:
Define the texture wrapping parameters. This will control what happens when a texture
coordinate greater than ...
4
votes
1answer
321 views
How do I draw a zoomable image in OpenGL?
Up to now I have used glDrawPixels but since my image is a large geotiff one, I'm getting some horrible results for example:
this is the code used for zoom extent:
void ...
1
vote
0answers
133 views
Good Resolution for 2D Games [closed]
I am trying to figure out what is a good resolution for my 2D platform game. My images are 16x16 and my frame is 640x480 but I will allow it to be fullscreen also. I need a compatible resolution for ...
2
votes
1answer
2k views
Libgdx loading images
I can't find a sulotions that solves my problem, I've tried pretty much every tip I can find, but with no luck.
Error :
Exception in thread "LWJGL Application" ...
1
vote
3answers
817 views
corona sdk scale images
How to scale images to full screen on all devices, i want to use %
The method I've seen so far is to define pixels
image_variable_name = display.newImage( "testimage.jpg", 100, 300 )
I want to do ...
1
vote
3answers
134 views
Generating spritesheet(s) on load
I would like to reduce the size of the spritesheet I am loading by only loading the specific sprites I need. Is there a way to crop and splice images at runtime using javascript? Creating separate ...
1
vote
1answer
89 views
Black areas on different screen sizes
I'm currently facing some problems with sprites/images on different screen sizes. For now the game stage is stretched to maximum width and height of the screen.
In Samsung Galaxy S2, SGS3 and SGS4 ...
1
vote
4answers
283 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
381 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
vote
1answer
395 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
1answer
585 views
How do I programmatically remove an image's background color?
I have a sprite sheet (image) and want to draw it on screen.
image = sprite sheet image
x = player x position
y = player y position
width = player width
height = player height
public ...
1
vote
2answers
800 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
0answers
64 views
Another Question from the Image Efficiency for Memory Handling [closed]
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 ...
50
votes
5answers
11k 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?