Questions tagged [compression]

The name given to the process of encoding data such that it uses lesser number of bits as compared to the original representation.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Extract “alpha” layed from “.dds” DXT3/DXT5 texture file

Given: Examples are provided using python, but it's not matter. There is white_small.png, contains RGBA. And there is ...
1
vote
2answers
86 views

Should I compress WebSocket payload data in a game where latency matters?

I have started work on a new game project where users are in an open environment and fight each other in a fast-paced shoot-out. I know that compressing all of the WebSocket's payload data using zlib ...
1
vote
4answers
171 views

How to improve load times of audio files without loosing too much quality for HTML5 game?

I'm creating an HTML5 game. We have high fidelity composed music, in the format of wavs and mp3s— some ...
0
votes
1answer
249 views

Serialization/Deserialization Solutions for Loading & Playing Audio Files

I'm creating a music game in unity, and the first issue I encountered was that I had no way to load music into the game from a file. I tried using a WWW to load the mp3 files, but in my research I ...
2
votes
0answers
180 views

Shadow Map compression artifacts [closed]

I am having weird artifacts with a shadowmap. The shadows seem to missing inside the polygons. But it is not wireframe rendering, and it is certainly not shadow acne (frontface culling is on and the ...
2
votes
1answer
419 views

Game compression?

I want to know the right and good way to compress my game when I build it. I made 3 levels with all my enemies there. The size of the game file 3GB in the desktop. When I build my game I get 1GB. All ...
3
votes
0answers
247 views

Should I use ASTC

So I read about ASTC and that it should be preferred over S3TC. Where I'm concerned is the current status of hardware support. According to Wikipedia every major GPU manufacturer supports ASTC but ...
0
votes
1answer
290 views

Should I compress the game data files?

I am working on packaging my game resources into a single file. I have chosen the format but I don't know whether I should use compression or not. I understand the possible pros and cons: Compression ...
0
votes
1answer
4k views

Compressed vs Uncompressed Textures differences?

What is the difference? As far as i know, compressed textures would speed things up, because the PCIe bus has to transfer less amount of data, and the interconnect is the main latency issue with GPU'...
26
votes
9answers
10k views

How does delta compression reduce the amount of data sent over the network?

Many games use the technique of delta compression in order to lower the data load sent. I fail to understand how this technique actually lowers the data load? For example, let's say I want to send a ...
0
votes
0answers
38 views

Best form of audio compression / packing

Currently in my game I have a large amount of sounds and am getting to the point where I need to find a way to reduce the overall size of the sounds to save space when I deploy. I was wondering if ...
0
votes
1answer
324 views

Storing large amounts of voxels in file

I'm making a game similar to Dwarf Fortress and I've run into a large problem from the start. How can you store such a large amount of land on disk. With every voxel holding an integer with the 28 MSB ...
1
vote
0answers
92 views

Reconstructing 3D Rotation from 8 byte - Assistence required

I am currently trying to load 3D models and animations into a program. The file format has no public description, so I am decoding them piece by piece. (I'm studying computer science and it's for ...
3
votes
0answers
56 views

How can I find an animation's final compression size in Unity?

I've been looking at animation compression, and the only way I can seem to find it's final size is to create a Build and check it in the Profiler. There must be an easier way?
0
votes
1answer
349 views

Minecraft chunk file decompresssion

First of all, hello everyone, I'm currently making a program to read Minecraft region files (r.#.#.mca) for a server. The problem I have is that I can't decompress them, I tried GZip and ZLib ...
2
votes
1answer
197 views

Chunk/Region Compression/Decompression

Reading this article here, the author writes about chunk saving and using a lookup table and then saving each chunk in a region file, each region file having 4096 chunks and each chunk having 4096 ...
1
vote
0answers
95 views

Avoiding audio transcoding in Unity?

I'm working on a project where I only have access to MP3s versions of audio tracks I'd like to use. Unity is trying to be helpful and recompressing everything as Vorbis, which is not ideal due to ...
0
votes
1answer
98 views

SVD vs Normal decomposition for BRDF compression

In the slides over here by NVidia, they describe methods for BRDF compression. They first create a BRDF matrix where each column(or row) corresponds to a single light direction (or outgoing view ...
0
votes
1answer
386 views

How to read a custom binary file made with Adobe air into Unity 3D & C#

I have a custom data file from a project that was authored in actionscript some years ago by another developer. I am porting parts of the project over to Unity 3D. I don't have any documentation for ...
7
votes
1answer
480 views

How can I minimise data sent through a network in a modern FPS?

I am aware of snapshot interpolation with the use of delta compression as being a technique used to minimise the amount of data sent in a modern FPS game like Quake 3, but what other techniques are ...
1
vote
2answers
303 views

Efficient way to implement animation from spritesheet?

I'm actually trying to port a GBA game to SDL for educationnal purpose. The game has many sprites and tiles. Since the GBA screen size is 240x160px, I decided to scale it 2x. At first, it went okay ...
-1
votes
1answer
57 views

What is the recommended way to store compressed textures in files?

Uncompressed textures can be stored in lossy formats such as jpeg and it saves a lot of hard drive space. However for obvious reasons you cannot do the same on compressed textures. So what is the ...
1
vote
3answers
932 views

Loading Collada Files Quickly (three.js, OpenGL, Javascript)

Okay, so I've created these sleek-looking spaceship models for an OpenGL game that I'm going to make. To make them look sleek and smooth, I used a Subdivision Surface modifier in Blender. Hmm... ...
3
votes
1answer
479 views

How can I compress resources into a single file in Java?

Today I've finished my game, but there's a problem. There're more than 500+ images in my resources folder and I want to compress them into a single file, like other games do (for example put ...
1
vote
2answers
488 views

How to create old-school format music with small file sizes

My friend and I have been working on a project recently, and because we are hard coding everything (other than the graphics library, Pygame), the total size for our project is super small. I feel like ...
1
vote
1answer
141 views

Compressing language for Game use to save Packets

Given ASCII is 8 bits (1 byte), UNICODE is 32 bits (4 bytes). An idea came to my mind to support multiple language by isolating certain UNICODE Letters to support multiple language for my chat(game) ...
2
votes
1answer
583 views

Client-Server Game Communication (w/ Protobuf, Relevancy and Delta Compression)

So, I have reached another problem while trying to implement my client-server communication. From everything I've read there are three main ways to minimize packet size: Only send what has changed to ...
0
votes
1answer
290 views

Compress 16 bit raw data in webgl

I have a 3D volume where every voxel is 16 bits. Is there anyway I can use some kind of compression to store the data so I can use less video ram? Webgl supported different compressiosn if you enable ...
0
votes
1answer
573 views

Implementing Client-Server Delta Compression (with Protobufs)

I am writing a 2D real-time RPG in C# and I am trying to implement client-server communication using protocol buffers. I am trying to figure out how to implement delta compression to reduce message ...
1
vote
1answer
252 views

Does compressing data before transfer make a game run faster?

I want to make my game as fast as possible as it is real time and fast paced. I have already decided to encrypt my data here and I was wondering whether compressing it would be faster for the client ...
4
votes
2answers
1k views

Generate ETC2 compressed texture from Android Bitmap in OpenGL ES 2

My app currently uses a lot of textures most of which probably could be compressed quite a lot by using ETC2 (my app runs on 4.4 so i have a lot of devices supporting GLES30), i cannot use ETC1 since ...
1
vote
1answer
350 views

texconv produces texture with same size using BC1 or BC4

According to msdn, the BC1 block compression format is for images with 3 color channels and 1 bit alpha channel and the BC4 is for images with 1 color channel and no alpha. Using the same RGBA input ...
0
votes
4answers
2k views

Why use compression such as zlib? [closed]

Compression and encryption are different things AFAIK, so why even use compression if you have to still decompress anyway, is this just to reduce distribution size or is there some other reason?
3
votes
2answers
562 views

(XNA) Possible to hide, compress, or rename .XNB files?

I'm fairly new to XNA (only a week into C# and XNA at this point) but I have been developing games for a while now, and the program I used did not require any/many external files in creating an ...
13
votes
4answers
2k views

Avoid double compression of resources

I am using .pngs for my textures and am using a virtual file system in a .zip file for my game project. This means my textures ...
2
votes
2answers
13k views

How can I reduce Unity's package size?

I've been experimenting with Unity3D 4.3's 2D features. I've created a simple prototype game to learn how Unity works, how to create sprite animations, collisions and all the basic things. My ...
-5
votes
2answers
271 views

Why is music compressed with lossy codecs down to low bitrates in modern games?

I wonder why anyone would compress the soundtrack of a game with lossy codecs (mp3 mainly) down to 128 kbps bitrate. Thing is I see it on most of the games. Rarely a game has 320 kbps soundtrack, let ...
0
votes
3answers
4k views

Confused about DXT/DDS compression and color depth

I have done my research on DDS/DXT compression, and the information is kind of "everywhere." It is rather difficult to even find good, organized, sensible information on color depth. However, it is ...
2
votes
2answers
2k views

How to pack the game files into one without using any file compressor?

Well, one example is this file of the game The Sims 2 for PS2: quickdat.arc. The file contains this .arc extension, but it's no one an archive file and it contains some data of the game inside. How ...
0
votes
2answers
957 views

lz4 archive with encryption [duplicate]

I want to make a game data archive that contains all the game assets, now I could use zlib or lz4 to just make a simple zip archive type thing, but I need a bit more security, does anyone have any ...
1
vote
1answer
215 views

Does iOS support BC4 compressed texture?

I've been designing a new OpenGL image algorithm using BC4 textures at its core. It works well accross Windows and Mac, my main targets up to now. But today, the customer added a new requirement : it ...
0
votes
1answer
1k views

Using compressed(ETC1) textures in LibGDX

I use standard android tool for compressing PNG texture and archiving it with gzip: /android-sdks/tools/etc1tool texture.png --encodeNoHeader gzip texture.pkm ...
1
vote
2answers
4k views

Compress / make Blender .obj file smaller

I have been learning the basics of blender for the best part of the day, and I still cannot figure out how to make models(imported) smaller in file size(where their original file size is 2MB+). The ...
2
votes
1answer
738 views

Distortion of color space in UDK (material editor)

Question Using UDK's material editor, I wish to use a texture as a two-dimensional array of values for mathematical computations (basically, the color components of each pixel in the texture alter ...
1
vote
1answer
857 views

Objects won't render when Texture Compression + Mipmapping is Enabled

[EDIT: FIXED - Calling setting texture max level fixed that] I'm optimizing my game and I've just implemented compressed (DXTn) texture loading in OpenGL. I've worked my way removing bugs but I can't ...
2
votes
2answers
2k views

Best practice for image compression

Which is the best format or best technique to compress images without loss of quality for iPhone/iPad games?
9
votes
3answers
1k views

What is the state of the art at shipping game graphics such as lots of small BMP files? [closed]

We have lots of small BMP files which I think would be easier to copy if we had them combined in a big TAR/ZIP/whatever. What is the state of the art at shipping game graphics? We are using C# and ...
18
votes
2answers
4k views

What are the pros and cons of these voxel data file formats? [closed]

.VXL .VOX .KVX .KV6 .V3A .V3B I am trying to decide whether it's worth going with any of the above, or some other, or if I should roll my own. The deciding factors in order of importance are: ...
3
votes
2answers
2k views

State of the art in image compression?

I'm looking for good algorithms for compressing textures offline (ie decompressing them at install or load time, I know about using DXT/3DC to save runtime video memory, but these create awful visual ...
0
votes
3answers
305 views

Converting a Flash animation to Silverlight

I recently had an animated logo done in Flash for Deen Games. I need to display in all my Silverlight games. The problem is, the logo is about ~8 seconds long (205 frames); if I export all the images ...