instruction
stringlengths
33
29.4k
I'm looking for a good resource to start learning 3d modeling. I'm looking for something that starts with the basics (e.g. terminology; what are quads, triangles etc.) before/while going into the actual modeling. Book, website, video, anything will do. I'm only concerned with the quality of the tutorials, how thorough...
I've been messing with Blender on and off for over a year, and am now ready to put a lot of sweat into making a great model for an iPhone app I'm working on. I want to learn tips and tricks on how to make great looking models and how to animate them as well. I know how to do key-frame animation, I just want to learn h...
I have a Map, a Tile, NPCs and the Player. When a player enters a tile in the map, a moveTo event is fired, which calls for any NPCs associated with that tile to be "activated". Those NPCs may be antagonists, and wish to start a battle. The battle state (rounds, initiative, alive/dead, add and removing combatants) seem...
I posted a similar question on the Programmers SE site. Please read it. I want to know what specific things I can do to help me create games faster. Already, in addition to whatever I wrote there, I am: Creating reusable libraries on top of existing engines that I'm using Creating reusable assets (graphics, sounds, ic...
I'm using shared resources to send textures from one D3D11 device to another, so that I can copy the back buffer over the second device and use the second device context to save that texture to a file. This seems to be working, but when I save the texture, it saves an empty PNG. I tried saving the texture with the prim...
I am using OpenGL ES 2.0 I have a bunch a quads to be drawn, would love to be able to have to pass only 4 vertices per quad as if I were using GL_QUADS, but basically I just want to know the best way of drawing a bunch of separate quads. So far what I've found I could do: GL_TRIANGLES(6 vertices per quad) Degenerate G...
I am working on a hobby game that is played in the browser (not flash). It is a sort of civilization simulator. It is a pretty substantial sized game that I hope one day has many players. My question is what should my game have before I allow the public to play. I have several thoughts and would appreciate suggestions ...
Prompted by this question about becoming a faster programmer, I'm curious to know if anyone has made a significant-sized 2D game in SmallTalk or Squeak. And if so, how does it compare to C#? I'm using C# with FlatRedBall for my graphics/physics stuff, and I find it pretty easy to make whatever I want to make. Also, how...
I don't know what I'm doing wrong but I'm having a big a problem with GL_TEXTURE_MIN_FILTER when loading textures for my scene. I'm doing a skybox, but that's irrelevant because the problem exists even if I just load the textures and don't do anything with them. Meaning, the code to draw the skybox and attach the textu...
I'm currently trying to understand how to use the GLFrame Class in the superbible book, and acording to the 4th edition of the book, the camera matrix derived from the Frame of reference class should work the same as GluLookAt When I add these lines cameraFrame.SetForwardVector(-0.5f, 0.0f,-0.5f); cameraFrame.Normalize...
I'm working on a game in which the player runs around a level themed as a pinball machine. There are flippers that react to the presence of pinballs by flipping (as one would expect pinball flippers to do). The problem that I'm having is that if the player is in the path of the flipper as it rotates, the player is in...
Is there an OgreXML model viewer for Linux? I know about OgreMax but apparently that's Windows only.
I'm developing an Okey game (a Turkish version of Rummikub/Rummy). In it, each players has a bunch of tiles. Tiles have a colour and a number, like playing cards. Now, the player needs to make sets of these tiles, with three options: Groups: Same number, different colours (Red 1, Blue 1, Black 1) Straights: Same colou...
I'm looking for a good way to simulate damage, for example a weapon firing at a ship it would calculate the damage depending on layer type, weapon type, angle and similar what i need is a way to to represent the damage to a certain layer. I'm thinking of using matrices for keeping track of damage and also the appearanc...
I have made several games but they have all been space invaders or mario style. Following my last question (thank you for all the great answers) I am trying to write out a plot line and a plan for the events that will take place. The problem I am having is that my story's tend to resemble things that already exist like...
I am working on a library to help 2D game development with Scala. So far, it is a collection of helpful classes, file loading, collision detection, images, sprites, etc. So when does it stop being a class library and start being an engine? Where exactly lies the difference between useful framework and a game engine?
I am currently working on a 2D "Worms" clone in XNA, and one of the features is "deformable" terrain (e.g. when a rocket hits the terrain, there is an explosion and a chunk of the terrain disappears). How I am currently doing this is by using a texture that has a progressively higher Red value as it approaches the cen...
I'm drawing a quad and binding a texture to this quad like this: #define TERRAIN_WIDTH 2000 #define TERRAIN_LENGTH 2000 #define TERRAIN_WIDTH_2 (TERRAIN_WIDTH / 2) #define TERRAIN_LENGTH_2 (TERRAIN_LENGTH / 2) glBindTexture(GL_TEXTURE_2D, gameTextures.terrain); glBegin(GL_QUADS); glTexCoo...
When is it considered high-poly?
I am using OpenGL ES 1.x/2.x I have 2 attributes to be passed to the GPU(one is colors, one is vertices, one color per vertex). I use indices. Both attributes will use the same indices array This is not a big issue but I was wondering if there is a way to tell the GPU that both attributes use the same indices array so ...
I'm new in Game development. I have researched many open source games. But I have not met any open source game which has high quality graphics, comparable to these found in commercial games. What is the reason for this? Are open source game engines not advanced enough to support such graphics or is there just a lack of...
I need suggestions for the best method of acheiving what I am trying to do: -Using either OpenGL ES 1.x or 2.x I need to pass a bunch of vertices to the GPU. Each one has 3 attributes: Position, Color, and Texture coords. The vertices form quads, which share vertices. The shared vertices have both position and color at...
I was thinking about 2D games (like Starcraft), where the sprites are in two dimensions, but the objects that are "higher" in the screen are behind the other objects (I think this is obvious when you think that "higher" in the screen means "far" when simulating a 3D environment). But, how do you do this programmaticall...
I just started on a new project. In this project one of the main gameplay mechanics is that you can grab a ledge on certain points in a level and hang on to it. Now my question, since I've been wrestling with this for quite a while now. How could I actually implement this? I have tried it with animations, but it's just...
Before you down vote let me give some restrictions. I like RPG but they seem long and hard to make but after you make the framework the rest sort of falls into place where as platformers never get faster as each map starts from scratch. So under these conditions what is the easiest genre of game to develop as a hobby p...
Possible Duplicate: How can I prevent cheating on global highscore tables? So, I create a game in Flash and I want to keep a hi-score table for people to compete in. After a player has finished playing a game, the game needs to transmit the score (& player's name etc) back to a central server, to store the results i...
I want to make a Tower Defense game using the StarCraft 2 editor. How can I make a rally point to control AI appear at one point and go to specific point? How do I make creep spawn properly at specific times?
There must be some best practices on how you create your game architecture/skeleton. One of the best resources that I found is: http://cowboyprogramming.com/2007/01/05/evolve-your-heirachy/ My primely focus is for iOS games using cocos2d. What is your know how on this topic?
I really want to get into Rocky Mountain College of Art and Design (RMCAD), but I don't know if my skills are up to par. A representative came down today and she told me the requirements for the Game Art degree. Turns out I don't need a portfolio, but I know it would definitely help me out with scholarships, acknowledg...
I am a programmer and have worked on games although never attempted design myself. I am now attempting to design a game myself, working with a modest team of programmers and artists. Game designers have been telling me it is important to establish the need your game fills, in order to develop a more complete vision of ...
I'm very new to Android and OpenGL coding (I have previously used ogre3d). I am trying to find an efficient way to load PNG textures. It is currently taking around 8 secs to load 3 512x512 textures on a fairly fast phone (Motorola Defy) There seems to be a problem with the texture being upside-down (I used a Matrix t...
I feel that in order to create realistic real-life games, game developers need some ways to monitor the system itself i.e. players' moves, other events and the state of the system itself. I know that creation of profiling/tracing -systems is not that easy, look how many people have tried to do better coverage -program ...
I drew some icons to use on orthographic projection and instead of loading each icon file individually as a texture I thought of putting them all together in one single file. Now I have a file 72x36 which is not a power of two. This texture is divide in two icons, both with 36px wide. I didn't remember about this restr...
I need some help in 'camera maths'. I have a birds eye view of two characters. One character is static and the other can move. I would like the camera to always show both characters in full and, in order to simulate 'zooming out', I'm uniform-scaling the objects. The static character is always at the top of the screen ...
I have a small test environment where small point lights are scattered. Players should able to collect them. The collectible lights are rendered using a simple billboard technique where two triangles with a uniform color are rendered facing the camera and a gaussian is used as an alpha-map. 0/1 1/1 +---------+ ¦ ...
glVertexAttribPointer(index, size, type, normalized, stride, pointer); If I use type=GL_UNSIGNED_BYTE and normalized=GL_TRUE how is it normalized? would the data be divided by 256 for normalization? or? This would mean there is no way to have a normalized value of '1.0f'..
I'm currently working on a Worms game which involves terrain deformation. I used to do it with .GetData(), modifying the color array, then using .SetData(), but I looked into changing it to make the work done on the GPU instead (using RenderTargets). All is going well with that, but I have come into another problem. My...
I am interested in making a simple 3D game this summer, and I'd prefer if it were playable in a browser. My choices I am considering are Unity and WebGL. Currently I have no experience in either. But I have taken an introduction course to OpenGL. As well I will later be taking a course that will use Unity. I have some ...
It seems to me if that were the case that your directory of saved binaries or serialized objects could get massive real quick. Is there some sort of strategy being employed on top of the State pattern that is optimizing each time stamped saved game so that it isn't saving the entire game "context" all the time?
I saw a lot of books which cover specific topics, but is there a book or a recommendation of a few books which covers the basic of everything involved in making a game? I know this would only cover the basics, but that would be a good starting point to later read more into specific topics.
I was thinking to make my arcade game match the players strength in the hard level mode. Like checking the score and if the human player's score is above computer's for certain number of units then the computer player would automatically increase the speed of its reactions, just like a human companion who gets more det...
I have some problems using an int 3x3 matrix as the convolution filter to do edge detection. (I know int matrices are not very meaningful since there is only float on the gpu) Here is the code: float2 stepSizeX = (1.0/512.0, 0.0); float2 stepSizeY = (0.0, 1.0/512.0); for(int y = -1; y <= 1; y++) { ...
I want to ask you what is the best way to deal with collisions in hack&slash game, I know that collisions must be very accurate. My first idea is to use sphere bounds ( I making hack&slash in 3d), but how to deal with hitting with sword some enemy, do you know some better solution for this type of game ?
My project was initially not meant for Android, and its assets are organised along the following directory structure (I hope the ASCII art renders reasonably well): / +- engine/ | +- src/ | | enginefile1.cpp | | ... | `- textures/ | texture1.tex | ... +- game/ | ...
I'm working on simple platformer game. I've got already finished programming the main part of game, which is moving and collecting items. I want a unique game puzzle in every level, but I can't think up enough. I've been thinking for hours but I've got only few puzzles which are not very good. I would be grateful for ...
Attempting to set up a targeting array for a MMO-style game in GameMaker8 Pro, I have this code in the create event for the player's character, which is and has been running perfectly fine: j = 0 i = 0 g = 0 for (i=100000; i<1000000; i+=1) if instance_exists(i) {if i.object_index = enemy {global.ttarget[j] = i ...
Before anyone asks, this is for a university project and I have to use GLUT. I'm not tagging this as homework because this is not a requirement, nor will I have extra points for this. With GLUT, for people unaware, you have: glutIdleFunc(func): registers the render function and this means that when GLUT is not doing a...
If I alt-tab and do stuff outside of the game window, the game still captures mouse clicks (both left and right clicks). The game doesn't "consume" the clicks, since they are also sent to the application that has the focus. But it's rather annoying to hear a gunshot each time you click in your internet browser... Also,...
Should I be pessimistic about the iOS game development under VM? A virtualized environment will run on AMD (4-core 2.8 ghz Phenom II)/ATI/Linux/VMware host. Not talking about any 3D engines, may Xcode's emulator bring at least 15-20 FPS for a simple 2D game like, errr, Airport Mania?
I need to brush up my trigonometry and hope you can help here with a simple mathematical model. Here is my model so far in the image attached. I am aware that the frame animation has other problems when the ball is moving very fast, but for now I just need to calculate ballDx and ballDy. It is also possible that ballDx...
I am playing around a bit with the PushButton Engine for game development in Flash and have come across a need for a Camera like the Camera that follows Mario in Mario Games. Flashpunk has a nice implementation of it. Does PushButton have it out of the Box?(I searched for it and didn't find, hence the question here). I...
Box2D marks stable range of object size is 0.1M ~ 10M. This specifies object size range. How about space size? If I make an 1M object at (1000.0f,1000.0f) position? Is it can be stable? Or should I assume spatial range is also limited same with object size? PS. Maybe the resolution limit is defined because of limit of...
We are four guys making a Tower Defense game as a project in first grade on a university. The game is going to be really simple! Three different towers Three different monsters One map (maybe add some more if we have time) The game has to be object oriented. The class structure is as following Game - Drawing of grap...
I setup a simple simulation environment something like billiards. There are four circle balls (dynamic) and four box walls (static). Simulation works... except one thing. Sometimes when a ball rest against a wall, it sticks to the wall eternally. The other balls hits the stuck ball so many times, but the ball never wan...
Is it possible to load a texture using the NDK, but pass the result back to use in java. I have used the code in the link above and it appears to load the png correctly and generates a texture ID without an error (the id is 0 before the loading function is called and non-zero afterwards). Is it not allowed to mix openg...
I am in the middle of creating a browser game. I need to add 'special items' like in Diablo, but simpler. Item names are fixed (e.g. 'ring of power'), so only their attributes change. In my game there are different towns. Each town may trade a different set of items with randomized characteristics. For instance, in To...
I want to calculate world coordinates from camera coordinates. However, I seem to have problems with my understandings of how matrices in HLSL work. From world to camera is clear: cameraPosition = mul(mul(worldPosition, view), projection); Logic would now say that for the reverse, I could just use something like world...
I am making an OpenGL graphics accelerated FPS, and I need to find a library to handle GUI correctly. My current GUI handler just wont do! Yes, as in the title says, the UI of the game is Metro (ZuneHD, WP7, etc). So the UI contains little to NO images, just fonts.
I would like to make a "disable minimap" type of skill, which when used will make an area of the minimap black (such that you can't see enemies or allies on the map). How can I accomplish this?
I think I'm at a conundrum here, I've creating a matching game in C# winforms. And I'm 90% done, the only thing left is the game loop. The matching games consits of two multidimensional arrrays which are panels. And after I set everything up, I can RunGame(), which where my game loop is, the problem I am having is gett...
I produce a strip of quads with texture coordinates to represent a path. My texture is tiled along these quads. When the quad is drawn very small (on my integrated Intel chip) it draws distorted. How can I avoid this?
Letting me sample the framebuffer or the depthbuffer in the pixel shader would be an extremely useful feature. Even just being able to know the depth or the color of whatever is behind the current pixel would be useful. Why does both OpenGL and DirectX not let me do this? I was expecting there to be some kind of hardwa...
I am looking for resources that can provide me with a better understanding of what kind of things shaders are used for in games, what they can do, and maybe even more importantly, what they cannot. I understand how the graphics pipeline works and all that, and I have made some very basic shaders in GLSL (mostly just to...
Although I would love to get a job in the gaming industry I can't help but feel I should have a backup plan. What I wanted to ask is game/level design a marketable skill that translates to other industries? For example if your a programming in game development, you can be a software engineer in business, health care, ...
Without using any external libraries, does Java, including all officially supported APIs give you enough to develop fully-featured 2D games? The reason I ask is that I hear a lot of "bad-mouthing" about Java and game development, but I'm wondering if that is only in regard to intensive 3D games. Also reading up on some...
I have a button for my game which has a MovieClip in it. It consists of an image of a lock and an image of an item, representing the item being locked and unlocked. I make the button become slightly smaller when the mouse is over it to create the effect of a button slightly down. For some reason, however, this makes th...
What is the simplest method to generate smooth terrain for a 2d game like "Moon Buggy" or "Route 960"? I got an answer at stackoverflow.com about generate an array of random heights and blur them later. Yes, it's quite okay. But it would be better to give some points, and get a smooth curve.
I'm trying to get this to happen: The character walks up to a large crate, the player presses a button, and an animation starts playing where the character climbs up on to the crate. (all in first person view). So far I tried this with normal "First Person Controller" Prefab in Unity. My code so far: function OnTrigge...
I cannot really figure out what causes one surface to overlap another. In a 3D engine I'm creating, my technique is failing in edge cases. My method is sorting the surfaces to be painted from the furthest to the closest. To determine the closeness, I'm comparing the average z values. Sometimes, however, an overlapping ...
My game world is 3D. The map is only 2D, however. It is natural to think of the map as having an X and Y axis. And it is natural to think of the world has having an X, Y and Z axis, where Y is upwards. That is to say, X Y in 2D map coordinates is X Z in 3D coordinates. What conventions and approaches do you have to kee...
I am designing a mobile game, but I don't know much about it. How do we differentiate HTTP, TCP and UDP in reference to mobile game?
This is a question basically to programmers with experience working in game companies. How common is it that game coders participate in the design process of the game? Both gameplay design, and content design. Do you participate in related meetings and such, or do you have some other (formal/informal) opportunities to ...
So in one of our projects we're using Vector2/Vector3's a lot but we do only use integer/byte values mostly. So up to the point we've implemented our Vector2Int, Vector3Int, Vector2Byte and so structures; public struct Vector2Int { public int X; public int Z; public Vector2Int(int x, int z)...
I have to design a Pong game for Android. There are multiple mobiles and a game server. Application is installed in mobile. Mobile 1 (M1) can see the movement of bat and ball of mobile 2 (M2) an vice-versa. Suppose if M1 hits the ball, all the movements of the ball and bat of M1 can be seen on M2's screen and vice-vers...
Both Javascript and AS3 are implementations of ECMAScript. Is there a fundamental technical reason for Flash being so much more prevalent as a game-publishing platform, when compared to Javascript?
I'm building a game engine on the OpenTK framework that needs to support multiple players. How I have the basic framework established is that there is a Client and a Server. The Server binds and listens on a specified port, and the Clients connect to the Server's IP Address and Port to make a TCP socket. The server t...
I've been messing with my game's network code recently (TCP/UDP sockets) and my game keeps shutting down with no exceptions being thrown at all. It runs fine until the disconnection of a client, so I already know that it has to be related to the network. My real problem is that no exception is thrown and the game silen...
I just want to run any Box2D "Hello World" or test apps. I've downloaded the source twice (zip file the first time and via svn the second time), followed the build instructions (do stuff w/ cmake, "make", "make install" etc) and don't know where to go from there. How do I run the test apps or Hello World apps that co...
I'm looking to create an FoV implementation and I was wondering which algorithm is faster - raycasting or shadowcasting?
After some profiling, I've determined that one of my most expensive functions involves drawing text. As a solution, I'd like to implement a LRU type of cache that will "remember" the vertices, tex coords (etc) for a given string. This is particularly complicated because some of the resources involved reside in VRAM (mo...
I am trying to implement some positive evaluation into my game. Let me explain. I have a series (anywhere from 5 to 25 (might vary)) of circles (three sizes, big medium small). And each player starts with a main circle which gains 1 every turn (like risk the circles gain at different speeds, the big one gains the faste...
I have a tile based 2D engine where the projection matrix is an orthographic view of the world without any scaling applied. Thus: one pixel texture is drawn on the screen in the same size. That all works well and looks nice but if the camera makes a sub-pixel movement small lines appear between the tiles. I can tell ...
I'm using Windows 7 and most people in the group of this specific OpenGL project is too, there's only one member on Windows XP. We are all using Visual Studio 2010 though. I don't know if the OpenGL headers come with VS or with Windows but I would assume it's VS. And since we are all using the same VS version, albeit n...
For instance, in Half-Life 2 you have Civil Protection, Combine Soldier and Combine Elite. Each class has a weapon. Is there a shift away from this at all, where the NPCs are matched with the player in the sense that the weapon they choose to use is based upon their advantage, while still maintaining some sense of comp...
I tried to use the FBX SDK (2011.3.1) to load FBX files and save them as Collada files in order to be able to import FBX files in Panda3D. Unfortunately the resulting Collada files are not usable for several reasons, among them: There's a Maya specific extra technique diffuse <diffuse> <texture texture="Map__2-im...
I'm curious as to why C++ is so popular for games development, and not other languages instead. I know you can create very fast code with it, but what exactly is it that makes it popular? Is it just because it's fast? Is it some other feature in the language, like the OO paradigm or the portability? Is it because of al...
I'm using RPG-Maker-XP-like sprites (any 2D adventure/RPG style sprites). I would like to tint them so that they look different at different times of day. Times of the day are the set of: Daytime (normal) Early morning (bluish?) Sunrise and Sunset (orangish?) Night time (dark) What do I need to do to tint them, and m...
I'm pretty confident programming in Objective-C and C++, but I find Objective-C to be somewhat easier to use and more flexible and dynamic in nature. What would be the pros and cons when using C++ instead of Obj-C for writing games in iOS? Or rather, are there any known problems with using Obj-C as compared to C++? Fo...
I have a 3d world in a grid layout where each grid cell contains its separate vertex and index buffer for the mesh/terrain of that cell. When the player moves outside the boundaries of his cell, i dynamically load more cells in his walking direction based on his viewing distance. This triggers x number of vertex and in...
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 anyways, so the OS will probably cache it a second time. Of course, you don't get the caching across the process' lifetime, ...
I'm making a simple FPS and I can't decide on the size of my models and my camera settings. Could someone please recommend a good combination of: camera field of view near and far planes model proportions (such as 1 unit = 1 meter) so that the game looks realistic enough and the numbers are easy to work with? EDIT: I...
I am trying to draw point sprites in OpenGL ES 2.0, but all my points end up with a size of 1 pixel...even when I set gl_PointSize to a high value in my vertex shader. How can I make my point sprites bigger?
I am looking to implement an extremely rudimentary FPS game with extremely rudimentary 3D graphics using C++ .NET and DirectX. I'm not interested in any third party libraries or anything special like that. Having never done graphics based programming besides 2D stuff I don't really know where to get started or even how...
In the past I've used SWiSH to create small animations that I could use for Flash projects, however, I'm now trying to move to writing AS3 which SWiSH doesn't support. Whilst I have access to Flash CS5 through work, it doesn't have much in the way of in-built effects & animations, compared to SWiSH's 400+, and I want t...
I want to know if it were possible to integrate models created with Blender into a game written in solely C++.
I'm controlling the main loop with Game States like in pseudo code below: loop{ if (Not Game.WaitingForUserInput){ if (Game.Started){ StartTurn(); } if (Turn Started){ DoSomething(); } } This works fine, until the inner workings of a method li...
I am drawing lots of textures and panning and zooming in and out on them. When the camera zooms out they look really ugly. What can I do?
I am trying to draw point sprites in OpenGL with a shader but gl_PointCoord is always zero. Here is my code Setup: //Shader creation..(includes glBindAttribLocation(program, ATTRIB_P, "p");) glEnableVertexAttribArray(ATTRIB_P); In the rendering loop: glUseProgram(shader_particles); float vertices[]={0.0f,0.0f,0.0f}; g...
I am looking to use reinforcement learning to adaptively modify the weights involved in a flocking algorithm (i.e. 'boids'). Searching google revealed several libraries, but I don't know anything about any of them. I am far from being an expert in reinforcement learning, though I have perused Sutton and Barto's class...
I'm developing a space-simulation related game, and I am having some trouble implementing the movement of binary stars, like this: The two stars orbit their centroid, and their trajectories are ellipses. I basically know how to determine the angular velocity at any position, but not the angular velocity over time. So,...