All Questions

Tagged with
Filter by
Sorted by
Tagged with
2
votes
3answers
96 views

Centralized ResourceManager Class for every type of Asset in an Game Engine

I am trying to Implement resource manager for my hobby game engine. The problem I am trying to solve is that I want one centralized resource manager, which delegates resource loading to a bunch of "...
3
votes
1answer
94 views

How to load game resources correctly regardless of the working directory?

I am writing a resource manager for a hobby game project that reads textures/fonts etc. Up to now, I was giving the location of the files relative to the executable path, like: ...
1
vote
1answer
178 views

Separate game engine from game

I'm building a simple game engine (or mostly rendering engine) and I would like to separate the "engine" part from the "game" part. So, I've come up with an idea to build "engine" part as a library (...
0
votes
1answer
432 views

How can I read an image from a binary file?

I'm trying to put all the assets inside a binary file and then trying to read them from the file itself, without scattering all them around in separate folders to let them exposed. What I'm trying to ...
0
votes
1answer
287 views

String table or a tree for virtual filesystem

I am developing a binary file format to store my game's assets and I am thinking about how to implement the "file table". One option to would be to create a structure for file entries like this: <...
1
vote
2answers
165 views

How do you retrieve assets that have been stored by UUID?

I'm designing my assets, and thinking about using a UUID or a name for accessing them. I decided to use UUIDs for identifying them and for storing/accessing the cache, but what if I want to get/use an ...
12
votes
3answers
3k views

Identifying assets in a game engine?

I want to identify my loaded assets, but I don't know which one should I choose. There are 2 options: Name (string) This is the easiest and also fast with unordered_map ( O(1) ), but way slower then ...
3
votes
0answers
210 views

One big asset file or many small asset files?

I'm working on a game and I'm wondering if it is better for performance and memory usage to have one large file containing all my assets (the assets are in a custom format) with a look up table at the ...
4
votes
1answer
456 views

Stored Textures in C++ Projects

I have executed the following command in order to store a texture (PNG) file in a C++ header file: xxd -i Texture.png Texture.h. How would I go about loading this ...
3
votes
2answers
6k views

How to find resources location regardless of working directory?

I am working on a resources loader for my personal C++/OpenGL ES engine. My resources are in a resources folder separated trough different sub-folders (...
6
votes
1answer
301 views

Set the name of an animation in collada to be used by AssImp

I am using the collada file format to contain my model and animation but when I use AssImp to load the file the name will be empty for the animation. Where is the name for animation set on the collada ...
-1
votes
1answer
2k views

How to encode game files or pack to one file like game_data.dat [duplicate]

I am a beginner C++ programmer. I am creating a custom Open Tibia Server and I use the alternative Tibia client (OTClient). I want encode game files (image, sound, lua, etc.) or pack all files into ...
2
votes
3answers
4k views

How does game asset file encryption work?

How does file encryption in game assets work, for example the unreal engine has a .assest extension, or I also see a .dta ...
0
votes
1answer
87 views

assets access with index offsets

My question if about resource management. Is it a good idea to store resources like Sounds in an array and then make a second array(lets call this SoundCollections) as a sort of reference table(name + ...
3
votes
1answer
1k views

Multiple texture coordinates per mesh?

So far I've used the same texture coordinate for both the normal and diffuse textures on a mesh, yet when reading the Assimp documentation (http://assimp.sourceforge.net/lib_html/structai_mesh.html#...
0
votes
1answer
332 views

OpenGL assets and new OpenGL context

So I have a bunch of meshes, materials, etc and then all of a sudden the window needs to be torn down and then recreated (such as switching on fullscreen with GLFW) which means I will get a new OpenGL ...
0
votes
0answers
192 views

Resource/Asset Manager [duplicate]

I'm creating a ResourceManager. At the beginning i'm creating a groups of resources which contain a map of resources. The role of groups is to quick load/unload ...
0
votes
1answer
245 views

Approach on how to split game assets into split archives

With a custom binary file format for archives that is structured similiar to Valve's VPK files I have a Game.index.gcf which holds information about all files and ...
1
vote
2answers
774 views

Resource Files creation and quick parsing

I'm having to come up with the format of my Resource File and I'd like to ask about the ways they're made, for example, if I'm using the code: ...
1
vote
1answer
1k views

Dealing with binary data and endianness

When distributing my game, I am going to compile all the resources and level data into a single binary package file, which is loaded from by the game. Do I have to worry about my machine being a ...
8
votes
3answers
2k views

Game Asset Storage: Archive vs Individual files [closed]

As I am in the process of creating a 3D c++ game and I was wondering what would be more beneficial when dealing with game assets with regards to storage. I have seen some games have a single asset ...
3
votes
5answers
3k views

How can I write data to a file that users can't easily edit? [duplicate]

Possible Duplicate: How can I protect my save data from casual hacking? While working on game saving and loading I figured I could just write all the variable values to a file and then load that ...
43
votes
6answers
5k views

Is it unprofessional to leave game resources to the open eye?

I'm still having problems packing my resources, after going through complicated APIs and basically just zip files which are exhausting my brain, I thought I could also pack the game with the resources ...
67
votes
9answers
21k views

How can you put all images from a game to 1 file?

I've just finished a basic RPG game written in C++ SFML, I've put a lot of effort into the game and I'd want to distribute it, however I've ran into a small issue. Problem is, I have well over 200 ...
10
votes
3answers
6k views

How do you pack resources, in a game when you have too many of them?

I've recently made a basic Space Invaders clone, in C++, using the Allegro 5 framework. After I finished, I realized I had about 10 sprites, and 13MB worth of DLLs; some of the players didn't even ...
-2
votes
3answers
609 views

Game Programming Resources for Programmers [closed]

I am a self-taught high school programmer (have an internship at local university), and understand the fundamentals of C++ and other related languages. I am looking to expand into game development, ...