Questions tagged [png]

PNG is a raster graphics file format.

Filter by
Sorted by
Tagged with
0
votes
1answer
75 views

How to get rid of the white border/background on my png image?

I am making a game using pyGame; it is basically a space invader game, with a tank. As we can see, this tank image I have has white borders / a white background, which I really want to get rid of. I ...
0
votes
0answers
56 views

Unity not loading png created with external program at runtime

I'm trying to work out why the png files I am trying to load from streaming assets are only coming up as the ? error symbol, and having no luck. The files are png files created with an external ...
1
vote
1answer
83 views

Is it bad practice to use the entire map image as a tilemap?

I made a map in photoshop which I want to use as a map in my game. The question is should I try to cut it up to pieces, or is it bad (performance wise) if I use the way I made it. The picture itself ...
1
vote
1answer
240 views

How to convert png images to True Type Font?

I'm doing a clone of Colonization and I'm trying to use the same font type as the original game. I'm able to get the pixels from the original font files (.ff) using the application from this thread ...
1
vote
1answer
283 views

UnsupportedOperationException: Unsupported format for this image

So.. I'm learning lwjgl currently and I stumbled on this weird error caused by slick-util which seems to be incorrectly displayed. ERROR : ...
1
vote
2answers
703 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: ...
0
votes
2answers
96 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 ...
4
votes
1answer
2k 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: ...
0
votes
1answer
495 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
3answers
909 views

Long loading times on large PNG file using C++, OpenGL & SOIL

I'm currently optimising a C++ OpenGL game, and I've noticed something slightly odd about texture loading. I've got a number of PNG files I load as textures and use as spritesheets; these are ...
3
votes
1answer
4k views

How to write from shader to a texture to a PNG in Unity?

I want to write the information from my shader into a texture and save it in a png. I found this: http://forum-old.unity3d.com/threads/save-texture-generated-by-a-shader.326561/ and this ...
-1
votes
2answers
5k views

JAVA: How do I use BufferedImage to properly render a PNG with Transparency?

I've been around the internet for about 5 hours and found no solution to my issue, so hopefully someone will help me. So' I've been trying to make a simple game. In previous oportunities I've used ...
2
votes
1answer
2k views

LibGDX - How to export a texture as a .png onto, say, the desktop

I'm making a game in which I need to export a texture which the user has edited as a .png into a specified location. I'd like it if I could have the default saving window thing (like on other apps ...
2
votes
1answer
1k views

How can I save an XNA texture as a PNG file?

I have a Color[,] variable and I already know how to convert it to a Texture2D. How do I then save it as ...
0
votes
1answer
1k views

Error on MonoGame Content Pipeline: Texture Importer Error

I just encountered this kind of error when using the MonoGame Content Pipeline and it's my first time to use it to convert png to xnb files (I use a stand alone app for converting files to xnb in the ...
5
votes
2answers
2k views

Animations with individual images in Phaser.js

So I have this game that I made a while back and I want to port it using Phaser. The game is made using individual PNG files for all the animation frames, and there are over 100 of them. From ...
0
votes
1answer
255 views

Pygame.display.set_icon unable to show transparecy

On Python 3.2.5 32 bit, I installed pygame. I made some code with it. It included pygame.display.set_icon(image). The image file is .png and I loaded it by using <...
0
votes
1answer
2k views

How do I render a PNG image with OpenGL?

I have an image (100×200 px) painted with Paint.NET and saved as a .png with 32-bit color depth. How can I render it using OpenGL 1.1 (with the LWJGL binding) or ...
4
votes
1answer
269 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 "...
0
votes
1answer
2k views

Get color array with alpha for an image in java

I can get the pixel array like this: int[] pixels = image.getRGB(0, 0, width, height, null, 0, width); But it ignores the alpha channel, I only get the rgb (I'm ...
0
votes
2answers
114 views

Can you save a png in XNA larger than the backbuffer width?

I'm looking at using the 'savetopng' method of the texture2D class to draw out custom textures. My problem is that my viewport is quite small (the application runs in a window) and the textures will ...
3
votes
3answers
2k views

Reducing APK File Size by using JPG instead of PNG for game background images

I've just finished my (openGL ES 2.0 Android) game and it's almost ready for Alpha-testing. When I export the application to an APK File, the file is taking up 16MB and I would like to reduce this as ...
0
votes
2answers
1k views

Speed up loading of png files (used for textures) in Android OpenGL Game

My game has a few texture atlases that need to be loaded (in my XHDPI folder they total 3.49MB) and on a top-end device they don't take that long to load, however on a low-end device they seem to take ...
208
votes
4answers
16k views

How can I store game metadata in a .png file?

Spore allows player-created creatures to be shared by exporting a .png file. That .png is a photo of the creature, but if it's ...
3
votes
1answer
2k 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
1k views

How can I locate the frames of a spritesheet PNG based on this PLIST data?

Someone asked me to reskin a certain game. Now he only sent me the whole sprite PNG and PLIST files of the sprites. He instructed me to rename each sprite with the same name corresponding to each ...
1
vote
1answer
485 views

Andengine reducing sprite quality?

I have a problem with bandings using andengine. When painting a picture on PC and uploading it to my phone, they look exactly the same. But as soon as I use that bitmap (PNG) in Andengine, I have ...
1
vote
2answers
6k views

Textures quality issues with Libgdx

I have drawn several vector objets and characters ( in Adobe Illustrator ) for my game on Android. They are all scalable at any size without any quality losses ( of course it's vector ^^ ). I have ...
3
votes
1answer
1k views

Black or White Border/Shadow around PNGs in SDL/OPENGL

having the same issue as this: Why do my sprites have a dark shadow/line/frame surrounding the texture? however, when I do the fix suggested there (changing GL_SRC_ALPHA to GL_ONE) it just replaces ...
2
votes
2answers
5k views

Exporting distinct images from a sprite sheet using GIMP

I have recently found that in Photoshop there is a script that enables you to export individual images on different layers into distinct png images on disk. Is it GIMP capable of doing the same ...
4
votes
3answers
7k views

How to play animations (GIF, SWF… )?

I have many diffrent animations made with flash. I can make it as (1).SWF, (2).GIF or as (3).PNG (every Frame per second). Searched in google... but coudn't find anything usefull. SWF: For SWF i need ...
0
votes
1answer
4k views

In Unity3D, try to load a png into a Texture2D in an Editor script and then run PackTextures, but they need Readable flag to be set

I am trying to automatically create a texture atlas from a set of generated png files in an Editor script. The problem is that I can't seem to be able to load a png into a Texture3D without it being ...
1
vote
1answer
600 views

Powers of 2 textures in Android 2d games?

I've read a lot about the importance of using powers of 2 png's for textures when using OpenGL ES. However, how does this relate to Google's own documentation regarding the resizing of graphics for ...
3
votes
2answers
1k views

How can I access bitmaps created in another activity?

I am currently loading my game bitmaps when the user presses 'start' in my animated splash screen activity (the first / launch activity) and the app progresses from my this activity to the main game ...
2
votes
2answers
6k views

Creating a png sequence in Flash? details?

I was wondering if someone could please explain the process and rules for turning an animation into a png sequence, in flash CS5. I know you can go to export movie and chose png sequence but ...
4
votes
2answers
3k views

How to load a png file without alpha premultiplying in ios?

I am making a game in which I use the alpha value, in some cases for transparency, in others for occlusion, and for HDR in others. I'm loading the images like this (this is MonoTouch, but objective-c ...