Generally getting assets off disk and into memory.

learn more… | top users | synonyms

1
vote
1answer
65 views

Unity3d seamless level loading

I've read that application.loadLeveAdditiveAsync is a pro only feature. I'm looking for an asset that can do something similar. I would like to load assets based on the camera/player position. ...
1
vote
3answers
73 views

How to load and unload objects at a certain radius from the player?

I am making a procedurally generated space exploration game in unity. I'm currently generating 5000 stars in a cube of a fixed size. Each star just gets a random 3d coordinate. What I would like to do ...
1
vote
0answers
64 views

How heavy is a scene load in Unity assuming all referenced objects are in memory?

From what I understand, resources that are local to a particular scene( not a prefab, or texture, material asset etc ) are embedded in the scene file itself, while external resources are just ...
1
vote
2answers
97 views

Saving/Loading PlayerPrefs only works in the editor

I'm creating a game which stores a few variables using PlayerPrefs. It saves and loads the PlayerPrefs perfectly fine while testing in the editor, however when I build it to WebGL or Unity Web Player, ...
0
votes
2answers
114 views

C++ Saving and Loading From Text File

In my C++ program I am trying to develop a simple saving and loading function for my game. I can easily get the save function on it, but the loading part of it really stumps me. What I need is to ...
2
votes
1answer
60 views

LibGDX - Can't read .ttf file when running Android configuration

when running or debugging my game on android device, i get this error in the logcat: com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: data/fonts/myFont.ttf (Internal) which is ...
2
votes
0answers
98 views

Cannot convert bitmap to texture [closed]

I'm doing a little C# / OpenGL project and I can't manage to load textures properly. So here is my texture class : public class Texture { public String Filepath; private int TextureID; ...
0
votes
0answers
40 views

How to load in movable (full) models?

I've created a rendering engine in Haskell, and I've got an OBJ model loader. Obviously, the models I've loaded in a complete set of vertices, normals and texture coordinates for the model. But say, ...
0
votes
1answer
606 views

How do I create a circular progress bar in Unity3D 5?

I am new to programming and Unity3D. I want to show a circular progress bar starting invisible and growing in 3 seconds to a circular line when reloading is done. How can I do that?
-1
votes
2answers
67 views

How to make a proper cache on user computer?

Currently when launching the client of the game, it connects to the server and loads all the cachedata in a normal form (= folders, .txt files and .png files). However I don't like that the players ...
1
vote
1answer
108 views

Level loading philosophy in MMO games

I've been working on project for quite a while, and I've returned to dilemma about level loading. The problem is i trust the client with it's local level loading, when it's done loading it tells the ...
0
votes
1answer
93 views

Add Existing Animation

I have several animations that I am using on a GameObject. I switched the folder they were stored in, and they got detached from the gameObject. How can I add the existing animations to my ...
0
votes
0answers
57 views

Android View (Splashscreen) Vanishes after phone woken up from sleep

My game uses OpenGL ES 2.0 and I have a splashscreen which uses a standard Android View. This plashscreen is shown on top of the GLSurfaceView and then simply removed once everything has been loaded ...
0
votes
0answers
204 views

Android: Asynctask causes ANR (very) intermittently

I'm doing some work on an AsyncTask (creating game objects, loading resources etc) while displaying a static splashscreen. The problem is that every now and then, the AsyncTask doesn't run and the ...
2
votes
2answers
219 views

Problem loading level layout from file in Breakout clone

I'm working on a Breakout clone and I decide to use files as method to load level layouts. The file is something like this: N,N,N,N,N N,N,N N,N,N Only indicates what type of brick I'll ...
2
votes
2answers
105 views

Traditional Chunk Loading vs. Chunk Swapping

I'm designing a voxel-based game (aren't we all?), and just yesterday implemented infinite terrain generation. I'd already had the terrain generation working off of simplex noise, so this wasn't a ...
-1
votes
2answers
450 views

How to stop a object with progress bar so it can start instantly in unity [closed]

I have created a gameobject(cube) and written code to move,mean while the processbar get loading.when the processbar is loaded fully then the object should stop moving.Can anybody please help me ...
0
votes
1answer
342 views

Nullpointerexception when loading resources in openGL ES 2.0 Android project

