instruction stringlengths 33 29.4k |
|---|
My problem is, whenever I start programming a clone of a game (for practice) or my own game or some other problem I stop somewhere in the middle of the development, because I lost interest in it.
How do you keep up the interest in developing a game, or developing in general?
|
After doing some research, I found out about the marching cubes algorithm and "metaballs". How exactly do they differ?
|
We are using JSON right now and want to move to a binary format for some types of messages between client and server.
Should I just read structs into the socket? Use proticol buffers/thrift?
How should I represent arrays of data?
What should the interface look like for packing/unpacking data?
|
... or better yet, removing the need to search the map altogether.
I'm either looking for suggestions on how to optimize my code, or a change in design.
In my component-based entity system, the Entity is comprised of Attribute and Behavior objects. The Behavior objects are just stored in an std::vector; they are no iss... |
I know this is only partially game development related, but couldnt find another place to ask.
How can i convert an autocad dwg or dxf file to a more 'common' format like OBJ, FBX, 3DS, etc. ?
i tried directly using autocad LT but the export options dont have any other format.s
free and oss solutions preferred.
|
I don't know if I'm just not looking in the right place, but I can't find ID3D10EffectShaderResourceVariable::SetResourceArray anywhere in SlimDX.
Anyone have any idea how I should be calling this?
|
I'm writing a game that needs to save a lot of detailed data (exact trajectories of some entities) to an external file. I want to save drive space and bandwidth by compressing it, but I've never done this, so I don't know if there is a preferred way to do it.
Of course the compression-decompression should not affect th... |
I've been looking into web services for making multiplayer games and was just wondering how feasible would it be?
What I would like to do is make a simple MMORPG that uses a turn based fighting system, are there any inherent limitations with web services which would make this difficult and not worth my time?
Also out o... |
I can create an Action with parameters using an Actiondefintion.
But how can I create an Eventdefinition ? I'd like to make an Event that is 'called' when a Unit, that is saved in a variable, dies. Like an Event called 'My unit dies'.
The desired behavior is the following:
Called when a unit defined in a variable d... |
I'm developing a 2D RPG game, like Zelda. I've developed a first version, for studies.
Now, I'd like rewrite it in better way
The character has strength, agility, willpower, constitution, dexterity and concentration and has to fight monsters. Typical.
But I'm a noob, and I would like advice for creating the game system... |
What is the procedure to convert 2d path to 3d one. Maybe it's a silly question, but for example:
Let's assume that I have a path from point A to point B. And I have all X and Y coordinates of that path. Is it possible to convert that to a 3d path, so for example to animate a car driving along that path but in 3D.
|
What is the current state-of-the-art to network real-time strategy games?
I seem to recall that a few years ago, some AAA titles only transmitted the player inputs (Starcraft 1, Age of Empires). Since this requires you to keep everything else totally deterministic, is this still a viable option? Synchronizing random nu... |
glPushAttrib(GL_ALL_ATTRIB_BITS);
glBindTexture(GL_TEXTURE_2D, 0);
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboId);
gl::drawFilled(mesh_);
//glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
glAssert();
glPopAttrib();
glAssert(); // <= crashes here
If I uncomment the line //glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); it... |
I was thinking of learning about making games, so I thought of an idea about making a game on a play, since the content is already there. I actually found well parsed XMLs of Shakespeare's plays. I thought of a few rather simple game-play elements, but none seem fun. I thought of a 'word shooter' but it wouldn't be muc... |
I make my money in C# Generally in that language I like to decouple everything to the high heavens using interfaces. This has served me well in enterprise code but in writing games in C# I find myself tending towards inheritance due to being able to define some default behaviors for base classes. I feel dirty doing thi... |
recently im trying to create a isometric game for facebook pretty much like Empires and Allies in facebook , i have used as3isolib to create the game , the user interactions are almost ready , but im stuck in designing the database for it .
i tried to search online but i could'not find any source or sample db designs f... |
I'm writing a browser game in php and Sql. I'm also using Javascript - Ajax and Mysql.
I'm stack on the battle system because I want to Synchronize the turns of the players in the battle.
What I doing is to put two players on a battle. So from the first turn a countDown of 60sec will start.
What I am thinking is to use... |
I have written some GLSL and Cg shaders a couple years back. I am starting another graphics engine project and I want to choose my technologies carefully so that my code will be accessible years down the road.
It seems to me that GLSL and Cg and HLSL are just slightly different syntaxes. Are there any other alternativ... |
Does radiosity work with skylight (directional light)? From reading online it sounds like it was intended to work with point lights but I would really like to make it work with skylight if possible.
If I did misunderstand how would I make this work with skylight?
The form factor attenuates for distance, area, and orie... |
I'm working on a minecraft-like world and recently saw this video with a water shader. I searched but couldn't find any good info on how to do something similar. Maybe I'm just googling the wrong thing. Does anyone have any resources on how to do something like this?
minecraft water shader video
|
I am trying to convert this dungeon algorithm from java into javascript, however, my script works 70% of the time. When it works, the rooms are missing a wall on one side, and when it does not work, it is stuck in an infinite loop.
(Sorry the images are small, getting the pixels to scale is another problem :P)
I am... |
I'm working on a game which can't run at Full speed on some devices. On Tegra2, with many optimizations, performance is near 40 fps. The framerate is stable but animations aren't smooth enough, so i need a vsync.
With 2.3 Android SDK, we can use EGL library natively. So i try to use eglSwapInterval but no success. In t... |
I'm currently making a game with my own game engine which I've written in C++ and I'm using the most recent directx SDK.
The game is a top down space shooter (with a pretty interesting twist) and I'm looking to have a sort of nebula effect that the player will fly through. I really want to try and nail that nice tacti... |
It is very odd.I want to load .png file via asset manager which is provided by android sdk.
AssetManager manager;
/........./
BitmapFactory.decodeStream(manager.open(path));
It returns BGR format data but opengl es 2.0 uses RGB format so , Blue seems red , red seems blue, how odd.
Is there any solution for ... |
I have an OpenGL game and and I want to implement a simple way for the user to enter data/text in an input box. What is the easiest method to do this?
|
I'm working on a 3D space simulation game in C++.
I've read that in many cases games use spatial indexing (hashing) that allows to quickly detect collisions, find out what entities to draw and so forth.
Is this really necessary for my game, considering that collisions between entities can happen, but are very rare? Is ... |
I simply draw something into a render target, and use it as an normal texture. It's always working greate to me with my nvidia video card. But today I found my program ran terribly slow (less than 5 fps) on a intel card.
After running an analyse I found glGenerateMipmapEXT is the trouble maker, it costs most of the cpu... |
Assume DirectX as the platform, if that is important. (Pretty sure it isn't)
Assuming I have a proper scale, rotation and translation matrix, in what order do I multiply them to result in a proper world matrix and why?
By "proper", I mean "I could throw them straight into DirectX and get the most commonly-used 3D frame... |
Hi I'm new to 3D games developing, I can a little c++, C#, VB.Net, 3D Max, ArchiCad ..etc. my problem is where to get started, which tools I need to start a own 3D game like GTA, I have tried some tools like : 'Unity3D' (crashes on start), '3D Rad' (uses only built-in items), 'Game Maker A7' (only 2D games can be made ... |
For example, on my Mac Mini with Bootcamp, Team Fortress 2 runs at about 20fps in OSX and 80fps in Windows. This seems to be a common case. Why is this?
|
I'm planning to get into the process of programming multiplayer turn-base games. I would like to start off by making some of the simplest (yet fun) multiplayer turn-base games out there. What are some that you can provide? For example:
Tic-Tac-Toe
Rock-Paper-Scissors
Checkers
Some not so easy games:
4 in a row
chess... |
I'm writing a D3D11 framework and I'm trying to clean it up a little, and I'm unsure how to handle errors and return codes in my classes/code.
What is the "best" and cleanest way to implement error handling ?
Should I just use the HRESULT and other D3D types as return values for errors and such, or should I create my o... |
I am writing an offline renderer using SlimDX and Direct3D 10 that will need to be run on machines without graphics cards (servers). On these machines, I'll be using the WARP software renderer.
Is it possible to tell if a hardware device is present without throwing an exception in SlimDX? Currently I'm having to do thi... |
I want to move a particle in a spiral at a constant speed. Note that that is not a constant angular speed. This is proving rather difficult, and I'll go through my method so far below.
The spiral in question is a classic Archimedean spiral with the polar equation r = ϑ, and the parametric equations x = t*cos(t), y = t*... |
One would describe Age of Empires 1's "perspective" as a 2D sprite game:
Below is a screenshot of Age of Empires II. How would you describe the "perspective"? Is it also a 2D sprite game?
"Perspective" may not even be the correct word. If it isn't, what should I use?
|
So I've finally got around to playing around with XNA and have been toying around with making a 2D game (I have a bunch of art assets from a friend who developed it on iOS)
A lot of things seem to be easy to do and come out of the box however I'm left stumped for a bunch of stuff since most of the literature (the books... |
I'm using C# and Visual Studios 2010 with XNA 4.0+lua, and my teacher has asked us to make a 2D RPG game similar to zelda(top down). I was aiming to use just one image for each map region, instead of using the tile approach, however i'm stuck on the aspect of movement limitation.
My teacher mentioned being able to mas... |
I'm working on raycaster in HLSL, unfortunately it have to be in DX9. But it cannot be compiled
I did similar raycaster in DX11 and i know that there is always problem with FXC compiler that it tries to unroll loops, this problem can be solved in DX11 by [loop] command before loop, which tells to compile to not unroll ... |
I'm creating a game in Flash AS3 in which the player needs to modify land in order to direct the water in the right direction.
However, water simulation is a new topic for me and I'm kinda stuck. It doesn't have to be like realistic water, with ripples and stuff, but it has to flow, and if there's enough water, it nee... |
I am B.Tech. student and have done some CS courses and have some knowledge about programming languages. I know C++ (I've made some small desktop GUI programs with Qt and in Visual Studio), Java (also have done some GUI in Swing) and Python.
Now I want to learn to make 2D and 3D games which can be played on the desktop ... |
I'm working on a physics driven game using a java port of Bullet (JBullet).
In our game we have a ball that can have collisions with the other objects, including the objects that define the boundaries of the playing area.
Since we consider collisions between the ball and other objects as a very important aspect of th... |
I'm designing a game that depends heavily on audio; I will have some 300+ speech files (most of them just a word or two long). This can very quickly escalate the size of my final game.
What's the optimal way to encode/compress speech files to keep the size minimal without getting audio artifacts?
Please address both pe... |
I'm trying to understand the mathematical theory behind UVW mapping. Can anyone explain me how UVW mapping works? Or at least provide me a pointer?
|
I use X-Plane for my question but it also concerns probably every other flight-simulator or simulation game in general. When developing a plugin what bothers me most is the startup-time of the application to test my plugin functionality so I was wondering how I can improve the startup speed of the simulator.
First I re... |
Let's consider a game where every player is building his own medieval town. To make this question simple, let's assume that, on this persistent world, some people will play an hour every day (heavy players), and others will spend an hour per week (light players).
To keep the game fair, a gamer with a lot of free time s... |
I know the basics of OpenGL and I'm starting to love computer graphics more and more. I have a computer science background and have been programming for 5 years. I've been reading the orange book and kind of want to figure out a project that can push me to the next level. I don't want it to be over overwhelmingly hard,... |
I basically want to create a mod for Minecraft that does the following:
if(a sand block is next to lava block) {
change the sand block to a glass block
}
Is it possible to create a mod like this without editing multiple Java classes?
|
I see a lot of tutorials explaining how to do 2D Sprite Animation with sprite sheets, based on the user's input (i.e. Move Left, Move Right ) etc.. etc..
I have already incorporated an AnimationManager in my game to handle these types of animations.
What I would like to do however is to play animations that have a set ... |
I'm thinking about building a multiplayer game with combat between players and monsters. Actors need to have a maximum actions per minute, otherwise users could cheat by holding down the attack key. Plus, I'd like to vary the maximum APM depending on the player class and monster.
How should I handle rate limiting comba... |
I am working on a client-server architecture game, its a 2D top view adventure.
My main focus for the map system right now is to have editable terrain, that will actually change in realtime to other players!
So, i've divided the map into equally sized chunks, that coupled together form the whole map.
As the client cam... |
I'll try to explain this as best as I can.
I'm trying to build a game where there exists a "Surfer" who is surfing down a rail.
I have a sprite sheet for the surfer however I have been running into animating the surfer for the following reasons:
The source rectangles for each animation are sometimes different
The feet... |
From my understanding, display memory resides on the GPU and is what's currently being displayed.
Offscreen memory resides on the GPU and is used for things that won't be displayed.
The framebuffer is graphics memory that is the result of OpenGL rendering.
So, how do these 3 correlate to one another? It seems that ... |
well...
I'm building the animation system of my game engine (the skeletal and skinned animation stuff), and I came to a point where I added so much functionality in the frame and node structures that it seems to be excessive for some applications, and it ends up adding too much complexity when working with simpler obj... |
I am using Ogre3D, and have been using it for a while. Also lately, I have been using the Opengl Rendering system that is included in Ogre, only because Directx will not compile correctly(Will post errors on request through comment).
But as of now the main problem is when i render my model(it is a plane with simple, un... |
I am developing a golf game using the GameSalad framework for iPhone. I have one attribute named speed of type integer with value 5000. I also have one boolean attribute named speedControl which is initially false.
When the ball is pressed and its sppedControl is true, I accelerate it with game.speed i.e. 5000.
Now I w... |
I'm looking for some animated textures, especially water textures that show movement.
After a bit of searching, I could only find this list. Although those textures are certainly not bad, there are only 4 to choose from. I was wondering if there is another website with free animated textures.
For static textures, I can... |
I'm building my first platformer using cocos2d and a tilemap. I'm having trouble coming up with a decent way of determining if the character is colliding with an object. More specifically, in which direction is the character colliding with an object.
Following the tutorial here, I have made a separate "meta" layer of ... |
In the game I am developing, I have to calculate if my vehicle (1) which in the example is travelling north with a speed V, can reach its target (2). The example depict the problem from atop:
There are actually two possible scenarios: V is constant (resulting in trajectory 4, an arc of a circle) or the vehicle has the... |
I'm already pretty adept at AS3 and all, and I have plenty of ideas for Flash games that I want to start making. However, I was wondering, when I've made my first one, how should I publish it, and how can I make it popular? I will upload it on my own website, but should I upload it to a more well-known site? And if so,... |
How do you usually solve collisions between entities and the ground? Sending collision events hardly seems appropriate since almost everything touches the ground at almost all points in time. Calling collision handling functions doesn't sound any better.
How is this normally achieved? Is handling of slopes significantl... |
I'm working on a 2D platformer in XNA. One of things I'd like to be a main design characteristic is procedural content generation. The first step of that is to procedurally generate the terrain. So, I've done loads of research on how to generate Perlin noise, smooth it out, play with parameters and all that jazz. I've ... |
Are there any good resources out there for game development in GNU step? I looked at some of the source code for ooLite, but that didn't really have much in Objective-C.
What is there these days?
|
I been working in a project with a team for a Software Engineering class and we think that using the parallax scrolling will help our game to look really nice but we are not really sure if our idea for implementation it's the correct one, so I hope that someon will give us some guidance about our plan.
First, we have t... |
I'm trying to implement a collision system in a 2D game I'm making. The separating axis theorem (as described by metanet's collision tutorial) seems like an efficient and robust way of handling collision detection, but I don't quite like the collision response method they use. By blindly displacing along the axis of le... |
So I'm modding a 3D game, my goal is to place a label on the screen pointing to the unit's direction. I'm getting the horizontal angle by projecting these vectors in a plane, like this:
private double getXAxisAngle(EntityPlayer player,EntityPlayer player2){
double meYaw = player2.rotationYaw;
double meX = play... |
For a school assignment I am planning to make a game similar to Jubeat Plus on the iPad.
Right now, I have a counter that gives me each 16th note of a beat, I am reading out a Property List where I defined the time of each button when it should be pressed.
But I don't know how to add the animation. When a button should... |
I finally have all the working input/output of a game engine.
However, I'd like to be able to put an amount of about 2000 shots being simulated in a region, total. I have done other games where all the data was stored in a linear array and iterated every turn, and referenced by index number.
This method seems to be fas... |
I would like to create a simulator(basically for testing purposes) for a game(League of legends).
The basics of the game:
you have a hero which has some stats:
Health Point
Attack Damage
Attack Speed
Armor
Armor Penetration
Movement Speed
Hero can have 4 skills(you get one skillpoint at each level)
(They are activ... |
I'm trying to programmatically generate vertices and indices for a torus. I found this piece of code somewhere, and it looks like it works, but I'm not certain it is correct.
With my little knowledge of trigonometry, I figured out how the vertex generation part works, but I'm stuck at the index buffer part (though I kn... |
All FPS's I know of return unused ammo in a removed magazine back to the users overall ammo count.
For example, I have 3 magazines with 30 rounds in each, I fire off 25 rounds and do a magazine change. I do this another 2 times so i technically have 3 magazines with 5 rounds in each, but when i reload I have a magazin... |
Using UVAtlas (Direct3D 9) Packed charts are separated by a
user-specified gutter width. The gutter width is the amount of
separation between charts, and allows for bilinear interpolation and
mip-mapping to avoid rendering artifacts at chart boundaries. D3DX
provides an interface for automatically filling in t... |
I have the yaw and pitch of my unit at my disposal, I know if I use polar to cartesian conversion I'll get the X and Y of each one of those two, but I need them combined to give me the x,y and z of the direction I'm facing.
|
I am fairly new to this world, so bear with me.
I have a grid of blocks in a top-down, 2d game written using Slick. The best way to think of it is the Pokemon world.
Right now, I am rendering all the blocks on a specific map, whether they are on the screen at the time or not.
Is there a better way to do this? My though... |
I recently had an animated logo done in Flash for Deen Games. I need to display in all my Silverlight games. The problem is, the logo is about ~8 seconds long (205 frames); if I export all the images as even JPEGs, the result is almost 3.5MB of content (more than the game itself).
I tried exporting as various formats (... |
I can only find a user's manual for Cg 1.4 from Sept 2005, and the Cg Tutorial from earlier than that. Cg is now on version 3 and I'm wondering about all the new profiles and tech that must be in it... Anyone got some links?
|
I want to create a game with similar effects to that of "Geometry Wars"... for those who have never played the game, basically, massive amounts of 'bending' and 'warping' effects are done on the background during explosions and pulses.
Here is a picture:
The grid is normally a bunch of squares (perfect squares) in a p... |
A new feature in 3ds max 2012 is Substance procedural textures.
Are there any good online libraries or resources for substance maps?
|
I'm building a platformer in cocos2d, my first game project. I'm working on movement and collision detection. I'm using a tilemap with a "meta" layer of invisible blocks that are designated collidable.
Everything seems to work pretty well except for one minor detail: when the character jumps from above into a platform,... |
Given a rectangle, and a point with a vector direction towards the rectangle.
How can I find the closest point on the outside of that rectangle to the point in question?
|
How would you path plan a volume for a game?
For example a 1 km cube with tunnels and caverns. Also the terrain is destructible.
You have walking and flying modes.
I would separate it into phases. Create a volume of the open space. Find a path that takes into account dynamic destruction.
Performance is a huge concern a... |
I was wondering what is the best way to manage a 3D track for a game with the same mechanic as Wipeout on a mobile device. Build a track out of multiple segments and load new segments as the player advances or build just one single mesh, maybe with multiple level of details ?
I'm very unfamiliar with this kind of prob... |
Does anyone know how they do this? They're not truly volumetric - you can't fly through them - it's still a texture.
http://vimeo.com/16534222
It looks like it's a perlin based solution, but I really can't work out how they get the fantastic lighting! How can I achieve this effect?
To be clear, I'm not talking about th... |
What is the best engine/way to go with when implementing a 2D billiards game? I am thinking about Emini Physics Engine, which is free for use and stuff, but maybe you can give me some pitfalls about this engine and recommend some other or encourage me into using this?
|
What are the possible downsides to using (client side) JavaScript when creating a multiplayer game?
Game description: It's an MMORPG/RTS. That means players actively contribute to structures in the world and create much of the content themselves.
|
Im working on a multiplatform (Pc,Mac,Linux) game that uses shaders quite extensively. Since we do not have any funding, it is pretty hard to test our game on all possible hardware configurations.
While our engine seems to run fine on different platforms, its usually the slight differences in GLSL compiling that gives ... |
I'm trying to render a rotating cube on Opengl ES 2.0, using some math classes I wrote (based on a lot of online and offline info) for quaternions, matrixes and the like. As far as I know all the math classes are right, but I'm still having some issues rotating objects.
The scene is a simple cube, with no translation o... |
Should I keep a public development blog for a game I'm creating?
What are the benefits and issues of this activity?
|
i'm developing an editor for a game...
and tonight i have been thinking about implement a visual ai designer...
this is how i think it should be:
What kind of visual components are used in theses tools? (Timers, Counters, Conditionals,...)
About implementation, i'm using C# and xna, how can i save/load this graphs?
... |
I'm getting my hands dirty in OpenGL and something is bothering me a bit.
It's my understanding from reading about the subject that a call to gluLookAt basically multiplies a matrix on the stack that moves the world in a way such as to "emulate" a camera. After my reading, I came under the impression that calling:
glT... |
I'm implementing a messaging system and I'm wondering about how I should handle events. Should I post them and send them to the appropriate listeners as soon as I receive them, or should I queue them and only dispatch when I am prompted to (most likely by the main game loop)?
Edit: More info
My game is a 2D platformer... |
I am a novice in android. It's my first game, so I am trying to make a frogger clone.
I am getting a problem in collision detection. In logcat, even though the frog is not moving and not colliding anywhere, I still get a "collision detected" message. Also, if the frog collides, it is not responding.
Please help me find... |
I have a DirectX scene. I want zoom in using mouse wheel to the mouse location. I am able to zoom the view to center of screen but I need to zoom to mouse location. Please suggest how it can be done. Thanks
|
The answers to this cross-platform related question are useful, however I want my (C++) game to run on Windows and Linux (and be packaged for Ubuntu) only. I'm not interested in platforms like mobile or consoles.
Are there any specific tips or suggestions for this case?
Also, if I get the game to work on linux, is it d... |
Until one of my games "makes it" big, or I get flooded with gold ingots, I will have to handle most or all of my game art myself. The crux of my question is: how can I learn enough art to get beyond "programmer art" and into something I would actually be proud of?
The focus of my question is 2D, not 3D.
I already have ... |
i`m trying to find a plugin or way to add 3D thread stiching to a mesh.
It would be perfect if you could creat thread stiches along edges in "editpoly" mode.
I know that you can somehow do this in Z-Brush with customized alpha brushes but in my opinion its a bit complicated. I could also imagine alining a editable spli... |
I have a line that goes to x (x1) of 300, and then I rotate the line by -10 degrees. How can I get the new x (x0) of the rotated line?
Here's a picture to show what I mean:
Are there any books that would help me learn this stuff?
|
I’m still new to java and android programming and I am having so much trouble Removing an object when collision happens.
I looked around the web and found that I should never handle removing BOX2D bodies during collision detection (a contact listener) and I should add my objects to an arraylist and set a variable in th... |
I'm very confused about the math behind the model/affine transformation expressed in homogeneous coordinates.
Reading this article, I understood that a generic vector is transformed by multiplying it by the model matrix (M), while a normal must be multiplied by the inverse-transpose of the model matrix (M^-T) in order... |
I've been keeping a blog for my current Android game and as I get closer to an actual playable version of the game, screenshots just aren’t enough to show new progress anymore. What I need is video. The problem is, my game won’t run on the current emulator (uses OpenGL ES 2.0), and my computer couldn’t run the emulator... |
I was reading an article on Gamasutra called A Rational Approach to Racing Game Track Design, and I found the following:
A commonly acknowledged rule for third person games is
that the environment should be scaled up by a factor of
around 33 percent (on page 2)
I am just curious: has anyone else heard of such a r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.