Generally getting assets off disk and into memory.

learn more… | top users | synonyms

33
votes
2answers
2k views

How does a game without loading times work?

We're talking about an expansive game that is not divided in levels or checkpoints. A 3D adventure, for example.
18
votes
8answers
3k views

What all should be happening during the “Loading” screen?

Do I just need to be creating instances of all of my graphics into memory that are loaded from file? What is the best way to handle this? Do I just need some sort of assets manager that creates ...
15
votes
4answers
3k views

How can I write a Save/Load system for my game?

I'm trying to figure out a way to write a save/load system for my game in C++. As of right now, I'm doing it all using binary flags. Anyone got a clue on how to do it another way? I don't mind using ...
9
votes
1answer
553 views

C++ Model loading API?

I'm looking for the most capable C++ model loading API. So far I've found tons of ply, obj, and other such file format loaders. But the libraries I've found tend to load just one model type, and ...
8
votes
3answers
468 views

Pre game loading time vs. in game loading time

I'm developing a game in which a random maze is included. There are some AI creatures, lurking the maze. And I want them to go in some path according to the mazes shape. Now there are two ...
8
votes
5answers
6k views

What is the logic behind the 'Loading' scenes in games?

I'm making my first game, it's a tower defense type of game, using Unity game engine and taking Fieldrunners as a reference. I would like to know more about the functionality behind 'Loading' scenes ...
7
votes
7answers
5k views

Library to load images into textures, Linux, C and OpenGl

I am looking for simple, self-contained C library for Linux to load images from files into OpenGL textures. The licence should be quite liberal: zlib, bsd, mit or something. I have found SOIL, however ...
6
votes
1answer
374 views

What is the general strategy to pre-load game data(entities/map)

I'm new to games programming and am wondering what tactics games use to pre-load entity and map data. Will a game initialise with the fundamental map data stored in memory?
6
votes
2answers
675 views

How do I load chunks of data from an assest manager during a loading screen?

I'm developing an Android game. Basically I want to pre-load all graphics/sounds when the app is first loaded. But I also would like to show a progress bar as this is happening. Here is a snippet ...
6
votes
1answer
1k views

Are there any open source Source engine VTX/VVD viewers?

I've been playing with loading and displaying Source Engine models (TF2, specifically) and have had mild success, but there are some aspects of it that are eluding me still. I've been primarily ...
5
votes
3answers
4k views

When should a bullet texture be loaded in XNA?

I'm making a SpaceWar!-esque game using XNA. I want to limit my ships to 5 active bullets at any time. I have a Bullet DrawableGameComponent and a Ship DrawableGameComponent. My Ship has an array of 5 ...
5
votes
2answers
118 views

File caching on the PC

Is it a good move to disable windows' file-caching capabilities (via I/O completion ports) for resource loading in a game environment? Most games will do their own resource management and caching ...
5
votes
2answers
657 views

How do I prevent getting an access denied loading a file in XNA, when I have the application running in the program files directory (in Windows 7)?

I'm creating an app in XNA. I'm trying to load a custom save file. I named the file with my own custom extension. It's an XML file serialized with the DataContractSerializer. I've tried several ...
5
votes
2answers
207 views

Switching between levels, re-initialize existing structure or create new one?

This is something I've been wondering for quite a while. When building games that exist out of multiple levels (platformers, shmups etc) what is the prefered method to switch between the levels? ...
5
votes
1answer
304 views

Loading content (meshes, textures, sounds) in the background

In my game, I am aiming for a continuous world, that is, a world where you can go anywhere without breaking the immersion through load times and "virtual seams". My world is broken up into regions, ...
4
votes
3answers
373 views

Saving instances of classes, then recreating the instances [closed]

I have many types of entities, each type has a lot of if instanceof Spider (for example ) then do this in the game code... Now I got to the part where I want to save each type. They all are based on ...
4
votes
1answer
364 views

Clever way to do the Sonic 2 Bonus Stage effect saving memory

