instruction stringlengths 33 29.4k |
|---|
Do you have any reliable 3d polygonal face normal calculation code?
Any language will do, I'll port it to make it work. Even if you find some code in a 3d game engine and post it here I'll be more than grateful.
Edit:
I'm using this but it fails when faces are 90 degrees upright or similar.
// the normal point
... |
I'm working on a simple block-based puzzle game.
The game play consists pretty much of moving blocks around in the game area, so it's a trivial physics simulation. My implementation, however, is in my opinion far from ideal and I'm wondering if you can give me any pointers on how to do it better.
I've split the code up... |
Scene Graph seems to be the most effective way of representing the game world.
The game world usually tends to be as large as the memory and device can handle. In contrast, the screen of the device captures only a fraction of the Game World/Scene Graph.
Ideally, I wish to process(update and render) only the visible ga... |
I'm writing my own small-time game from scratch, and now I'm looking to start creating models. I've been wondering- what is the best model format to use? Given that I will be writing the model loading code myself and using whatever program generates them. Ideally, I'd look for a format that has fairly wide support betw... |
I'm creating a simple tank game. No matter what I do, the turret keeps facing the target with it's side. I just can't figure out how to turn it 90 degrees in Y once so it faces it correctly. I've checked the pivot in Maya and it doesn't matter how I change it.
This is the code I use to calculate how to face the target:... |
In an average game, there are hundreds or maybe thousands of objects in the scene.
Is it completely correct to allocate memory for all objects, including gun shots (bullets), dynamically via default new()?
Should I create any memory pool for dynamic allocation, or is there no need to bother with this? What if the targ... |
I'm learning iPhone development and a friend will be doing the graphics/animation. I'll be using cocos2d most likely (if that matters).
My friend wants to get started on the graphics, and I don't know what image resolution or dpi or formats are recommended.
This probably depends on if something is a background vs. a sm... |
Scene graph contains game nodes representing game objects. At a first glance, it might seem practical to use Scene Graph as physical container for in game objects, instead of std::vector<> for example.
My question is, is it practical to use Scene Graph to contain the game objects, or should it be used only to define sc... |
How were 2d and 3d art assets typically created in the early-to-mid 1990's (16-bit and 32-bit eras?)
|
I'm making a simple top-down tank game on the ipad where the user controls the movement of the tank with the left "joystick" and the rotation of the turret with the right one. I've spent several hours just trying to get it to work decently but now I turn to the pros :)
I have two referencial objects, one for the moveme... |
As a learning exercise I've written a deferred rendering engine. Now I'd like to add a scene graph to this engine but I'm a bit puzzled how to do this.
On a normal (forward rendering engine) I would just add all items (All implementing IDrawable and IUpdateAble) to my scene graph, than travel the scene-graph breadth fi... |
I need to know an efficient way to cull the scene graph objects, to render exclusively the ones in the view, and as fast as possible.
I am thinking of doing it the following way, having in each object a local boundingbox which holds the object bounds, and a global boundingbox which holds the bounds of the object and al... |
Maya's preferred format for saving off a UV Snapshot is its own .IFF format, so I was hoping to find a plugin allowing Gimp 2 (Windows) to read it. I've found plenty of plugins for different linux distros, but none are win-friendly (that I can discern - admittedly I'm no whiz with Gimp). Does anyone know of one?
Alter... |
Are you aware of a complete (or almost complete) cross platform math library for use in OpenGL ES 2.0 games?
The library should contain:
Matrix2x2, Matrix 3x3, Matrix4x4 classes
Quaternions
Vector2, Vector3, Vector4 Classes
Euler Angle Class
Operations amongh the above mentioned classes, conversions, etc..
Standardly... |
I've started using WebGL and am pleased with how easy it is to leverage my OpenGL (and by extension OpenGL ES) experience. However, my understanding is as follows:
OpenGL ES is a subset of OpenGL
WebGL is a subset of OpenGL ES
Is this correct for both cases? If so, are there resources for detailing which features are... |
Let's imagine game like Heroes of Might and Magic, or Master of Orion, or your turn-based game of choice. What is the game logic behind making next turn? Are there any materials or books to read about the topic? To be specific, let's imagine game loop:
void eventsHandler(); //something that responds to input
void gameL... |
Flash has come a long way in the last decade, and it's a well-kept secret getting a Flash game to connect to a multi-client server for chat and/or basic avatar movement in real time.
Why has the industry as a whole not made this a common-knowledge type of thing yet? We keep pushing to the web but I am finding it incred... |
I'm on a team of students working on a third-person adventure game that takes place inside a pinball machine (like, small scale, on the surface, avoiding pinballs, etc).
One of my responsibilities on the project is to find games that are similar to this concept in appearance and/or gameplay for reference.
So, does anyo... |
I have a grid of letters. The player clicks on a letter and drags out a selection. Using Bresenham's Algorithm I can create a line of highlighted letters representing the player's selection.
However, what I really want is to have the line segment be constrained to 45 degree angles (as is common for crossword-style gam... |
I would like to know the flow for making modern 2D game artwork.
How are the assets made nowadays? Bitmap? Vector-based? Hand-drawn and painted? Drawn digitally? Modeled in 3D and exported to bitmaps?
I would like some information on programs as well, for fine looking art.
Why does Flash's vector art style look good in... |
I am working on simple game using WPF/C#, and I am wondering what is the best practice to resize the game (views, assets…) when user re-sizes the game window? Is it good practice to use the ViewBox control for this job?
|
I'm looking for a name for my class that manipulates 4x4 matrices that handle position, rotation, and scale. Is there a common word that encompasses all three?
(I'm splitting the matrix math into its own file/class.)
|
I want to know what is the norm of loading rendering code.
Take a button. When the application is loaded, a texture is loaded which has the image of the button on it. When the button is tapped, it then adds a loader into a queue, which is loaded on render thread. It then loads up an array buffer with vertexes and tex c... |
Would you help me to clarify, please, what what exactly should be contained within a game scene graph? See the following list, please:
Game Actors? (obviously yes, all the objects changing state should be the major prart of the Scene Graph)
Simple static game ojbects? (I mean ojects places in the background that do no... |
I'm porting an iPhone game to the iPad. When I move textures "quickly" (5.0 pixels every update at a rate of 60 Hz) I start to see little "artifacts" or remnants of where the texture used to be. I'm not sure if I know the correct terminology for this... imagine a texture at some location on the screen... then next to... |
What does a rim shader do and what is it used for? In what cases would it make sense to utilize a rim shader?
|
I want a straight 3d Python engine that's easily obtainable for linux and easy to use. Soya3D failed for me because of the lack of documentation. I should be able to load common 3D models without an issue.
|
I would like to clip a triangle if its bounds lie partially out of a cube. I guess I would need some kind of Triangle Plane intersection code - I'm not well versed with math but I do have the points of the triangle in 3d space (P1, P2, P3).
How do I get the 2 points of intersection of the triangle with one of the plane... |
So I've reached the point in my exploration of gaming where I'd like to implement the concept of time into my little demo I've been building.
What are some common methodologies for creating the concept of time passing within a game?
My thoughts so far:
My game loop tends to spend a fair amount of time sitting around wa... |
Fragile Allegiance was developed by Gremlin Interactive, which was later acquired by Infogrames (Atari). I couldn't find any details of the acquisition though.
The only interesting thing I have found online is that the owner of the registered trademark Fragile Allegiance is Interplay, who published Fragile Allegiance. ... |
I'm working on a flash game that saves your progress locally. These saves can easily be hacked. My solution is to add an md5 hash of all the variables saved into the save file itself. When loading the save, the game would check if the hash is valid.
Is this a good solution? Are there better solutions?
|
I am relevantly new to Graphics Programming. I have written some basic games in xna in the past but I am trying to understand what the point of all these surface formats is. For instance Xna and DDS support the standard RGBA (8bpp). Why does one need 32 bpp or even stranger combinations of bits per channel like Rg32. I... |
I would like to start learning 3d game development and currently only develop 2d games.
A few basic questions I am interested in are:
What is used to create the 3d environments? Are they all done in e.g. Maya, Lightwave, 3d modeling software?
What is the output format for these models and how are they manipulated in iO... |
What is the recommended reading list for a very experienced s/w developer, with no MMORPG experience, who wants to design an MMORPG?
|
I've been looking for a way to implement wall-jump in my xna game, but I can't find any information about it, can someone could someone please help me out ?
|
I had previously asked this for 3D but now I changed my strategy and would like to do the intersection in 2D.
The Rectangle is axis aligned and will always be in a fixed position, and has a constant shape and size, basically I want to clip the red areas of the triangles that extend outside the bounds of the rectangle. ... |
I'm making an RPG game system and I'm having a hard time deciding on doing detailed or abstract character statistics. These statistics define the character's natural - not learned - abilities. For example:
Mass Effect: 0 (None that I can see)
X20 (Xtreme Dungeon Mastery): 1 "STAT"
Diablo: 4 "Strength, Magic, Dexteri... |
I am displaying a cube using a vertex buffer object (gl.ELEMENT_ARRAY_BUFFER). This allows me to specify vertex indicies, rather than having duplicate vertexes. In the case of displaying a simple cube, this means I only need to have eight vertices total. Opposed to needing three vertices per triangle, times two triangl... |
I'm beginner in game development, in Java and here on this site too and I have a game design question. Please comment my idea:
I have a main loop which call update and draw method. I want to use an ArrayList which stores graphical objects, they have coordinate and image or text to draw and my game objects extends this ... |
I am currently prototyping an idea for an iPhone game. I'd like to create an avatar editor inside the game so that the player can create a 3d avatar face and modify certain features (using slider controls), such as nose shape, eye color, mouth size, etc. This has been done in several games, but what I'm looking to do w... |
So I have always wondered how one makes a nice (not so squarish) 2d tile map, is it possible? all games now days I think use textured polygons...but my game engine (and engine) doesn't support that to my knowledge. But it does support nice TMX files generated by mapeditor.org's Tiled Map Editor. Though in my game I ... |
(Previously asked at https://stackoverflow.com/questions/4922478/sfml-title-bar-with-weird-characters-when-using-utf-8)
I've just started using SFML and one of the first problems I've come across is some weird characters on the the titlebar whenever I try to use accents or any other extended char.
For instance, I've go... |
I'm working on a very simple OpenGL ES 2.0 game, and I'm not sure what tool to use to create the vertex data I need. My first thought was adobe illustrator, but I can't seem to find any info on how to convert an .ai file to vertices. I'm only going to be using very simple 2D shapes so I wonder if I need to use a 3d mod... |
I am using an ArrayList to handle objects and at each interval of 120 frames, I am adding a new object of the same type at a random location along the z-axis of 60. The problem is, it doesn't add just 1. It depends on how many are in the list. If I kill the Fox before the time interval when one is supposed to spawn com... |
I'm trying to access some variables in my shader, but I think I'm doing this wrong. Say I have a constant buffer that looks like this:
cbuffer perFrame
{
float foo;
float bar;
};
I got an ID3D10EffectConstantBuffer reference to it, and I can get a specific index by calling GetMemberByIndex, but how can I figur... |
I have an app that plays back a video and draws the video onto the screen at a moving position. When I run the app, the video moves around the screen as it plays. Here is my Draw method...
protected override void Draw(GameTime gameTime)
{
Texture2D videoTexture = null;
if (player.State != Media... |
I am starting my computer science degree at a local community college in programming using C++. However, I will be transferring to a 4-year university. Does anyone have any insight on university programs?
I know Cal State Fullerton has a degree with a minor in Game Development. however, is that as important as getting ... |
Possible Duplicate:
learning Direct3D 9, 10 or 11 ?
I have just started game dev and was wondering should I use DX11 or version 10?
I know AMD/nVidia now have DX11 cards but there are not many games using them now.
So should I wait untill they are mainstearm?
|
I have an RPG-style Item class and I stored the type of the item in enum (itemType.sword). I want to store subtype too (itemSubtype.long), but I want to express the relation between two data type (sword can be long, short etc. but shield can't be long or short, only round, tower etc). I know this is wrong source code b... |
I want to write some simple flash games (as a hobby). I have a lot of programming experience, but no experience with Flash/ActionScript.
My question is:
As a beginner, is it a good idea to start with a framework like Flixel, FlashPunk or PushButton or would it be better to write my first games from scratch?
Also, if yo... |
These days, games often have multiplayer portals with chat channels & match making system for the multiplayer aspects of the game.
An example would be battle.net, magic the gathering online's chat rooms, halo etc.
Now, for the rest of us indie gamers that probably won't be able to spend much development effort on creat... |
Ok, I've been writing C# for a while, but I'm new to ActionScript, so this is a question about best practices.
We're developing a simple match game, where the user selects tiles and tries to match various numbers - sort of like memory - and when the match is made we want a series of animations to take place, and when t... |
hi
i'm a complete newbie in computergraphics so sorry if it's a stupid answer.
i'm trying to make a simple 3d engine from scratch, more for educational purpose than for real use.
for now i compute only face normals. in this way:
i have a Surface object with inside a Triangle's list. i compute normals inside Triangle cl... |
I'm looking to use SuperTuxKart as a basis for a PhD research project. A key requirement for the game is to provide vibration feedback through the controller (obviously dependant on the controller itself). I don't believe that the game currently includes this feature and I'm trying to get a feel for how big a challeng... |
I have programmed an OpenGL game which just contains one F1 car and a track. It is very simple and only uses around of 10'000 - 20'000 triangles. It should run on any PC but it won't, it needs a really good graphics-card to run at a decent framerate. Can you write some methods or links to sites which would help me make... |
I'm trying to follow this tutorial http://www.tonypa.pri.ee/tbw/tut05.html to implement real-time collisions in a tile-based world.
I find the center coordinates of my entities thanks to these properties:
public float CenterX
{
get { return X + Width / 2f; }
set { X = value - Width / 2f; }
}
public float Center... |
I am a computer science student and I am developing with C/C++ and Python and I want to begin learning graphics tools to start developing with game engines, especially the Blender Game Engine. So what is your recommendation for me to learn and to read? And recommend me a road map for it.
|
Hey guys, I'm currently using JME3 to learn 3d game development in java, and I have run into a situation. I would like to add fog effects to my games, but I don't even know where to start to implement this. I know how to set the camera's far frustum to limit the render distance, but that just simply makes a sharp cutof... |
When specifying the material (ambient/diffuse/specular) for use in lighting calculations, what level of detail is the material specified at? Per vertex, mesh, bone?
|
I am thinking about making a small RPG. I know some basics of openGL, but I do not want create my own engine.
My criteria are:
Ease of use
Can do rpg
game
3D
Which game engine is ideal for a 3D RPG?
|
I am aware that there are opensource drivers for interfacing Kinect with the PC. My question is - the drivers at OpenKinect seems to provide only the images and depth data (from the reading of their wiki and API). It seems that you need to provide your own imaging solution.
My question is - is there any all-in-one pack... |
I've got a pathfinding boss enemy that seeks the player using the A* algorithm. It's a pretty complex environment, and I'm doing it in Flash, so the search can get a bit slow when it's searching over long distances. If the player was stationary, I could just search once, but at the moment I'm searching every frame. ... |
In my rhythm game, I have a note object which can be of a different color depending on the note chart. I could use a sprite sheet with all the different color variations I use, but I would prefer to parametrize this.
(Each note sprite is made of different shades of a hue. For example a red note has only red, light red ... |
I am interested in plot writing for games, and wondered first of all:
Is this available as an entry-level position, or is it accessed through other avenues (even external to games development)
And secondly, what are the daily tasks of a games writer, both at the entry level and at a higher level?
Thank you.
|
I wonder what are the best ways to organize different screens in a game?
I am thinking of it like this:
Inheriting a base State class, and overriding update and render methods, to handle the current screen.
Then, under certain events a StateManager is able to activate another Screen State, and the game screen changes a... |
I need some help with the SpriteFont. I want a different font for my game, other than Kootenay. So, I edit the SpriteFont xml, i.e:
<FontName>Kootenay</FontName>
or
<FontName>Arial</FontName>
No problem with Windows fonts, or other XNA redistributable fonts pack. However, I want to use other fonts, that I downloaded ... |
I was wondering about the term 'photorealistic' in regards to rendering and was wondering how this is used.
Is it used to describe a shader (or set of) that have certain quantifiable features? Or any rendering thats not meant to be abstract, like the cartoon effect seen in Borderlands? Or is it just a subjective term m... |
Hello all Where can I find architectures and examples of building massive multiplayer game server Does the does the concept of building it on top of libenevt is right ? or I need to think more on thread per connection ? im targeting to web players playing from flash / html5 clients . Thanks
|
I'm working on a perfect information game in my spare time. I've implemented a naive minmax algorithm for the computer player. I've further optimized it using alpha-beta pruning.
What I'm looking for is next logical steps to improve the speed of the search (currently the computer player searches 5 nodes deep with accep... |
I'm working on a J2ME game and I want to have walking animations.
Each direction of walking has a separate sprite sheet (i.e. one for walking up, one for walking right etc), I also have a static idle image for each direction held together in a single file. I've tried to hold an array of sprites in my player class and ... |
I am currently programming an iPhone game and I would like to create an online multiplayer mode. In the future, this app will be port to Android devices, so I was wondering how to create the game-server?
First at all, which language should I choose? How to make a server able to communicate both with programs written in... |
Possible Duplicate:
What are effective marketing strategies for iPhone games?
I'm interested in promoting my latest iOS game. What have you done that really helped spread the word? Any smaller game review sites that were helpful? How about publishing?
|
I'm looking to add circle-polygon collisions to my Separating Axis Theorem collision detection.
The metanet software tutorial (http://www.metanetsoftware.com/technique/tutorialA.html#section3) on SAT, which I discovered in the answer to a question I found when searching, talks about voronoi regions.
I'm having trouble ... |
I just recently saw stackoverflow had a game dev sister site so here I am, wondering if you experienced fellows know where one can search/look for game developers for an indie game startup? In other words:
I have a game idea which I've written down with as much detail as possible (so anyone else can understand how it w... |
I have big creativity burnout :/ Do you have any ideas how can I fight with it ??
|
I'm intersecting a line in 2D and I calculate the X,Y coordinates of the intersection point. What I need is the Z of the intersection point given the X,Y,Z of the line points, and the X,Y of the intersection. From what I understand of equations it should be a one-liner but I don't know enough math to get there.
|
I was wondering if somebody could tell me how the game and the game engine fit into game development. What I specifically mean is, the game engine does not actually contain a game. Do game developers build an engine, then create a new class that inherits from the engine, which becomes the game?
For example,
class Shoot... |
I've recently started learning how to program in 3D with XNA and I've been trying to implement a Terrain3D class(a very simple height map). I've managed to draw a simple terrain, but I'm getting a weird bug where I can see through the terrain. This bug happens when I'm looking through a hill from the map. Here is a pic... |
Do you remember an arcade game, that allowed two people to versus or play each other? It was a Galaga/Gradius type game.
Me and a couple of other people I know want to make a game like this. We want to get some other opinions on what programming languages to use. (C or C++ isn't an option).
We plan to use an engine to ... |
I'm currently writing a game in XNA for fun which uses C#. I have got my sprites loaded and when the character moves right he looks like he is running right and when he moves left he looks like he is running left.
I been looking everywhere for a good coding example for how to create a jumping ability. I have read all... |
Whenever I try and write a game in any object-oriented language, the first problem I always face (after thinking about what kind of game to write) is how to design the engine. Even if I'm using existing libraries or frameworks like SDL, I still find myself having to make certain decisions for every game, like whether t... |
I am currently reading a book named "3D Graphics with XNA Game Studio 4.0" by Sean James and have some questions to ask :
If i create a effect parameter named lets say SpecularPower and have in my effect a variable named SpecularPower , if i do something like
effect.Parameters["SpecularPower"].SetValue(3)
That wil c... |
Obviously, trying to apply the min-max algorithm on the complete tree of moves works only for small games (I apologize to all chess enthusiasts, by "small" I do not mean "simplistic").
For typical turn-based strategy games where the board is often wider than 100 tiles and all pieces in a side can move simultaneously, t... |
The input system of Quake3 is handled using a Keybinding relay, whereby each keypress is matched against a 'binding' which is then passed to the CLI along with a time stamp of when the keypress (or release) occurred.
I just wanted to get an idea from developers what they considered to be the key benefits of designing y... |
I wonder for my own use and curiosity, how popular is Java in indie game development ,
in 2d and 3d? Are there any good open/closed source games done in java?
|
Is there possiblity to write my own plugin/extension to Unity editor ? I want to write plugin to generate map for me from xml file.
|
I use XNA for my projects and on those forums I sometimes see references to the fact that swapping an effect for a mesh has a relatively high cost, which surprises me as I thought to swap an effect was simply a case of copying the replacement shader program to the GPU along with appropriate parameters.
I wondered if so... |
I'm currently working in the Multimedia industry and although I'm better at design then development. I have knowledge of HTML, CSS, very basic jQuery, Actionscript.
What programming Languages would you need to know?
What else would you need to know to develop an application?
I am assuming you would need to know xcode ... |
I have a spaceship and I've created a "boost" functionality that speeds up my spaceship, what effects should I implement to create the impression of high speed?
I was thinking of making everything except my spaceship blurry but I think there would be something missing. Any ideas?
Btw. I am working in XNA C# but if you... |
I've never really done much game programming before, pretty straightforward question.
Imagine I'm building a Tetris game, with the main loop looking something like this.
for every frame
handle input
if it's time to make the current block move down a row
if we can move the block
move the bloc... |
In the hopes of finding a fellow unity3d developer also aiming for the Kongregate contest..
I've implemented the Kongregate API and can see that the game receives a call with my username and presents it ingame. I'm using Application.ExternalCall("kongregate.stats.submit",type,amount);
where type is a string "Best Score... |
We have a big game project using Unity at school. There are 12 of us working on it. My teacher seems to be convinced it's an important tool to teach students, since it makes students look from the high level to the lower level.
I can understand his view, and I'm wondering: Is unity such an important engine in game deve... |
This question is a follow-up to Texture artifacts on iPad
How does one "clear the alpha of the render texture frameBufferObject"? I've searched around here, StackOverflow and various search engines but no luck. I've tried a few things... for example calling GlClear(GL_COLOR_BUFFER_BIT) at the beginning of my render l... |
I am a first year college student in India and want to make a small game as a this semester project.
I am quite good at C and am learning it rapidly but I wanted to ask if developing a game entirely in C (no C++ or C#) I'd love to use these but for college projects, we have strict requirements of using only C.
What I a... |
I want to use certain parts of the Game State Management Example in a game I'm making, but I'm not sure how to do this legally. It says in the license that I'm supposed to include a copy of the license with it. So if I make a Visual Studio Solution, I just add the license.txt to the solution? Also, if I use a class and... |
How should I create an alphabet with numbers in 3d in opengl-es? I'm trying to create them with the existing primitives, but it's not looking good. Do we have any alternate way to get these things done? If so, please let me know! Thanks in advance.
|
In my game you need to protect something from enemies. There can be many on the screen at once. But I don't know how to create the enemies randomly, and how I can save the data to each enemy? Can give good tips or good links to tutorials?
|
What is the most important thing to know about PR for indie developers?
I'm considering spending some time learning about PR in general, but it seems that the indie field is quite different than other fields in general.
What should most indie developers know about PR in general? Are PR-managers usually worth the money ... |
Is it possible to package HTML5 game for iPhone and Android as an application or does it have to be accessed through a browser?
|
I am currently developing a relatively simple 2D, topdown oriented adventure game for the iPhone and was wondering what would be the easiest way to create the maps for my game. I figured I would need some kind of visual editor that would give me immediate feedback and would allow me to place all objects in the world ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.