90 votes

Why don't most major game engines use gifs for animated textures?

GIF drawbacks: very limited color palette, typically 256 colors with ugly dithering (yes, you can have more than 256 colors in animated GIF, but this is uncommon) GPUs don't support GIF compression ...
user avatar
  • 10.1k
32 votes

Why don't most major game engines use gifs for animated textures?

In order to use any image file as a texture in a game, there must be a texture created on the GPU and the pixel data in the image file must be loaded to that texture. GPUs do not support many of the ...
user avatar
13 votes

Why don't most major game engines use gifs for animated textures?

GIF has a limited color palette. (255) You have to implement parsing and animating the GIF too. So there is not a advancement in time nor in format's technical aspects.
user avatar
  • 260
9 votes
Accepted

Can't create "hero walking" animation

Regardless of the level of details and the number of pixels you have, you must start with a thorough understanding on how walking works. If your character looks like shaking its legs, it probably ...
user avatar
  • 1,025
9 votes
Accepted

Should I ask my artist to make Sprites in full resolution or can I scale them up?

Pixel art generally responds extremely bad to any scaling. Just a small size adjustment will make pixel art appear either blurry or distorted, depending on what scaling algorithm your engine uses. For ...
user avatar
  • 112k
4 votes

How can I correctly line up differently sized animation frames with a character?

I assume you will be using some modern rendering API to draw to the screen, such as OpenGL or D3D. You will certainly want to batch sprites as much as possible and use sprite sheets to reduce the ...
user avatar
  • 3,027
4 votes

Multiple SpriteSheets break batching

Sort the rendering order by the used sprite sheet and not by distance from camera. This works fine if you use z-buffer and don't render transparent objects. I.e. first draw all the trees (and other ...
user avatar
  • 870
4 votes
Accepted

How to swap row/column major order?

You just swap your rows/columns ordering. Iterating from 0 to Frames-1, you first increase X ...
user avatar
  • 10.1k
4 votes
Accepted

How to programmatically change sprite sheet sub-sprite name

Ok so based on @Rouze comment regarding the sprite slice renamer, I've managed to mock something up quickly that does the job. Here is the quick mockup I did if anyone else is looking for a quick and ...
user avatar
  • 1,092
4 votes
Accepted

How do I move a sprite with out the sprite leaving a trail?

The way a computer draws to the screen is very different to say... how we draw on a piece of paper. The computer actually is flipping bits on a memory array, called the video memory. This memory array ...
user avatar
  • 380
4 votes
Accepted

What does pressing CTRL do when editing a sprite sheet?

Holding ctrl in the Sprite Editor allows you to manually move the pivot point with snapping. With ctrl pressed (orcmd on a Mac), you can snap the pivot to one of the pre-defined locations, as defined ...
user avatar
  • 5,176
4 votes
Accepted

One big spritesheet vs many smaller spritesheets?

There is no "best" way. There is the way that is most appropriate for your program, in terms of code complexity, managing your data sets, performance, etc, and many of these are questions that only ...
user avatar
4 votes
Accepted

Are spritesheets worth it? Is a zip a good alternative?

First of all, there are already image formats with compression. In particular the PNG format supports lossless compression. Furthermore, while it is true that taking a bunch of PNGs and zipping them ...
user avatar
  • 18.4k
4 votes
Accepted

Spritesheet with unstable width

When you want to use a spritesheet with non-uniform frame size, then you need to introduce the concept of a separate "pivot point" for each animation frame. The pivot point is the "zero-...
user avatar
  • 112k
3 votes
Accepted

How do I make an 8 bit sprite sheet using GIMP or Paint.NET?

Sure, this is quite simple really. I'll guide you through Paint.net. Open the application and go to New. In the dimensions, put 8 for width and 8 for height. A new 8x8 canvas will open, typically I ...
user avatar
3 votes
Accepted

Set color by uniform per sprite using libGDX SpriteBatch

Setting a uniform per sprite is probably not a good idea, as Sean Middleditch already pointed out. Tinting a sprite in OpenGL can easily be done by defining the vertex colors. Since the vertices in ...
user avatar
3 votes

C# XNA - How to animate using Texture Atlas/ Sprite Sheet

You need a Source Rectangle and Destination Rectangle. The Source Rectangle will pull a rectangle defined by you out of the sprite sheet, then draw it at the specified position. PsuedoCode ...
user avatar
  • 323
3 votes

Quick sprite contouring solutions?

it's trivial, you can do it yourself. Assuming your sprites have alpha value 0 in unused areas, you can do the following (in pseudocode): ...
user avatar
  • 870
3 votes

What is the difference between a sprite sheet and a texture atlas?

A sprite sheet and texture atlas are nearly the same. They are both bitmap image files (jpg, png, etc.) that contain multiple smaller images, usually in a grid, that are indexed and displayed using ...
user avatar
  • 176
3 votes
Accepted

Using sourceRect or cropping out a Texture 2D to draw? MonoGame/XNA

The sourceRect is much better for this. Watch this if like a funny video explaining why: https://www.codeandweb.com/what-is-a-sprite-sheet-performance The more technical explanation: I am using ...
user avatar
3 votes
Accepted

How should I animate sprites with separate body parts?

We don't answer questions about which technology to use here, since it comes down largely to personal preference, compatibility with your studio's workflows, and the needs of an individual project. ...
user avatar
  • 113k
3 votes
Accepted

How to use Unity to slice sprite

If you are seeing trembling in your sprite animations the problem is the pivot point on the sprite sheet. In Unity, the pivot point looks like a blue circle on each sliced sprite in the editor (see ...
user avatar
3 votes
Accepted

What are the legal considerations with using spritesheets?

IANAL TINLA If you are talking about the technology known as sprite sheets: Such a technology and method is not patentable, as it is not novel to put images in rows or cells. You could easily do this ...
user avatar
3 votes
Accepted

Any tips for aligning existing sprite sheets to a grid?

in your example, the frames are divided into unequal parts, but they have a pivot poitn down the center. Unity has the ability to create frames automatically
user avatar
3 votes
Accepted

Making my characters modular

In order to solve the problems of parts not lining up, you would need a way to specify where the joints are. That is, you will need to build an kind of tree, where each node is a part of the body and ...
user avatar
  • 18.4k
3 votes

Slicing irregular spritesheet (automatically?)

Since you found the picture online, without any json file attached or any other information, its not possible to cut this into multiple sprites automatically. You'd ...
user avatar
  • 4,218
2 votes

How can I dynamically load the correct sprite from a sprite sheet?

my approach will be almost similar but I will prefer to use a full sprite sheet of cards to avoid the extra naming problems. Before we get started here is the link to the sprite sheet. http://i.stack....
user avatar
  • 1,459
2 votes
Accepted

Getting the correct texture from an Atlas

Your hunch is correct. There must be external information mapping regions of the image to sprites unless all the information the application needs can be derived from hardcoded knowledge and ...
user avatar
  • 4,074

Only top scored, non community-wiki answers of a minimum length are eligible