Questions related to images, including creation and modification

learn more… | top users | synonyms

0
votes
0answers
42 views

.PNG changes color in Love2D

I have a small .PNG file. I load it with: picSmiley = love.graphics.newImage("salamander.png"); and I draw it with: love.graphics.draw(picSmiley, objects.ball.body:getX(), objects.ball....
1
vote
2answers
54 views

Using sprites in pygame without classes and objects

Relevant information I'm in a grade 11 computer science class that uses Python & Pygame. We're aloud to use sprites and images though we're never taught it, just drawing graphics like squares and ...
0
votes
2answers
39 views

Gamemaker: images appear blurred in application

I'm making a practice game (generic space invaders clone) in Gamemaker Studio. However, there appears to be a problem with the images. While they look acceptable in Gamemaker Studio (not amazing, due ...
-2
votes
1answer
70 views

How to create image slider using unity

I have created one unity app with vuforia plugin. App contains image target to view an object and play video. I need one more feature to create gallery view from image target. I want to create ...
0
votes
2answers
82 views

Technical Design Document and PNG filesizes

I am writing a Technical Design Document and starting to list assets and their file sizes. The formula for calculating the file size of a PNG is easy: width x height x bit depth. I am having a ...
0
votes
1answer
34 views

Can't set Source image for UI image

I am new to Unity. few days back i have started learning to make games using Unity Engine & I started making a very basic car racing game. In order to add an On-screen SpeedOMeter for my car I ...
0
votes
2answers
59 views

How to draw an image on canvas without html

I'm trying to add a sprite to the canvas of my game. However, I don't want to use an image tag. However, I haven't found a way to do this no matter how hard I searched. Something like: var image = '...
0
votes
2answers
47 views

How add a sprite to canvas using JavaScript?

I'm very new to sprites and I'm trying to figure out how to use them. I want to use a simple solution. Something like this: var c = document.getElementById ('canvas) var ctx = c.getContext ('2d'); ...
3
votes
1answer
113 views

How to pass PNG image data directly to SDL?

Well passing just external PNG to SDL is very easy with the SDL_image library. I have a class that does just that. The code looks like the following: SDL_Surface* Texture::LoadImg(const char *...
2
votes
0answers
42 views

Custom Inspector for textures?

I am working with an open source project called Project Porcupine. The project is a game engine for a base building game that allows for one to extend the game. We have a system to read texture files, ...
1
vote
0answers
17 views

Unity DirectoryInfo not working in OSX standalone build

So I'm building an application in unity which I hope to use at a market day coming up soon at my school (it's not a game, it's basically like a checkout app, kind of...) Anyway, I'd like to be able to ...
0
votes
0answers
48 views

Issue with dark .PNG files in Unity

I made sprite assets in Krita and I exported them as .PNG files. When I import the files into Unity assets, however, they become a lot darker than the original colors. So far, I haven't found the ...
0
votes
1answer
47 views

Make UI Button Image Size Independent of Screen size Unity

I have two UI Buttons with image sprites in Panel (inside canvas). I have set their sizes to 40 in the inspector. If I run game in maximize mode, buttons retain constant assigned size of the inspector,...
0
votes
0answers
20 views

Drawing a 2D polygon filled with a rotated texture

As I have seen, System.Drawing.Graphics in C# has proven to be really bad at handling larger images. So, if I want to draw a both tiled and rotated image, I will have to draw each tile directly to the ...
0
votes
1answer
52 views

Unity2D: Scaling and Locking Image to anchor points

I have a script that uses Index to change an objects sprite using OnClick to move through the sprites, like a slideshow. I want the image to scale to the size of my anchor points, because I've notice ...
0
votes
1answer
37 views

Showing background transparent image in android

I have a image with transparent background created from photoshop. I added this to my android game which I am creating using libgdx. But when I add it to that, it is shown with white background like ...
1
vote
1answer
48 views

why are texture atlases called texture atlases and not image atlases

More specifically, is there anything about texture atlases specific to textures? From what I've read of them, they might just as well be called image atlases. Images are not the same as textures, but ...
0
votes
1answer
40 views

Got unexpected results from perlin noise. Wondering what it is doing?

I was just messing around with perlin noise and got this. Wondering if anyone knows what it is or has seen it before. Here is the code(LUA with love2d engine): function love.load() love....
3
votes
1answer
60 views

How to save one color channel, taking only 1 byte per pixel?

How can I save only one color channel, such that it would only take 1 byte per pixel? I only want to save the alpha channel and apply colors later using a custom shader. But all the formats I tried ...
1
vote
1answer
111 views

Programmatically change combination of sprites

I am a total newby to unity and cannot figure out how to achieve the following: I want to show a picture composed of different sprites. E.g., a pen with four binary features: the pencolor (black or ...
1
vote
0answers
47 views

How do I resolve the inability to get an input stream from URL?

I am unsure if anyone has ever had problems with this, but I am having difficulty trying to get the URL to work properly however, this is what the logs says javax.imageio.IIOException: Can't get ...
1
vote
1answer
85 views

Drawing on an image before drawing on screen in XNA using VB.NET

I'm programming a game in XNA, using VB.NET. I want to create an intro to the game that zooms in/out the whole screen and scaling each image to accomplish this is cumbersome at best. I like to be able ...
0
votes
1answer
85 views

Libgdx change the image inside table dynamically

I am trying to draw a HUD that shows the score and time and image like loading but I want to update and change the image when the score get higher but I tried to do that but it is not working. I ...
0
votes
1answer
757 views

How to make texture size correctly in THREE.js?

I'm new to THREE.js and I have a frustrating problem. I can't get my grass texture to size "normally" on the terrain. I get it, the terrain is steep, but that doesn't mean the grass should be ...
1
vote
1answer
45 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
58 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
17 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
62 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.
1
vote
1answer
102 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
30 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
188 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
270 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, PorterDuff.Mode....
0
votes
2answers
123 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
54 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
74 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
99 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
1k 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
147 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
42 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
16 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
132 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
64 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
59 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
89 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
30 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 ...
4
votes
0answers
67 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
310 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 built-...
0
votes
1answer
158 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
8k 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
161 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 ...