Questions related to images, including creation and modification

learn more… | top users | synonyms

1
vote
1answer
22 views

Image Interpolaton for Rotation

I am building a 2D game in Java in which I use trig operations for rotation. I know Java offers an excellent graphics library but I intend to make my own code just for learning purposes. Now the ...
0
votes
1answer
21 views

cocos2d-x Label Load Image like Sticker-Smile..(by html or …)

hi and sorry for my english... i am using cocos2d-x (c++)... can i load sticker (smile) in my Label(a text mixed by image)? i know that we can load bitmap fonts by: Label::createWithBMFont also i ...
0
votes
0answers
15 views

In Processing, why does this call to image() cause an error?

Here is my code: Hero robinHood; Arrow arrow1; PImage bg; PImage left, right, still; float positionX = 383; float positionY = 455; void setup() { size(800,600); bg = loadImage("background1.png"); ...
3
votes
2answers
55 views

Stop Unity from smoothening out images

In Unity, low-resolution images are "smoothened out". Is there a way to keep them pixelated? For your information, the images that I'll be using are in PNG format.
0
votes
1answer
52 views

Hybrid App - Game Encyclopedia Image Asset

An in-game encyclopedia usually consists of entries and images for things related to the game. For example, pokemon's pokedex. Image of Pokemon, text description and so on. I've happen to encounter a ...
1
vote
0answers
25 views

Getting the polygon footprint from a map

I'm trying to implement the Explicit Corridors method to generate a navmesh for a large city. The algorithm takes a list of convex polygons representing the obstacles as input. The paper only ...
3
votes
0answers
79 views

Change color of bitmap

I am attempting to understand the easeljs ColorFilter and its use with cache. There is quite a bit of information at the easeljs site but it's not clear based upon the examples and documentation. ...
0
votes
0answers
102 views

How can I change the color of the default android drawable star?

I asked a question before and I got an answer to do this: Drawable drawable = getResources().getDrawable(android.R.drawable.btn_star); drawable.setColorFilter(Color.YELLOW, ...
0
votes
2answers
109 views

Will scaling images at runtime impact my game's speed?

I have read the android developer guide to working on different screen sizes. My question is, if I only provide one image in the drawable file, and let android scale it for me, will it impact the ...
1
vote
1answer
31 views

How to add images?

I was adding images after reading in the documentation: This means that if you generate a 200x200 image for xhdpi devices, you should generate the same resource in 150x150 for hdpi, 100x100 for ...
0
votes
1answer
69 views

Image rendering with additional space around it

When I try to display an image that is 400 pixels wide and 800 pixels high, it is not displayed this way. Instead it is diplayed like this: Instead it is displayed like this You can see at the bottom ...
1
vote
0answers
48 views

Image Buttons Have Low Resolution Quality

I'm using Synfig Animator to draw my animations for my android game I'm also using Android Studio to write the code for it, However. On testing, the images that i'm using looks very bad and unfocused ...
1
vote
2answers
283 views

Is async image loading possible?

Can anyone tell me if there is a async version of LoadImage() method? I found about Resources.LoadAsync, however the method doesnt work. Thank you
0
votes
1answer
61 views

Problem with transparent textures in SFML

I have been told that this is kind of a common problem with transparent textures, but didn't get any further information on how to solve it. In my code, I'm trying to render this texture (a square ...
0
votes
0answers
40 views

Difference between sprite and texture? [duplicate]

Can you please explain the difference between texture and sprite? When we zoom in a sprite, it appears blurry because it's basically an image. Is it the same for a texture? I read this comment on the ...
0
votes
0answers
15 views

Java keyListener animating bufferedImages

I am making a game similar to a photo scramble/unscramble game which requires the use of keyListeners. I set up the logic but when I code the animations, they just sit there and do nothing and ...
1
vote
1answer
83 views

Why loading ~250mb of compressed texture data spills Out of memory error on Windows

I am making SDL2/OpenGL 2D game for Windows with a lot of pre-rendered sprites. When testing on my laptop I got SDL_Surface creation failed: out of memory error during loading assets. Windows' ...
0
votes
1answer
43 views

SFML dynamically loading images

So I'm screwing around with c++ and SFML, when I thought to myself the following: If the images are compiled into the executable, with enough sprites for the game, memory might become a problem at ...
0
votes
0answers
48 views

Scrolling Background - smoothest way

I am trying to find the best solution for drawing a scrolling background in my app in Java. For now, I have two images and I move them by 1x and put it's thread to sleep for hmm, 5ms. The problem is ...
2
votes
1answer
68 views

Software polygon rasterization with transparency using raw image data

I have an image with shapes in it (squares and triangles with different colors scattered in the image) and I have an algorithm that matches the image and extracts the geometry vertices from image raw ...
1
vote
0answers
25 views

Ericsson compression for normal and bump maps

how does ETC2 fares when compressing normal maps and bump/height maps? Since we are talking about using an algorithm created for visual fidelity, applied to vector and numerical data ⃰ I'm quite sure ...
3
votes
0answers
36 views

Java image in JFrame rendered weirdly

I'm not sure if this is intended or not, if it is, I'd like to know a way of preventing this: I've got this image (which is for testing purposes, the actual one has a texture, but I'm not using it ...
2
votes
1answer
192 views

Unity 2D Sprite Bending between Hinge Joints

I've created a tentacle that consists of multiple game objects, each attached to eachother using HingeJoint2D's. Gameplay wise this multiple segmented approach is great because I can use Unity's ...
0
votes
1answer
77 views

Overlay Image on Mesh Unity

I have a whiteboard object that I would like to put images/pdfs/powerpoints on. I am not sure how to overlay an image on a white shader. I looked at this post: Loading .PNG file and using it for ...
0
votes
2answers
3k views

How to detect mouse over for UI image in Unity 5?

I have an image that I have setup to move around and zoom in and out from. The trouble is the zoom can be done from anywhere in the scene, but I only want it to zoom when the mouse is hovering over ...
0
votes
5answers
132 views

How do you create images that work for multiple resolutions?

I'm currently doing some game development and I've been curious about this situation for many years. Let's say your game has two resolutions: 640x480 and 800x600 (using small numbers just for ...
1
vote
0answers
65 views

Get original image size in Ren'py

I'm building a visual novel and in one scene, I want to have a couple of different images move from one position to another and change size as it moves. My first position is called "doorway", my ...
1
vote
1answer
44 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
80 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
30 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
1k 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 ...
2
votes
1answer
211 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
202 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. ...
2
votes
3answers
781 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
184 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
388 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
245 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
222 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
218 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
1answer
172 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
205 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
2answers
71 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
1answer
769 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
172 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
136 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
251 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
47 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
110 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
1answer
2k 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 ...