What would be a good way to save memory to achieve an effect like this one? http://www.youtube.com/watch?v=K89LkvL9JZ0 We're using pre-rendered 3D. I'm asking this because this naive approach of ...
4
votes
1answer
5k views

Using the AssetManager in LibGDX

I am trying to use the AssetManager class in LibGDX and I understand how it works but I am trying to implement a loading screen. I have followed the AssetManagerTest.java file here, but I am having a ...
4
votes
3answers
553 views

Zelda LttP (Super Nintendo) room changes?

I'm trying to make a tile-world adventure game on iOS similar to Zelda Link to the Past on SNES, and one issue I've run into is having my camera move beyond walls revealing the rooms on the other ...
3
votes
2answers
601 views

XNA: My bullets lag the game the first time they're fired, but not after

I'm working on a SpaceWar-esque project to get comfortable with XNA. I have a Ship DrawableGameComponent and a Bullet DrawableGameComponent. The player's Ship is created at the start of the game, and ...
3
votes
3answers
3k views

OpenGL and 3ds model loading: Path of least resistance?

Hey guys, im working on a final class project for a graphics class, and me and a teammate are making a simple 3d tower defense game. We're currently planning on using 3ds models and drawing them ...
3
votes
4answers
1k views

Why does using multithreading during my load screen increase my load times? [closed]

OK, I added a loading screen to my game, and in order for the game able to update and show a loading screen and load stuff in the background I came to the concludsion that I needed to host the loading ...
3
votes
2answers
316 views

Purpose of Displaying Loading Screen

Is it necessary for a game developer (on Android, game consoles, online, or desktop) to display the loading screen to cover unfinished rendered game environments and prevent users from thinking that ...
3
votes
2answers
483 views

Implementing multithreaded loading screens

Ok, I have fairly little multi-threading experience, but i have done a similar thing before without issue...but this has me stumped. This is in C++, Directx9 Visual Studio... My game basically runs ...
3
votes
1answer
828 views

How to load data for specific level at runtime?

I'm trying to create a game with many levels loaded from XML files. In my game I have many objects in each level. At present my game contains 20 levels, and I load all the textures at once on ...
3
votes
3answers
371 views

Directory paths for resources and assets

If I have a file stucture for my final, released game something like: Main folder Media Images Other assets Sounds Executable List item And a different one for my 'in development' project, ...
3
votes
2answers
290 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 ...
3
votes
3answers
2k views

In Unity, can I load a local (/Resources folder) website to safari on an ipad

In Unity, can I load a local (/Resources folder) website to safari on an ipad? This works fine on a Mac, opening up a wepage from my Resources folder. string path = ...
2
votes
2answers
980 views

rpg 3d open world map & entity loading-streaming

Hello I'm a web developer and recently I started reading about game development. I followed some tutorials regarding c++ and openGL (whatever I could find online because as you know not many up to ...
2
votes
1answer
561 views

How do I make a progress bar with letters that get “filled in”?

I want to make a progress bar made of text! I have two images: One with the text in gray, the other coloured: As my game is loading, I want the letters to "fill up" with color: They would start ...
2
votes
1answer
68 views

(Phaser) Preload Future States in Create?

I'm a first time user of Phaser, been trying to make a simple point and click type game. I'm trying to keep things very modular, so I'm defining a list of levels (states) in a JSON, and then every ...
2
votes
1answer
238 views

“exception at 0x53C227FF (msvcr110d.dll)” with SOIL library

I'm creating a game in C++ using OpenGL, and decided to go with the SOIL library for image loading, as I have used it in the past to great effect. The problem is, in my newest game, trying to load an ...
2
votes
5answers
2k views

Xna Loading Screens

I'm making a 2D XNA game. I'd like to implement loading screens when stuff has to load for a while. Like when I login to an account, connect to the server, and generate worlds. I'm pretty sure it ...
2
votes
1answer
288 views

Displaying animations during loading screens

