Questions related to images, including creation and modification

learn more… | top users | synonyms

0
votes
1answer
44 views

Rotating an image in Python

So I am making an "Asteroids" like game and I can principally get my sprites image to rotate but when I do, the image gets kinda torn apart. This is the method I am using for rotation. Any help would ...
1
vote
1answer
65 views

Getting normal map of an image

I'm trying to achieve the results in this tutorial: Link So far, I was be able to do that; with these; public PixelMap GetNormalMap(double strength) { var newMap = new ...
2
votes
1answer
84 views

Weird effect when generating gradients for height map

I am experimenting with generating height maps using radial gradients and perlin noise, using a technique I found here: ...
0
votes
0answers
33 views

How do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working

How do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working. PoolGameSingle poolgame = new PoolGameSingle(); var cue = poolgame.CueStick; ...
0
votes
1answer
99 views

Shipping images with a C++ program [closed]

I've done hobby development in Java for a couple of years now, and I've just started learning C++. I understand syntax fairly well, but I'm extremely confused as to many structural facets of a typical ...
0
votes
0answers
32 views

(libgdx) how to make an actor transmits the events it receives to its children?

I use the following class : public class InGameMenu extends Actor{ /** VARIABLES **/ private boolean debug= true; private float x,y,width,height, margin; private static final String TAG = ...
0
votes
1answer
157 views

OpenGL / Soil Image Loading Difficulties [closed]

The Problem I am attempting to load and display an image in OpenGL using the SOIL library. I originally started with lodePNG but I had difficulties getting the image to display so I assumed it was ...
0
votes
0answers
40 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
43 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
53 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
66 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
1answer
89 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 ...
2
votes
1answer
35 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
41 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
64 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
128 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
528 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
512 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
1k 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
246 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
191 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
398 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 ...
1
vote
2answers
7k 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
2k 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
89 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
286 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
496 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
328 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
601 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
41 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
104 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
376 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
403 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
3answers
421 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
336 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
190 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: ...
6
votes
1answer
192 views

Can SFML load anything other than RGBA8888? (RGBA4444, RGB565, etc.)

I can't see this mentioned in the documentation. Am I missing something obvious? Or does SFML really give you no option, forcing everything to be loaded as RGBA8888? Searches on Google and the SFML ...
3
votes
1answer
357 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
157 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
531 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
379 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
134 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
1k 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
137 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
94 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 ...