instruction stringlengths 33 29.4k |
|---|
What should I learn? OpenGL 4.1 or OpenGL ES 2.0?
I will be developing desktop applications using Qt but I may start developing mobile applications in a few months, too. I don't know anything about 3D, 3D math, etc and I'd rather spend 100 bucks in a good book than 1 week digging websites and going through trial and er... |
I have been thinking about creating a top down 2D car game for HTML5. For my first game I wrote the physics and collisions my self but for this one I would like to use some ready made library.
I found out Box2D and its JS port.
http://box2d-js.sourceforge.net
It seems to be quite old port, made in 2008. Is it lacking m... |
I have an idea for a game that I want to develop and I feel is unique, and I'm wondering if I should patent it. I read on the web that games can be patented, but just because it can be done doesn't mean that it makes sense to do it.
I actually don't really want patent it (it's expensive, a hassle and I don't believe... |
I know you have to have mac os x to use xcode and thus to develop/compile apps for the iphone. And I'm not exactly wanting to go the hackintosh way, so I'm looking at buying a used mac.
What specs are recommended. If I buy a cheap mac mini that has only 1gb of ram would that be enough? (I'm not talking about using that... |
Is there data on how many users have Flash, Java, or Unity plugins installed?
|
Where can I learn how to do simple 2d animation well? Or is it really just literally drawing every single frame of something in photoshop? Is there tips or tricks? Tutorials to help get started?
Also, what software options are there (preferably open source or even just free)?
|
What technology would you use to communicate between a two-player,turn-based, board game (like checkers or Othello) running native on iOS, and a remote game server
The remote game server is just the artificial intelligence portion of the computer player and it is coded in Lua.
|
I would like to make a First Person Shooter and move the camera with the mouse. The problem is that when the cursor reaches the limits of the screen, the camera won't turn anymore. How can I keep the mouse centered and detect its movements anyway?
|
I remember that way back around 1995, there was this big craze with VR in the media, a whole bunch of (mostly mediocre) games labeled as "virtual-reality-interactive-movie (...)" were published. If I recall correctly, the first 3D VR helmet was called VFX-1 and was sold bundled with Descent and some dedicated joystick.... |
I'm trying to think of sounds that will help convey the time of day and weather condition. I'm not even sure of all the weather conditions I would consider, and some are obvious. Like if it's raining, the sound of rain. But then I'm thinking, what about for a calm day? If it's morning time, I could do birds chirping or... |
I am trying to implement a song into a game that begins playing and continually loops on Windows Phone 7 via XNA 4.0. On the emulator, this works fine, however when deployed to a phone, it simply gives a black screen before going back to the home screen. Here is the rogue code in question, and commenting this code out ... |
Can I make a significant difference by changing the types of games that are available? Are there any generic features that I can add to games, which will help make them more attractive to casual female gamers?
|
I am currently planning how to integrate Lua scripting in my 2D Game Engine, and i would like to go straight to the most adequate solution for having C++ classes and objects exposed.
I've read this (if it helps you help): http://lua-users.org/wiki/BindingCodeToLua
If you have a better scripting language to recomend, go... |
There are many traditional animation techniques - such as blurring of motion, motion along an elliptical curve rather than a straight line, counter-motion before beginning of movement - which help with creating the appearance of a realistic 3D animated character.
I'm looking to incorporate tools and short cuts for some... |
I will not go into details, but I would like to hear your opinions about this:
Essentially, my project will be a 2d game, with lots of complex levels, where some might be simple and others might be a bit more deep, with physics, etc. We want to implement our very own online structure: logging in, leaderboards, achievem... |
I was thinking, what is needed for a good setup and what are good (free) tools to use? Some of what i came up with are
Bug tracking
Some good (distributed:P) source control (which means no svn fellas)
automated nightly builds or a continuous integration (or anything that automates builds and possibly sends emails when... |
Disclaimer: this is an open-ended and kinda "far out" question
Over the last few years I've made a few iPhone games. I use very common programs like Xcode and Illustrator to make the games.
Lately I've become tired of repeating certain tasks over and over again. Here are some examples:
in Xcode: "clean target, bu... |
I am simply trying to make an object move in a circle around a point. Let's say I have an object with a position vector going from that point to the object, and also the angle of the object with the x axis.
What is the equation I can use to obtain a velocity vector for that object so that it continues to move in a cir... |
I'm currently working on a game that creates a window using WindowsAPI. However, at the moment the process is taking up 50% of my CPU. All I am doing is creating the window and looping using the code found below:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
MSG... |
There's a large number of versions of the D3DX dll, from each SDK update, each version having a unique name (list of D3DX dll names).
All-too-often, people have versions missing. So even though they have a compatible version of DirectX, your D3D-based project won't run on their machine.
I want to be able to distribute ... |
I can't find any useful information on packing 4 values into a 32 bit float in HLSL.
Ideally, what I want to be able to do in HLSL is:
float4 values = ... // Some values where each component is between 0 and 1.
float packedValues = pack32R(values);
float4 values2 = unpack32R(packedValues);
I realize that there will be... |
Sorry this got long and all prose-y. I'm creating my first truly gamified web app and could use some help thinking about how to structure the data.
The Set-up
Users need to accomplish tasks in each of several categories before they can move up a level. I've got my Users, Tasks, and Categories tables, and a UserTasks t... |
I am looking for algorithm to calculate direction and speed of balls in a pool game. I am sure there has to be some type of open source code for this since pool games are some of the oldest computer games I can remember.
I mean, when one ball hits another, I need a algorithm to calculate direction of both of them. It ... |
still has issues. Flash works but... requires flash (an issue for iOS). What do you use in Javascript for audio?
|
I've got an effect which is a fairly simple two-pass deal- but it involves rendering to a texture in the first pass. Is it possible to change the render target from within an effect? I would definitely appreciate the reduction in code duplication from C++ by being able to do both passes within HLSL.
|
I'd like to improve my skills/try something new and I'd like to start with 3D. I have read Starting programming in 3D with C++ but I have question about engines:
What should engine do? I know it is abstraction layer above 3D API (i.e. OpenGL or DirectX) but what should it exactly do?
|
When writing code that interacts with multiple shaders, is it best practice to hard code the use of each effect? I wrote a couple of hard-coded loops and then noticed that I accidentally ended the pass of the wrong shader, and this has me concerned that instead, I should be writing some sort of Shader class that generi... |
What is the "best" way to handle sprite sheets with shaders and buffers? In immediate mode it is easy to modify a sprite's texcoords when it is drawn, but I don't know how to do this with modern opengl. Should I store all the texcoords in a buffer and change the pointer for every sprite, or is there a better way?
|
I have two object-aligned bounding boxes (i.e. not axis aligned, they rotate with the object). I'd like to know if two object-aligned boxes overlap. (Edit: note - I'm using an axis-aligned bounding box test to quickly discard distant objects, so it doesn't matter if the quad routine is a little slower.)
My boxes are ... |
I recently read this GPU GEMS 3 article Volumetric Light Scattering as a Post-Process. I like the idea to add volumetric light property to realtime render i'm working on. Question is will it work for multiple lights? Our renderer uses one render pass per light and uses additive blending to sum incoming light.
I'm mostl... |
I'm implementing a 2D side scroller for iOS (using C/C++ with OpenGL) (beat'em up style like double dragon/final fight ).
My scenes are composed of one cyclical background image ( the end of the image connects perfectly with the beginning ). This is to produce a cyclical scroll effect.
I was wondering how could I imple... |
I am looking at adopting a skeletal animation format (as prompted here) for an RTS game. The individual representation of each model on-screen will be small but there will be lots of them!
In skeletal animation e.g. MD5 files, each individual vertex can be attached to an arbitrary number of joints.
How can you efficie... |
I'm considering developing a space opera game, having already done some game design. Technically, though, I'm coming from a business applications background. Hence I don't really know how I should handle time and duration.
Let's state the matter clearly: what if something is bound to happen in 5 hours and on which othe... |
I don't understand how to use a finite state machine with the entity controlled by the player.
For example I have a Mario style game (2d platform). I can jump, run, walk, take damage, swim, etc. So my first thought was to use this actions as states. But what happens, if you are running when you take damage? Or jumping... |
Blender's coordinate system is different from what I'm used to, in that Z points upwards instead of Y. What would be the simplest way of converting all the world data (so that all animations, texture coordinates, etc still work) so that Y points upwards?
Clarification:
Object positions are defined as matrices, so just ... |
I am aware of the performance hit when mixing signed ints with floats.
Is it any worse to mix unsigned ints with floats?
Is there any hit when mixing signed/unsigned without floats?
Do the different sizes (u32, u16, u8, i32, i16, i8) have any effect on performance? On which platforms?
|
In the early days of OpenGL and DirectX, texture sizes were required to be powers of two. This meant interpolation of float values could be done very quickly, using shifting and such.
Since OpenGL 2.0 (and preceding that, via an extension) non-power-of-two texture dimensions have been supported.
Do power-of-two textur... |
I have a ball which is being thrown from one side of a 2D space to the other. The formula I am using for calculating the ball's position at any one point in time is:
x = x0 + vx0*t
y = y0 + vy0*t - 0.5*g*t*t
where g is gravity, t is time, x0 is the initial x position, vx0 is the initial x velocity.
What I would like t... |
From time-to-time I've wondered what kind of games are popular in Asia (India, China, Korea, Singapore, etc...). I hear about developers in the US and UK who outsource work there, but what goes into the games they make for themselves?
Related, you hear these days about how Japanese developers have been marketing their ... |
So, alpha-beta pruning seems to be the most efficient algorithm out there aside from hard coding (for tic tac toe). However, I'm having problems converting the algorithm from the C++ example given in the link: http://www.webkinesia.com/games/gametree.php
Players are either 1 or 0, so doing 1 - player will switch the pl... |
In My Application I Have One Arrow Image With Fix Center and i Can rotate it by touch move method on same center but i also need to Toss/trow the arrow after doing some rotation with dragging or without doing that
How Can I Put The Toss/Throw Action in MyApplication
Thank You Very Much In/ advance
|
Until recently, I used two methods to store data on my non-game project: XML files, and relational databases. I know that there are other kinds of database as well: the NoSQL kind. However I don't know if there are more choices available to me, or how to choose in the first place, aside from arbitrarily picking one.
H... |
I recently learned that the MMO Minecraft is powered by Java from a recent interview on CVG.co.uk on a possible collaboration between two former and now competing colleagues. In the interview he bluntly said that the founder of Minecraft is a Java coder and he is a C or C++ coder so they are incompatible with each othe... |
A project I am working on right now features a lot of "traffic" in the sense of cars moving along roads, aircraft moving aroun an apron etc.
As of now the available paths are precalculated, so nodes are generated automatically for crossings which themselves are interconnected by edges. When a character/agent spawns int... |
I'm new on graphical programming, and I'm having some trouble understanding the Ocean Shader described on "Effective Water Simulation from Physical Models" from GPU Gems. The source code associated to this article is here.
My problem has been to understand the concept of texture waves. First of all, what is achieved by... |
I've successfully implemented A* pathfinding in C# but it is very slow, and I don't understand why. I even tried not sorting the openNodes list but it's still the same.
The map is 80x80, and there are 10-11 nodes.
I took the pseudocode from here Wikipedia
And this is my implementation:
public static List<PGNode> Pathf... |
I have some standard convex shapes (cubes, capsules) on a voxel terrain. It is very easy to detect single vertex collisions. However, it becomes computationally expensive when many vertices are involved.
To clarify, currently my algorithm represents a cube as multiple vertices covering every face of the cube, not jus... |
I'm working on a breakout clone, and I wish to create some realistic physics effects for collision - angles on the paddle should allow the ball to bounce, as well as doing curve balls etc. I could use per-pixel based collision detection, but then I thought it might be easier with line/circle intersection testing.
So, t... |
I'm trying out modifications to the following particle system. http://create.msdn.com/en-US/education/catalog/sample/particle_3d
I have a function such that when I press Space, all the particles have their positions and velocities set to 0.
for (int i = 0; i < particles.GetLength(0); i++)
{
particles[i].Positio... |
So I wanted to switch to IDirect3DDevice9Ex, purely for the SetFrameLatency function, as fullscreen vsynced D3D seemed to produce noticable input lag.
But then it tells me 'ha ha ha! now you can't use D3DPOOL_MANAGED!':
Direct3D9: (ERROR) :D3DPOOL_MANAGED is not valid with IDirect3DDevice9Ex
Is this really as unpleasan... |
I am trying to apply a slight sine wave movement to objects that float around the screen to make them a little more interesting. I would like to apply this to the objects so that they oscillate from side to side, not front to back (so the oscillation does not affect their forward velocity).
After reading various thread... |
I recently asked about how to separate entities from their behaviour and the main answer linked to this article: http://cowboyprogramming.com/2007/01/05/evolve-your-heirachy/
The ultimate concept written about here is that of: OBJECT AS A PURE AGGREGATION.
I'm wondering how I might go about creating game entities as pu... |
The option in the rendering menu of Maya doesn't say "Mental Ray" anymore.
Please help me to get it back, or even a better plugin for Maya game quality rendering.
|
I want to basically make a blur shader in glsl and use it like Windows 7 does for Windows. I want to for example draw something and then blur a rectangle, then draw text over it.
If someone could point me in the right direction on how to do this I'd be very grateful.
Thanks
|
Possible Duplicate:
What are good games to “earn your wings” with?
Hai,
I'm new to the genre "Creating Games".Previously i had done only porting.I need some suggestion's for making a game.
What are the basic game logics i need to start with?
- Should i write Tic-Tac-Toe game? - Actually this seem... |
I'm trying to draw textures aligned with this physics body whose coordinate system's origin is at the center of the screen. (XNA)Spritebatch has its default origin set to top-left corner.
I got the textures to be positioned correctly, but I noticed my textures are vertically inverted. That is, an arrow texture pointing... |
I am interested in developing games for the Android OS. I have played Replica Island and I have browsed over the source. I found that the levels/maps were in a .bin format. I could execute them because they were in an Android format. So how could I make a game map/level that could be used in my game? What program would... |
I'm trying to build a terrain starting from a heightmap. I've already some ideas about the procedure, but I can't even get started. I feel like I have to use a MeshBuider. The problem is that Visual Studio (I'm using the 2008 version) wants an assembly. Effectively on the MSDN there's a line specifying the assembly nee... |
I have a C++ game that has a 3D engine that works only in Windows. I'm wondering which engine I should use so that it can be used in a browser or in iPad (iPhone) and Android environments? Does anyone have an idea of the size of the task to migrate from one 3D engine to another?
|
I've read lots of articles about Data Oriented Design (DOD) and I understand it but I can't design an Object Oriented Programming (OOP) system with DOD in mind, I think my OOP education is blocking me. How should I think to mix the two? The objective is to have a nice OOP interface while using DOD behind the scenes.
I... |
I'm getting a failure returned when calling Direct3DDevice->CreateDepthStencilSurface(). But rather than returning one of the values that the documentation says it should return (D3DERR_NOTAVAILABLE, D3DERR_INVALIDCALL, D3DERR_OUTOFVIDEOMEMORY, E_OUTOFMEMORY), it returns error code 80070057. What does this mean?
|
I'm currently learning XNA per suggestion from this question's accepted answer:
Where to start writing games, any tutorials or the like?
I have then installed everything to get ready to work with XNA Game Studio 4.0.
General Objective
Writing an Arkanoid-like game. I want to make my ship move when I press either left... |
Possible Duplicate:
Resources to learn programming rigid body simulation
Hi guys,
I want to try learning rigid-body dynamic simulation. I have done a fluid and cloth simulation before, but never anything rigid. My maths knowledge is limited in that I don't know the notation that well.
Are there any good cliff-notes... |
2.5D ("two-and-a-half-dimensional"), 3/4 perspective and pseudo-3D are
terms used to describe either:
graphical projections and techniques which cause a series of
images or scenes to fake or appear
to be three-dimensional (3D) when
in fact they are not, or
gameplay in an otherwise three-dimensi... |
I've just started out with OpenGL I still haven't really understood what Vertex Array Objects are and how they can be employed.
If Vertex Buffer Object are used to store vertex data (such as their positions and texture coordinates) and the VAOs only contain status flags, where can they be used? What's their purpose?
As... |
I am looking for ideas how to implement following in 2D space. Unfortunately I don't know much about AI/path finding/autonomous control yet.
Let's say this ship can move freely but it has mass and momentum. Also, external forces might affect it (explosions etc). The player can set a target for the ship at any time and ... |
I am doing a GL multi-pass rendering app for iOS. The first pass renders to a depth buffer texture. The second pass uses the values in the depth buffer to control the application of a fragment shader. I want to rescale the values in the depth buffer to something useful but before I can do that I need to know the depth ... |
Hey, im a newbie at this programming lark and its really frustrating me. I'm trying to move a snake in all directions while using classes. Ive created a vector2 for speed and ive attempted creating a method which moves the snake within the snake class.
Now I'm confused and not sure what to do next.
Appreciate any hel... |
I'd like to determine the attributes of a quest (i.e., information provided by functions such as QuestIsDaily and IsQuestCompletable) before the player clicks on the quest detail.
I'm trying to write an add-on that handles accepting and completing of daily quests with a single click on the NPC, but I'm running into a ... |
How to create AI in games like suduko/snake and ladder/tic-tac-toe in general board games where computer is a another opponent.
|
I'm trying to use gluLookAt to move the camera in my iPhone game, but every time I've tried to use gluLookAt my screen just goes "blank" ( grey in this case )
I'm trying to render a simple triangle and to move the camera, this is my code:
to setup my scene I do:
glViewport(0, 0, backingWidth, backingHeight);
glMatrixMo... |
Yes so this is a question more oriented towards the planning / project part of game development. What software do you use to plan your game, I am talking about visual stuff like a mindmap application for making some neat diagrams and so on, sort of like database design only it's for the game instead, is there any good ... |
I recently found Soya3D, and I want to import .obj files, but it seems to only accept .data files. How can I import .obj files into Soya3D?
Importing a .obj file named "house" produces this error:
Traceback (most recent call last):
File "introduction.py", line 7, in
model = soya.Model.get("house")
File "/u... |
I'm just starting to get into 3D programming with Direct3D. What version of D3D should I pick up?
11 looks pretty neat, but 9 and 10 still seems to be pretty present. Given the current state of the game development industry, which version does it make more sense to start using?
|
Lightcycles or whatever it was called like.
Given a 2d array representing the game map, where each element can be either 0 or 1 (0 representing blank space and 1 representing filled space), what is the algorithm used for TRON enemy A.I?
|
I need help understanding the Triangle A* (TA*) algorithm that is described by Demyen in his paper Efficient Triangulation-Based Pathfinding, on pages 76-81.
He describes how to adapt the regular A* algorithm for triangulation, to search for other possibly more optimal paths, even after the final node is reached/expand... |
Reading several other questions and answers on using a component based system to define items I want to use one for the items and spells in a web game written in PHP. I'm just stuck on the implementation.
I'm going to use a DB schema suggested in this series (part 5 describes the schema);
http://t-machine.org/index.php... |
As part of my game, I thought it would be fun to make a hidden level that pays tribute to Mario Bros (one of the earliest games I ever played). It would be themed in that way with 8-bit graphics and question mark blocks and completing the level would say "Thank you but the princess is in another castle" or such.
For th... |
I'm writing a Minecraft-like game using Ogre engine and I have a problem. I must optimize my game, because when I try draw 10000 blocks, I have 2 FPS... So, I got the idea that blocks display of the plane and to hide the invisible blocks. But I have a problem - how do I know which blocks at a time are visible to the pl... |
Could some resources be listed in relation to the creation and management of simplistic, efficient 2D game levels, that are available for use with Java?
|
Is there and TODO list for a game design and development. I'm going to do a game in XNA and I would like to do my TODO list like:
Logo
Backgroud
Music
etc.
Any tips?
|
I want to create an installer for a game which allows for an icon to be put in the Games Explorer for Vista and Windows 7.
I have created the GDF, then built the script for project and obtained the .h, .gdf and .rc files. But I can't compile (using Visual Studio 2010) the .rc file into an executable to be used after th... |
I've always been a Valve fan, but now that I have the opportuninty to choose a game engine for a project I'm not sure I want to choose the Source Engine after watching this wikipedia entry. My options essentially boiled down to an open source stack (Horde3D + Zoidcom + Spark + SFML + CEGUI, and well, not OSS but PhysX ... |
I'm rewriting my game now using software designing patterns and want to do the code, most correct I can. While implementing MVC(Model View Controller) I got a question which I would like to discuss or to hear some opinions of experts.
The question is about management of unused frames... For example next sequence of win... |
I'm looking for a way to write a typed text on a texture, and then render it on a screen: in the game it's just the screen of a computer where a scientist is typing text on.
The texture will be already generated: it will have several textures in it.
I can't find any obvious way to do a simple render to texture with uni... |
We are doing our school project with Unity3d, since they were using Shiva the previous year (which seems horrible to me), and I wanted to know your point of view for this tool.
Pros:
multi platform, I even heard Google is going to implement it in Chrome
everything you need is here
scripting languages makes it a good c... |
I want to improve upon my first person camera implementation and extend it to, so the user can toggle between third person/first person view.
My current setup:
draw()::
glPushMatrix();
m_pCamera->ApplyCameraTransform();
// Render gameObjects
glPopMatrix();
Camera is strongly coupled to the player, so much so,... |
I'm just trying to figure out the best approach for running a scolling background on an android device. The method I have so far.... its pretty laggy. I use threads, which I believe is not the best bet for android platforms
@Override
public void run() {
// Game Loop
while(runningThread){
... |
In my current FPS game, I have the mouse setup in a way, that it always forces the position of the mouse to be centered at the screen. This gets the job done, but also gets very annoying, since the mouse is "fixed" at the center of the screen.
Here is what I am doing:
get mouse current position
find offset from cente... |
I am interested in making a game that I currently have a co-op experience, however I'm curious as to the best method of implementing this in HTML5.
I have made games before using straight C sockets, and also with the Net library for SDL.
What are some of my best options for doing this in a canvas-based environment?
At ... |
this question is very programming-centric, but it's for a game so I figured I might as well post it here.
I'm doing polishing work on a GGJ '11 game because it will be shown at an indie arcade tomorrow afternoon, and they're expecting our final build in the morning.
We'd like to have a high score table that displays du... |
In a normal top-down 2D game one could use the screen y axis to sort the images. In this example the trees are properly sorted but the isometric walls are not:
Wall 2 is one pixel below wall 1 therefore it is drawn after wall 1, and ends up on top.
If I sort by the isometric y axis the walls appear in the correct orde... |
I'm taking a class on compilers, and the goal is to write a compiler for Meggy Jr devices (Arduino). The goal is just to make a simple compilers with loops and variables and stuff.
Obviously, that's lame, so the "real goal" is to make an impressive game on the device. The problem is that it only has 64 pixels to work w... |
In industry games I mean like Quake, CoD etc.
|
I have a small 2D game I'm working on in XNA. So far, I have a player-controlled ship that operates on vector thrust and is terribly fun to spin around in circles. I've implemented this as a DrawableGameComponent and registered it with the game using game.Components.Add(this) in the Ship object constructor.
How can I i... |
I am trying to get a skybox rendered correctly in my first person shooter game. I have the skybox cube rendering using GL_TEXTURE_CUBE_MAP. I author the cube with extents of -1 and 1 along X,Y and Z.
However, I can't wrap my head around the camera transformations that I need to apply to get it right. My render loop lo... |
I am not sure if this is a fitting question for gamedev, or if it is too art related. I am currently trying, to create 2D character protraits for my game.
At first I tried to draw them and even though it helped polishing my drawing skills the end result either required way too much time or it simply looked like it was ... |
I am doing volumetric raycasting and curently working on depth jitter. I have 3D position on ray and want to sample 2D noise texture to jitter the depth.
Function for converting (or hashing) 3D position to 2D have to produce absolutely different numbers for a little changes (especialy because i am sampling in texture ... |
how can i move static box2d sprites. i have tried this tutorial from .
http://www.raywenderlich.com/475/how-to-create-a-simple-breakout-game-with-box2d-and-cocos2d-tutorial-part-12.
I managed to add another "paddle" object with box2d body, but i can seam to be able to make the code to move the second "paddle" body.
Can... |
Is it possible to describe an "optimal" (in terms of performance) layout for a 2D side-scroller's game loop? In this context the "game loop" takes user input, updates the states of game objects and draws the game objects.
For example having a GameObject base class with a deep inheritance hierarchy could be good for ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.