Questions related to images, including creation and modification

learn more… | top users | synonyms

0
votes
1answer
25 views

JAVA: Unformed Sprite When trying to Read SpriteSheet

So Im a beginner experimenting with ImageIO. Can someone tell me why im getting this pixelated-incomplete sprite? Here's the code public BufferedImage getImage(String location) { try { ...
0
votes
0answers
24 views

File and Image paths in a .jar file

im making a bomberman game and im close to getting it done. The game works ok when i run it in netbeans. I can run the game in any PC that has netbeans in it. But when i build the project into a .jar ...
0
votes
0answers
19 views

show different color areas of image on touch

How do I show colors filled in on a colorless version of an image on user touch. (for example color mania or guess the colors app). I know one way is to provide the same image 3 times (for 3 colors) ...
1
vote
1answer
64 views

how to instantiate UI image in unity2D

I'm making 2d racing game .... and I'm using UI image in the canvas background (road) .my car and enemy cars and I have tried to instantiate enemy car with this script by attaching this script to ...
0
votes
1answer
71 views

How to Reciprocally draw on a 3D mesh and 2D UI Image in Unity?

My question is a bit involved so I'm going to split it into parts and attach a picture. 1) In Unity I'd like to be able to draw a line on a 3D worldspace mesh with the mouse. 2) As I'm drawing on ...
0
votes
1answer
52 views

Java: Exported JAR file doesn't load images

I am using Netbeans to create my game. The images do seem to load when I run it in Netbeans. However, the built jar file only leaves me with a blank screen. This is how I call the images in my game. ...
1
vote
3answers
194 views

2D Sprites vs UI Image Scripts in Unity

I am doing a 2D casual puzzle where the user can drag and drop some pieces into a board. The pieces are 2 or 3 or 4 tiles. Each tile may have text over the sprite. Target platform: Mobiles and ...
4
votes
1answer
149 views

Image edges are distorted inside game

I dont know how to explain this, so I will use images to describe my problem. The image I made using InkScape: What it looks like in-game (ignore the runner): As you can see the edges are not ...
1
vote
1answer
171 views

How do I convert an image into a tile map?

I am working on a game in Pygame/Python, and I'd like to turn an image into a map. The idea is simple: Pixels in the image are colored by tile type. When the program loads the image, I want the color ...
0
votes
1answer
64 views

Is it better to use an image component or to draw on a canvas?

I am developping a small 2D RPG with JavaFX, although my question might apply to any toolkit or even any language for the matter. I have two choices to display the characters, the scenery, the items ...
0
votes
3answers
128 views

How do I convert a greyscale height map to .3ds format? [closed]

I was given some height maps to use for game development, but they are in grayscale PNG format. How can I convert them to 3DS format?
0
votes
1answer
133 views

How can I store tile maps as PNG images?

I want to let players of my top-down game save, load and share worlds as PNG images. How do I read the colors in a PNG file or change them? I imagine something like this: BufferedImage mapImg = ...
0
votes
0answers
27 views

Starling Image is not moving

I am having some problems with my character not showing/moving on the screen. I do not have a vector of textures for a movieclip only one image. My character is: package objects { import ...
0
votes
1answer
82 views

Jmonkey loading texture from fails

I have the following basic code: public void simpleInitApp() { Box b = new Box(1, 1, 1); Geometry geom = new Geometry("Box", b); Texture cube1Tex = assetManager.loadTexture( ...
3
votes
1answer
76 views

SDL2 jagged/staircase edges

I am using SDL2 and SDL2 Image to render png images. When I rotate the textures, they turn out very ugly, like this: This is the code responsible for the rotation and alpha mod. SDL_Rect srcRect; ...
0
votes
0answers
106 views

How to change Google Play thumbnail image in link

Whenever i share my android game which is on Google Play as a link on social media my least favorite pic of the game gets used as a thumbnail. I have since deleted this pic from the developer console. ...
0
votes
2answers
66 views

How to determine areas of pixels of different colors or luminosities?

I want to create a program that determines all the areas of a given picture that have a different color, or the same color with different luminosities. Are there known algorithms that do this job ? I ...
0
votes
0answers
53 views

Load Images in Pygame with XML

As the title suggests, I'm trying to find a way to load images in Pygame with xml, but my attempts have given me naught. XML script: <Creatures> <Creature> ...
0
votes
1answer
410 views

How can I map regions on a world map image?

I am trying to use a map of the real world, but I need to have a way to break it down by countries and regions. Ideally down to a province level. I figure that I'd need to be able to define ...
13
votes
6answers
2k views

How can I create a large space background that repeats, in an unnoticeable way

How can I create a large space background that repeats for an rts game. I want to have complex nebulae and dust fields also, but since the units will have lots of space to explore I can't have a ...
0
votes
1answer
112 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
96 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
160 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
42 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
106 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
141 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
796 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
80 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
85 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
71 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
261 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
63 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
2answers
86 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
293 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
565 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
889 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
4k 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
400 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
294 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
865 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 ...
2
votes
2answers
12k 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
3k 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
108 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
355 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
856 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
498 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
816 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
43 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
118 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
501 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 ...