Games like Karateka (which uses UDK) seem to be able to asynchronously load GL assets as well as display animation. The splash is incredibly short, then presumably their glView shows up. I can think ...
2
votes
1answer
127 views

How do I manage multiplayer login?

How is the typical login, loading the level and spawning handled? For example: Client sends "iwanttologinwithcharacterx" Server does some validity checks and instantiates characterx Server sends ...
2
votes
1answer
187 views

Loading files while running game

I am curious as to what technique(s) are used to load files in while a game is running. For example, Minecraft will load chunks as you get within a certain range of them. How is this achieved without ...
2
votes
1answer
206 views

Assimp renders a partial amount of vertices

I'm building a 3D game, and i'm trying to load some assets with the nice Assimp library. The model should look like the one in the first picture, but instead, it takes the form of some kind of ...
2
votes
1answer
108 views

Level of Detail/Load on Demand for crowds: replace groups of objects instead of individual ones?

I have been thinking of using level of detail to make rendering crowds easier. The idea is to replace a group of meshes with a single one representing a group. For example, you have 1 individual cube ...
2
votes
1answer
381 views

Loading files during run time

I made a content pipeline extension (using this tutorial) in XNA 4.0 game. I altered some aspects, so it serves my need better, but the basic idea still applies. Now I want to go a step further and ...
2
votes
1answer
592 views

Loading SpriteFont through a different class than Game.cs

I am trying to load up a single SpriteFont to print some debug information. In our current game, we load up both Textures and Music through a ResourceManager. They are both loaded with a filestream, ...
1
vote
1answer
142 views

Terrain square loading

Games like Skyrim, Morrowind, and more are using quads or square to divide the terrain if im correct. The player is always at #5 1 | 2 | 3 4 | 5 | 6 7 | 8 | 9 So whenever you cross the border you ...
1
vote
2answers
249 views

Optimization and Saving/Loading

I'm developing a 2D tile based game and I have a few questions regarding it. First I would like to know if this is the correct way to structure my Tile class: namespace TileGame.Engine { public ...
1
vote
2answers
711 views

Game Loop: Should resources be initialized in the game loop or in the respective classes? (both?)

For example, lets say we have an enemy class in my Android game project. I am initializing the enemy bitmap to be used with certain sprites in my game loops init. I am then calling the respective ...
1
vote
1answer
2k views

Using NinePatch in libGDX for Loading Bar

I am trying to create images for a loading bar in libGDX. I came across the NinePatch class and I was hoping to use it for this loading bar, since stretching images with a plain Texture or Sprite ...
1
vote
1answer
128 views

Efficient way of loading wavefront models in openGL game

In my game, a RTS game, the units are all wavefront obj. all their animation frames are each seperate wavefront obj file. ie. without any skeletal animation; fully rigid models. So when many units are ...
1
vote
1answer
304 views

What's the most memory efficient way to load a tiled map?

Currently I am working on a simple 2D platformer and I want to load a tiled map. What I've started working on is loading the tiles using a text file. My first question is simple: is a text file the ...
1
vote
1answer
651 views

Hidden Loading with UDK

I was wondering, how would I go about creating hidden loading scenes with UDK? For example, a character walks in to an elevator, the elevator fakes movement, whilst the previous floor is destroyed and ...
1
vote
1answer
297 views

Loading tilemaps, entering buildings, chopping big maps

I´ve got some questions regarding the loading of tile maps. I´ve got a world with several buildings in it that guide the user to a new map. This map can be a small room, but also a big area. To change ...
1
vote
2answers
80 views

Java: creating an instance of a user defined class by reading xml file

I am trying to write an engine for a game, in particular a component-based one (in my approach components contain both data and logic). So basically I have entities, and each entity has a list of ...
1
vote
1answer
123 views

Fast resource management

So I'm working on one thing that I can't figure it out at this moment. Lets say that I have my all game data compressed into zip archive. There's a scripting system in the game that lets you to do ...