Overview My splash screen starts by display a 'loading' dialogue and then kicks off an asyncTask (The loading dialogue is derived from the standard Android View class) Within the doInBackground ...
0
votes
1answer
268 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 ...
2
votes
1answer
1k 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 ...
0
votes
1answer
165 views

How to load a DDS file with mipmaps

I believe there's a D3DX function that can load a DDS file with mipmaps but D3DX is deprecated. Any function/library that can load it and that's not deprecated? I need it for DirectX if it makes any ...
0
votes
1answer
58 views

How to handle runtime exceptions that occur on a loading process delegated to newly spawned thread

I am looking to multi-thread the resource allocation routines (i.e world loading) in my game so that they can occur in the background whilst rendering a loading screen etc... The problem is, I used to ...
0
votes
0answers
27 views

Loading dynamically created files with XNA

I'm trying to implement a structured save/load functionality so if the user saves, it will take up one of 10 slots, and if the user loads, they would select one of these slots. To do this, I need ...
0
votes
1answer
470 views

Level loading works in Unity editor, but quits when deployed

In my level selection screen, all but the first level start out locked. When I click on a level, it loads perfectly in Unity editor. However, when I build the game on a real device, the game stops as ...
0
votes
1answer
76 views

How are vertices determined complex geometries in an ever changing game state

For example say you wanted to draw a 3D cube you can define an array of hard coded vertices using float3, here is an example. http://msdn.microsoft.com/en-us/library/windows/desktop/jj552949.aspx But ...
1
vote
1answer
361 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
votes
1answer
726 views

How can I load all of my scenes at startup?

I want all of my scenes to load when the loading screen is shown (but only one should be shown at a time) so I can switch between them quickly I have tried this: if ...
2
votes
1answer
705 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 ...
0
votes
1answer
205 views

Developing a browser-based RPG: Loading user data

I'm writing a browser-based RPG in JavaScript, HTML5 with Canvas, EaselJS, etc... I'd like to develop the back end data saving/user profile aspect now. This is a single player RPG where the player ...
3
votes
2answers
394 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 ...
1
vote
2answers
91 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 ...
4
votes
1answer
451 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 ...
0
votes
1answer
267 views

WebGL CORS error loading simple texture in Chrome

Here's my code: function loadTexture() { textureImage = new Image(); textureImage.onload = function() { setupTexture(); } textureImage.src = "jumper2.png"; } function ...
1
vote
1answer
193 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 ...
0
votes
1answer
103 views

Streaming resources

I'm writing a game using the Slick2D library. I recently added a loading screen using deferred loading. I use the Music class to load OGG files to be used as music. These take an excessive amount of ...
1
vote
1answer
471 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 ...
6
votes
1answer
246 views

Can SFML load anything other than RGBA8888? (RGBA4444, RGB565, etc.)

I can't see this mentioned in the documentation. Am I missing something obvious? Or does SFML really give you no option, forcing everything to be loaded as RGBA8888? Searches on Google and the SFML ...
4
votes
3answers
725 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 ...
2
votes
1answer
122 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 ...
1
vote
2answers
1k views

how to set image resource path for D3DXCreateTextureFromFileEx method?

I try to merge all the image resources to a folder called resource. So, set image path as "resource/" but my directX framework only works if I compile at VS 2010. If I run from the debug folder it ...
1
vote
1answer
560 views

Android Game Development. Async Task. Loading Bitmap Images Sounds

Im working on this game for android. And wanted to know if my thread architecture was right or wrong. Basically, what is happening is, i am loading All the bitmaps,sounds etc in the ...
0
votes
2answers
3k views

SFML fail to load image as texture

I have come to a problem with the code below ... Using SFML 2.0 #include <SFML/Graphics.hpp> #include <iostream> #include <list> int main() { float speed = 5.0f; // create the ...
0
votes
0answers
141 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 resources, to find some constant, never ...
1
vote
2answers
2k views

Simple Android loading screen when using OpenGL

My game uses openGL ES 2.0 on Android and it's got to the point where the pause (while loading resources) has become noticeable. All I'm after is to show a static screen (probably via an XML layout ...
0
votes
2answers
536 views

How to reduce/handle image loading times?

I'm working on a 2D game that has very high resolution images (so that things look good on Retina MacBooks and such), and am seeing a noticeable lag caused by image loading. I notice the strongest ...
2
votes
1answer
385 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 ...
3
votes
2answers
706 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
2answers
497 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
1answer
142 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
2answers
2k 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 ...