instruction stringlengths 33 29.4k |
|---|
This question has probably been asked quite a few times, or something similar to it, but I'd like to get some better information on OGRE, since I felt that any descriptions I found weren't very comprehensive as to what it truly does.
I've been dabbling in OpenGL for a while now, and am currently doing my best to tackle... |
If one wants to use services, they can use the ones built in to XNA (Game.Services) and pass around the Game object to everything that needs to either query for a service or add a service.
Alternatively, one can create their own game services class and make it static to avoid having to pass around Game everywhere.
Inst... |
I want to generate a completely unique world with biomes (like what Minecraft and similar games do). I don't understand how they generate these entire worlds from a single "seed" number. Can someone provide a basic overview of the technique?
|
I have a "problem" with XNA 4 and spriteBatch. When I draw a rectangle and rotate it, the sides get quite pixelated and look bad: example:
What do I need to do to make the edges look smooth?
spriteBatch.Draw(box, new Rectangle(350, 350, 100, 100), null, Color.Red,MathHelper.ToRadians(65), new Vector2(50, 50), Sprite... |
I'm working with Flixel and attempting to emit "custom" FlxParticles from a FlxEmitter. However, my main issue is that I typically get the default Flixel image emitted instead of my custom graphic.
If I modify the FlxParticle constructor in the Flixel source code like so:
public function FlxParticle()
{
super();
... |
Possible Duplicate:
How can I create a random “world” in a tile engine?
I need some advice as to how I should go about coding a 2D Terrain Generator for a game written in C. I need to create a terrain generator similar to the game minecraft, but in a 2D landscape.
|
Im writing a game for which, one of the models are loaded from an .obj file.
It's a model of a plane, and I want to rotate the propeller. The object file is broken into groups, and the propeller is identified, so that's all good.
I'm writing the game in C++ with OpenGl/GLFW
The drawing function is:
int win_width;
int w... |
I'm having trouble understanding the behaviour of my OpenGL program; and in drawing my Z-Buffer out to the screen.
It will probably be best to just start with code, here is my GLSL shader:
in vec3 vVertex;
smooth out vec4 vSmoothColor;
vec4 vPosition;
uniform mat4 MVP;
void main() {
vPosition = MVP * vec4(vVerte... |
Update: The completed solution using Nathan Reed's answer is posted in my answer below
A few open source programs I've seen that render installed fonts do something like this...
Create a texture for the font
Draw font to texture using native calls
Store the coordinates for each character
Create a vertex buffer with a q... |
I'm interesting in knowing more about how vector games like Elite and Star Wars Atari were built from grounds up. The question is not how to implement vector graphics with modern 3D APIs like OpenGL and DirectX, since doing it is quite easy and does not require to build a vector/matrix system from scratch like those ga... |
following my previous post on random world map generation, I used several algorithms and obtained results similar to this: https://i.stack.imgur.com/YG26W.png (the height values are quantisied for viewing but they go from 1 to 500 before quantisation).
Now I am trying to improve the "lakes", as you can see, the water b... |
In many games you raise a level when you reach a certain score, and later levels are harder to reach than in the beginning.
I am suspecting that it is some sort of exponential function that is used in e.g. WoW.
Does anyone know of a good exponential function for this purpose?
|
I have a rigged model in blender of a man walking, I would like to know how to get this to display and animate on the iPhone and if their is a good free game library out their that lets me do it (even if it means saving as another format).
I've tried Cocos3D with no luck as the convertor from collada to Pod is crap (f... |
I have been programming for a bit and for 2D games and other applications I frequently make large images for the levels / the maps. Before I place these into the games I split the large images down into smaller equally sized squares, but I do this manually in 'the Gimp' and it takes ages sometimes! Is there some softwa... |
I made a little critter that roams around.
var boundary = 10.0;
var startingPoint = <0.0,0.0>
var destination = startingPoint+<randMinMax(boundary-(boundary*2),boundary),randMinMax(boundary-(boundary*2),boundary)>;
It generates a random destination (x,y) within a 10 meter area around its starting point. It then moves ... |
I'm working on an entity system for a networked game and I'm assigning each entity a unique 32-bit integer id that I can use to serialize references to entities and the entities themselves.
Currently I'm just incrementing a counter every time an entity is created. I guess the ids will eventually run out but I don't rea... |
I need to make a simulation with stone thrown through a glass window. How can I accomplish that?
I mean, I was thinking about making a 3D model of a stone and glass in 3D Studio Max 2012, shatter the glass and export both to XNA 4.0 as .x models. Then in XNA make the animation - writing my own physics engine. Is it pos... |
I've seen some games from the early 2000s that had a launcher where you could select the rendering engine you wanted to use: DirectX or OpenGL.
Maybe I haven't looked hard enough, but I haven't seen anything like this lately so I have two questions:
Why did they do this before?
Why aren't they still doing it?
|
I am thinking of making a chess game, and I read up on minimax trees. How many moves should the AI think ahead so that the player doesn't have to wait a long time?
If there are 25 possible moves (probably an underestimation):
2 moves = 625 boards
3 moves = 15625 boards (huge jump)
I'll be making the game in flash / act... |
My friends and I in school play this interesting card game, which we call 'the game without rules' (ironically, of course). The game is like this: in the beginning of a school year, we start with one rule: you have to lay a card that is higher. Everything else is not allowed and the one who is the first to have no more... |
Is it safe to use Sleep() function on Windows in game loop (C++)? I want to have fixed frame rate.
|
I am trying to learn how to construct view and projection matrices, and keep reaching difficulties in my implementation owing to my confusion about the two standards for matrices.
I know how to multiply a matrix, and I can see that transposing before multiplication would completely change the result, hence the need to ... |
Imagine an RTS game where so-called basic units play the main role throughout a whole game session.
In my game basic units are actually programmable by a player (like in Colobot/Ceebot), that's why it is so important to keep them significant from the first to the last second of each session.
Problem
I found out that en... |
I'm not really aware of the legal issues surrounding game clones.
I'm around halfway done of making a clone, but it's not just the same gaming concepts, I'm literally using the original game's files (which I do not intend to distribute in any way) in my clone. My original intention was to add features to the game (Fire... |
Disclaimer: I'm okay with making this a community wiki, as I see a lot of benefit in having a place to ask this question and get good answers from people who have experience.
I would like to mod a 2D game. Having never modded a 2D game before (unless you count Starcraft custom maps back in 199x), I am looking for a gam... |
Working in C#/XNA for a Windows game: I'm using Texture2D to draw sprites. All of my sprites are 16 x 32. The sprites move around the screen as you would expect, by changing the top X/Y position of them when they're being drawn by the spritebatch.
Most of the time when I run the game, the sprites appear like this:
and... |
I'm working on a level-based survival game and I want to design my scenes in Maya and export them as a single model (with multiple meshes) into XNA.
My problem is that when I try to create Bounding Boxes(for Collision purposes) for each of the meshes, the are calculated from origin to the far-end of the current mesh, ... |
I have Googled for it but there are no ready scripts - as opposed to the same effect on Flash. I have checked the algorithm on The Water Effect Explained and also tested an implementation of the Perlin Noise, which provides a good simulation of the end of waves on a flat surface. I am looking for the same implementati... |
On the water demo supplied with Ogre3D's SDK, controls are set to actually control the camera and environment, but not actually the ogre head that generates the disturbances. I tried digging into the SDK code but couldn't find the actual pieces of code that allow customization of the controls (keyboard input). Maybe th... |
I have been going through the documentation and the Pygame functions and classes today, but couldn't find a reasonable way to either create a circular crop of an image or how to use a mask to perform this: assume an empty circle with a line width of 50px, with a single key color, that is supposed to be removed from sur... |
I am making a game using OpenGL, with SDL_Image employed to load the textures. When drawn on screen, there's no alpha -- in an exact square around the opaque contents of the texture, black is drawn; outside that space, white is drawn. Here is my OpenGL init code...
SDL_SetVideoMode(windowWidth, windowHeight, 16, SDL_HW... |
I am making a game in which a cube travels along a maze with the motive of crossing the maze safely. I have two problems in this.
The cube needs to have a smooth movement like it is traveling on a frictionless surface. So could someone help me achieve this. I need to have this done in a event callback function
I need ... |
I'm currently in the process of making a top-down shooter for my programming class, and one idea I had, but don't exactly know how to implement is image rotation in order to spin the object continuously. What I have are spaceships, and right now all they do is face one static direction. All I want is to have them non-s... |
I am developing my first Android OpenGL game. It's a 2D game and I would like the background to always fill the screen. I've managed to achieve this by stretching the texture to fit the size of the screen based on the aspect ratio, but the texture becomes quite pixelated when stretched.
What is the correct way to achie... |
I have a rigged model using an armiture in blender, I was wonder how you could bake the animation as kayframed data so that I could remove the armiture and the model still walks without being rigged.
|
I'm new to game design and don't really know how things are done. I'm thinking of building an iOS game where a ship has to fly as high up as possible (at variable speeds), collecting power ups, et cetera, on the way.
What is the way to go here? Should the background and items scroll down from the top or should the ship... |
Possible Duplicate:
How much extra power is required for a stereoscopic 3D game?
How much extra processing power would be required to make a 3D TV compatible mode in a 3D game?
(Nothing specific, think any modern FPS)
Would it be negligible as you would split the framerate between the two 'eyes'?
|
I just finished developing a 2D side scroll game for the IPad using Cocos2d and Box2d.
Now we want to make an IPhone 4 version of the game, but I'm still not sure what is the best way to do it.
I was thinking to just create a new target on my project, remove all the current resources from the Build Phases and create a... |
I, a newbie, have been doing back face culling in javascript for my WebGL app because I didn't know gl.cullFace() existed. Is there any reason to use software-based culling instead of just passing all faces to GPU and let it do the culling?
|
Trying to wrap my head around the ways to properly handle collision in a game designed around components.
I see many examples have some sort of PhysicsComponent that gets added to the entity's list of components but the actual implementation is confusing me.
For this to work, the PhysicsComponent would need access to t... |
I want to add a short audio track to a game of concentration I'm coding. I want the sound to occur when the user has won the game. How do I go about doing this?
I would really appreciate the help, thank you.
|
I'm trying to make a camera that follows a race car. Right now, I'm smoothing the camera movement out by moving the camera's position a fixed percentage lerp'ed from the camera's position to the car's position.
However, this makes the car appear closer to the edge of the window when it's moving toward that edge. I want... |
Are there any examples of companies or papers using evolutionary algorithms (EA) or genetic programming (GP) in procedural generation of content for games? Does this exist in the industry?
This is about the only place I have really found it:
http://pcg.wikidot.com/pcg-algorithm:automatic-game-design
I've checked these ... |
I have a class called Game in the package net.aGameName and am trying to export a runnable Jar using eclipse. In the project I have two external Jar files added, lwjgl.jar and lwjgl_util.jar.
When I go to File->Export->Runnable Jar File and choose the Launch configuration I use for testing (which works successfully) I... |
Being bored I decided to make my game isometric by applying a simple filter effect.
g.scale(1f, 0.5f);
g.rotate(400, c.getHeight() / 2, 45);
It works great, but now everything appears... flat.
|
I'm trying to speed up my pathfinding and discovered A* with JPS. It basically prunes tiles before adding them to the OPEN set.
Can I use that technique with my grid that only allows straight directions?
|
I am building a game in which I want to simulate smooth movement of an object upon pressing a key or any other event. Could someone advice me to get that feel of gliding of an object, sliding on a frictionless surface. How could I have that?
|
I'm doing a network game and on the client side, i interpolate the client position with the server sent extrapolated position. The client has its own physics simulation wich is corrected by the server in steps. The problem is when it laggs and i 'kick' the ball, the server gets a delayed message and sends me the positi... |
This is a very elementary question. At the moment I am drawing lots of faces separately by setting a location uniform separately for each one of them. This is very slow. As I understand it, the correct way to do this is to build a large mesh and draw it all at once.
I am not sure if I understand how to do this, and sin... |
I'm working on a generic game server that manages games for an arbitrary number of TCP socket-networked clients playing a game. I have a 'design' hacked together with duct-tape that is working, but seems both fragile and inflexible. Is there a well-established pattern for how to write client/server communication that ... |
A Pokemon wild battle. The enemy may have up to 4 moves.
I am wondering, is there any.. A.I going on here, or does the enemy simply take a random move and then executes it? Are there not any battle factors/conditions that may change the enemy's behavior?
I guess it makes sense to categorize moves by "Offensive" "Defens... |
I'm trying to figure out how to do what I can only call a recursive query (my knowledge of MySQL is extremely limited). The game I'm designing has a tech tree with items to research that will grant you stronger stuff down the line. The prerequisites are broken down in another table, since each tech item can have 0 or m... |
I have a set of squares (pixels coming in from an image) that I want to triangulate.
I narrowed my choices down to 2 possible routes:
A, breaking the squares into lager rectangles, or
B, generating a set of vertices and triangulating them.
B is better, as it generates fewer vertices.
I'm dumb, and couldn't find a... |
I just recently asked this question and the conclusion seems to be that using genetic programming (GP) for Procedural Game Content Creation hasn't really been done. I want to change that.
I'm fairly certain GP could be deployed to help find a new terrain generator. The question I'm getting to is how might this be achi... |
I've had problems building on libtcod on OsX but i'm not the only one (see http://doryen.eptalys.net/forum/index.php?topic=621.0) but the beautiful RL Brogue uses Tcod and even builds on a Mac (https://sites.google.com/site/broguegame/).
anyone else get to developing on OsX with libtcod? hopefully with Make, not XCo... |
I have been playing around with Ogre3d and trying to integrate bullet physics. I have previously somewhat successfully got this functionality working with irrlicht and bullet and I am trying to base this on what I had done there, but modifying it to fit with Ogre. It is working but not correctly and I would like some h... |
I'm trying to get a realistic behaving racing car into my 2d top-down game.
Making a very simple car that drives around is straight forward but I want a reasonably sophisticated model that models Newtons laws and the forces on the car well and results in something great.
I searched the web for a good tutorial on how to... |
I am making a 2D tower defense game. So far I have a 2d array which acts as a grid for my game. I'm able to place towers on it, run enemies and some dragging and tower firing stuff.
Now I am facing a problem in tower placement logic. I want that there's always a walkable path for enemies, meaning that the user should n... |
I'm taking my first venture in to writing a shader and what I really need to do is create a billboarding effect. A thorough Google search turns up a number of threads on the topic and they always end with
A) Figured it out. Thread closed.
B) Anyone?
C) "long language/system-specific answer without explanation"
Most com... |
I've been learning graphics programming for some time now using OpenGL and Linux. I'm pretty familiar with most of the concepts, but I would really like to further my knowledge and eventually pursue a career in game development, especially game engine development.
So far it seems to me that the majority of game studios... |
Many years ago I coded some AI for a budget pseudo-3d game. There was one calculation which I never really figured out the best way to do, and that was calculating where the enemy would end up if it stopped now. For example:
The enemy is currently at X = 540.0.
The enemy is moving right at 10 pixels per frame.
When th... |
I need to save some custom game data. Map, player, etc.
All of them will have "sub objects". For example, a map and map will have an "array" of tiles. ie, hierarchical data. Hopefully nothing binary.
What would be a good format for these?
So far I'ved considered:
Serailization: This is FAST and easy, but tends to ... |
So after reading about components for a bit I want to make a very simple spaceshooter game that uses components and systems. However, I'm a bit confused on how much scope each component should have. For example, let's say the game had asteroids that fly around and if you hit them, you take damage. They also have health... |
I'm lead programmer in a medium-sized indie game studio. This is our first game as a team. We're working on a futuristic FPS game, with a profit-sharing buisness plan.
Anyway, we have some very good programmers, who have the ability to create never-seen-before features (true realistic fluids, procedural mesh destructio... |
I have a game which uses SFML, which in turn uses OpenGL.
When I run the game, it will use 100% CPU for (usually) about 24 seconds, and then immediately falls down to normal usage. I can't figure out what's going on during these 24 seconds. In some cases, it stays at 100% CPU usage forever, but it usually stops after 2... |
I'm having an issue here with rotation in OpenGL. Before I changed my rendering function the rotation I had for my object worked fine, but now it seems to be messed up.
I changed my rendering function because I wanted to be able to clip the image (render frames of the image), whereas before I was just rendering things ... |
Possible Duplicate:
What are some good game development programs for kids?
I want very easy game builder for a kid - somebody who knows nothing about programming games (how they work inside) and just wants to build some (I could teach him but I am not available all the time). She tried Adventure Maker and got confus... |
I'm using OpenGL through LWJGL.
I have a 16x16 textured quad rendering at 16x16. When I change it's scale amount, the quad grows, then becomes blurrier as it gets larger.
How can I make it scale without becoming blurry, like in Minecraft.
Here is the code inside my RenderableEntity object:
public void render(){
... |
I've just got done talking to the CEO of our independent game studio about one of our projects nearing completion. We're considering canning the whole project for a number of reasons:
There are partly, some quality issues. Combat can be fun and in depth but for the most part you can get by with mashing buttons. It lea... |
I want to make b2mouse joint working similar to b2setposition, though i know in mouse joint force is applied, so it's not possible to reach the desired point without any delay like setPosition(), but i want to make it works as close as b2setPosition(). So on which mousejoint/body properties should i work on so that it ... |
If I add a math library (for example containing a Matrix class) and use it in my program drawing with OpenGL, will my be work slower than if I used standard OpenGL functions for matrix calculations? Does the same hold true for DirectX?
|
I want to create online games and focus on the performance from the beginning.
I searched on the internet, but didn't find any an particular answer concerning the design level or development level aspect, such as
Design Patterns,
Protocols,
Techniques,
Data transfer(games state) ,
Formats(JSON/serialization)
;
wh... |
i've just scored 8 Dell 2950's and a Dell Blade Chassis with 10 Dell 1855 Blades, including a NetApp NAS. i'm interested to hear what other game devs would do with the gear. :)
|
I'm creating a FPS in XNA. So far its' going great. What I'm looking at doing is replicating the camera movements that you see in Modern Warfare. So, if you are walking the camera stays pretty still except for the slight weapon movement, but if you sprint then it shakes left and right. Here is a good example : Mod... |
I'm building a side scrolling platformer with Javascript and the canvas element for a school project. I have the character all sorted out. He runs left and right, and has a different sprite set for standing still. The game has gravity, and I can jump. Now what I can't get my head around is how to implement side scrolli... |
Working on a game in the Corona SDK with Lua and I need help so the player animates on the line drawn. Right now he animates at the beggining and the end but not on the line.
Here is the player code:
function spawnPlayerObject(xPlayerSpawn,yPlayerSpawn,richTurn) --spawns Rich where we need him.
-- riches sprite sheet a... |
I have a CurrentValue and a TargetValue.
Every frame, i want the CurrentValue to "lerp" towards the TargetValue.
I always seem to get jitter, because the currentvalue never perfectly hits the targetvalue.
Lets say i have a targetvalue of 5 and a currentvalue of 4, and the speed is 2.
Then the value will go from 4 -> 6 ... |
I'm using a for loop or foreach loop (doesn't matter) to loop through all my objects when they need to be updated or drawn. However, when an object gets killed, I want it to get removed from the collection again.
I do this by adding the object to a dead-objects list, and then, when everything has been drawn and updated... |
I've made myself a camera for a DirectX 10 game, and the keyboard control works fine. However, I can't see to get the mouse to work. My biggest problem is I can't find out how to hide the mouse on the display to allow a crosshair (I don't need a visual one) and make movement like it would be in any other common 3D game... |
So my team and I need to assign values to specific values in the inspector to large numbers of objects.
For example, we have a script that's assigned to all the walls, and all the floors.
We want to select all the walls in the Scene view and assign the value "1" to a variable in the inspector and then go and select all... |
I am building a Javascript/canvas platformer game, and it's coming along nicely. The only problem I've really run into where I can think of any solution at all is the animation of my player sprite.
The game loop is running every 16ms, which equates to 60fps. On every game loop, I'm using a method of my player class (ca... |
Consider two balls moving towards each other. Each has a given mass and velocity. Assuming the balls collide, how can you determine what direction the balls will take afterwards? (taking into consideration the mass & velocity)
I realise it's quite a big question, perhaps someone could direct me to an appropriate tutori... |
Edit: I changed the way that gravity was applied so that it is applied even when a player is standing on a block, so instead of the game outputting that you are stepping on a tile as true and false (because if it is true gravity isn't applied, and it is moved out of collision thus in the next frame it does not collide)... |
I am wondering, why do games for Facebook have to be about 622 pixels high?
|
To followup from a previous query - I need some help with the implementation of easystorage high scores, which is bringing up some errors on the xbox.
I get the prompt screen, a savedevice is selected and a file are all created! However the file remains empty, (I've tried prepopulating but still get errors).
The full p... |
With some holiday time coming up I thought it might be interesting to look to try and make a game that's been in my mind for a while now.
I'm a professional programmer so I have experience with most common languages (and I am not scared of picking up a new one if needed) but I've never done any graphics or game work b... |
I am new to game development and I am developing my first "Tower Defense"-type game.
I need a pathfinding algorithm to place my towers and to move enemies.
For tower placement case: I want the algorithm to run from entry to exit so that if it passes, the user can place tower and if fails user can't.
For the enemy case... |
In my opinion, games that are most entertaining to watch and play implement fake physics, the difficult issue is how to implement the fake physics and still allow it to appear realistic. Most popular car driving games implement this really well.
Question
Anyone has any tips or know of anywhere I can learn more about ho... |
In my gameclient I have the following classes(compontents):
Game, GameScreen, GameWorld, Player.
They are structured like this:
Game has two GameScreens: MenuScreen and MainScreen.
MenuScreen has an instance of GameWorld.
GameWorld has an instance of Player.
Now I wanted to add a multiplayer mode to my game. For this I... |
Gamification has become a buzz word lately and is being applied to everything from applications to meetings. In many cases it is being done as an afterthought and sort of game-washing.
What are the key differences between something having real game dynamics and simply being a superficial gamification layer? Where is ... |
I'm currently having a problem choosing an engine for a game project I have since a few years.
What I'd need is to be able to load a terrain from a remote server (which I can take care of) and display it dynamically, if possible with paging.
The terrains should also be able to be edited in realtime (locally or remotely... |
Suppose I use a simple discrete collision detection system where I move all objects then check for collisions. I want any colliding objects to be separated (of course) and assigned appropriate response velocities (bounce, slide, stop, etc.).
When I have a pair of colliding objects, how do I separate them without ending... |
I was reading about component-based entity systems and I was wondering why there is usually a large EntityBuilder class with methods like CreatePlayer(), CreateEnemySpaceship(), and CreatePowerup(), all creating an entity, attaching some components, and returning the entity.
The class has the potential to get quite lar... |
I'm developing a website that can display 3D models of motorbike. I haven't decided on which tool to use yet but it seems most of them support X3D and VRML files. So I'm searching for already-made models in either format but got no result so far, anyone know where I can find one? Thank you.
|
I'm writing a game engine which is going very fine. However, I'm now posed with handling textures.
My Engine is in 2D, for simplicity reasons mostly to get a good idea of how to work with OpenGL. I do this in C++, and I have a hierarchical set-up when it comes to classes. There's a base class and some other classes der... |
The title pretty much says it all... (Minecraft is a game consisting of evenly-spaced cubes for terrain, like voxels)
Note: I am using C# XNA.
I am pretty sure AABB is the way to go, yet I don't know how to implement it. I admit, I'm almost looking for code, but theories/ideas are very welcome.
Important capabilities ... |
I've played some games at cca 30 fps and some of them had low reaction time - cca 0.1sec. I hadn't knew why.
Now when I'm designing my framework for crossplatform game, I know why. Probably they've been preparing new frame during rendering the previous.
RENDER 1 | RENDER 2 | RENDER 3 | RENDER 4
PREPARE 2 | PREPARE ... |
I'm currently learning game development with C# and XNA and my current assignment is to create a Pac-Man clone.
The game is partially tile based, which means that the level itself is built out of an array of tiles, but Pac-Man and the ghost just have a position to be drawn at.
I've got the basic functionality down, suc... |
I've played and completed Rage and currently Battlefield 3 (which looks a lot better with less hype). One thing that is immediately apparent is the lighting, or the bump maps - I can't figure out which it is - makes the experience on a high end PC a lot clearer and better looking.
What is the advancement that these gam... |
I am working on a text-based game totally from scratch and one thing I am not sure how to do is the map system.
In my mud engine totally writen in Javascript (that will be executed in a Node.js environment), I use that kind of data to design an area and the links between rooms.
/**
* [003]-[004]
* | ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.