instruction stringlengths 33 29.4k |
|---|
you have N frames for an animation (an idle animation for example) of a 2D character. What is the best resolution to use for each frame? The problem is that if you save the N frames such that each of them has the size of the minimal bounding box enclosing the character, when using a call like:
// draw frame i at (0,0)
... |
I am developing an engine that uses both OpenGL and OpenGL ES 2.0. I am well seasoned in OpenGL but not ES (although I am aware it is a subset of OpenGL). I could not find a set of differences that I should be aware of so that I can write code to take those differences into account and allow the engine to robustly hand... |
I'm building a html5 canvas game and I need a way to get my sprite to face the mouse cursor. I have the X and Y co-ordinates for the sprite, and also the X and Y co-ordinates of the pointer. All I'm stuck with is the math involved to make the sprite face the pointer. It's all in a 2D world, so I can't imagine it'll be ... |
What types of things should a game have in order to make it machinima-friendly? I imagine that a spectator mode helps, but are there other important elements? Perhaps support for mods?
Are there any example of games that are known for being especially easy to make movies with?
|
UVW texture coordinates, as opposed to UV texture coordinates, do not get very adequate explanation on the web. Many people offer the simple exlanation, "UV is for 2-dimensional textures and UVW are for 3-dimensional textures." I don't buy this.
I have found a small handful of explanations that I find inadequate. This ... |
I'm working on a school project creating a tank team in the programming game Robocode. (It's a tank battle game with self-programmed bots, in Java).
I'm programming a scout bot that scans, finds enemies and reports them to the commander bot. I only have the distance and angle to the scanned enemy bot. How can I find it... |
I am wondering, how I should store my mesh into memory after loading it from whatever file. I have Questions floating in my head:
Should a mesh could have sub meshes or does the 3d model just store a list of meshes all on the same level
Is there one material assigned to one mesh 1:1?
What do I have to consider, if I ... |
How is a walking animation of a given character designed? I can see two possible ways:
The first way is to draw each frame of the animation such that, if the frames are displayed at position (0,0), the character walk but does not really move (I mean: at frame 10, the character is still at the left, upper corner of the... |
I am currently using ModelMesh.Draw() to draw the each mesh of the model and thus the whole model. Note that my models are very heavy -- around 30MB of data, I think if there is any other way to draw the models which is more efficient then performance of my application will better.
|
I'm currently totally at a loss as to how this effect is done:
http://www.youtube.com/watch?v=zp8MHUNp7Cg
The glowing on the ship and the changing color. I want to do this effect in XNA 4.0 any hints and tips?
|
I have created a cube in opengl using SDL. Now I am trying to move the camera in X direction if user presses left or right arrow keys and Y direction if user presses up or down arrow keys. Right now the camera moves by a fixed amount in a particular direction if the key gets pressed once. It doesn't matter how long doe... |
I want AirUnit to return a value between 1 and 3. I want LandUnit to return a value between 4 and 6. I want WaterUnit to return a value between 7 and 9.
The Array is suposed to be inside this function:
public function getRandom():Unit
{
// Array
}
|
Is there a way to pass an arbitrary number of light locations (and colors) for the fragment shader, and loop over them in the shader?
If not, then how are multiple lights supposed to be simulated? For example with respect to diffuse directional lighting, you can't just pass a sum of the light weights for the shader.
|
I am trying to create a ID3D10RasterizerState with direct3D10, and then call
ID3D10Device::RSSetState()
with the proper information. However, whenever the window get rescaled, or when the app goes fullscreen, the rasterizerstate seems to reset to the default state. I have tried to set the state with WM_SIZE messages, b... |
I have a player sprite that has a x and y coordinate and also a radian. The radian determines which way the sprite faces in a top-down game interface. In this case, the radian points from the player sprite to the mouse cursor, so the player is always facing the mouse.
I'm calculating it like this:
this.radian = Math.at... |
I am using GLKit in order to show textures on my project. The code is like this:
-(void)setTextureImage:(UIImage *)image {
NSError *error;
texture = [GLKTextureLoader textureWithCGImage:image.CGImage options:nil error:&error];
if (error) {
NSLog(@"Error loading texture from image: %@",error);
}
}
effect.... |
First off this question might be a bit broad so I apologize if it is. I am really just looking for peoples experiences and personal knowledge on the subject. I am looking to create a game for both Android and iPhone platform. I know Unity is a great game engine and my question is how well does it work for creating one ... |
I have been creating a side-scrolling Actionscript 3.0 game. In this game I want the Player to be able to shoot blow darts as weapons. I had some trouble getting the darts to be created in the right place (in front of the player), but eventually got it working with some help from this page (please look at it for backgr... |
I have been self-teaching myself Java on the mac mostly because the language is cross-platform. Recently, I have been only able to develop 2D games using the Graphics2D class.
Now, I want to learn how to make 3D games in Java. I used to model and animate stuff in 3D, so my knowledge of 3-Dimensional stuff is okay.
I ... |
I'm a novice. I'm working in XNA studio with simple models.
How can I turn a 3D image into two images meant for the left and right eyes respectively?
Note: I'm not referring to "magic eye" - I'm wondering how you calculate the left and right images starting from the 3D scene info.
|
I'm getting strange streaks on my cube map when rendering to it. He is my code that is being called each frame:
void drawCubeMap(void)
{
int face;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
//glBindTexture(GL_TEXTURE_CUBE_MAP, cubeMapTexture);
//glClearColor(1.0f... |
I'm learning blender and am wondering what size(blender units) I should be making my characters and maps. should i consider 1 blender unit as 1 inch, foot, meter or does it not not matter?
|
I am building a game for which I want to simulate certain rigid body dynamics.Could someone suggest me some engines which work on Ubuntu.Also as I have dont have much time to implement it,so it would be helpful if it is a easy one to work with.
I have some across one namely ODE.Am looking for others which would help me... |
So I'm making this simple platformer where the Hero is 16x16 in size, but also, the tile size is 16x16. Which sounds fine right? But my game window/world is 800x416, which makes the Hero is really really tiny in comparison. This really surprised me, but given Ive never made a platformer before it is also a new discover... |
Possible Duplicate:
Pseudo-code examples of A*?
Hey guys Iam making a TD game and now I am stucked in implementing A star algo. I know there are many 3d party softwares but they are difficult to understand and modify. I want to make own for my game. I need a step wise programming tutorial for implementing A* OR if s... |
I already have something that calculates the bearing angle to get one object to face another. You give it the positions and it returns the angle to get one to face the other.
Now I need to figure out how tell if on object is facing toward another object within a specified field and I can't find any information about ho... |
I am creating an application for both Android and iPhone that will have a few mini games in it. I would like to create the non game section in native Android and iPhone. My question is, is it possible to have a native app that will incorporate the Unity mini game I am creating all inside one apk and ios project?
|
I have path areas set up in a game I'm making for canvas/html5 and have got it working to keep the player within these areas. I have a function isOut(boundary, x, y) that returns true if the point is outside the boundary. What I do is check only the new position x/y separately with the corresponding old position x/y. T... |
I am doing a study in modern games graphics, and as part of the study it would be really helpful to be able to replay a sequence in the game multiple times.
For example, recording a series of inputs to get the exact video sequences, but being able to replay them in different computers or different graphics configuratio... |
I am a noob in OpenGL ES 2.0 (for WebGL) and I'm trying to draw a simple model I've made with a 3D tool and exported to .fbx format. I've been able to draw some models that only have: A vertex buffer, a index buffer for the vertices, a normal buffer and a texture coordinate buffer, but this model now has a "UVIndex" an... |
I want to render reflection on a planar surface but the reflecting surface has a texture mapped onto it.Would the normal technique of using stencil buffer and then blending in the reflected image with the reflecting surface in this case?
If not then could some one suggest me how to render reflection on a surface that h... |
I am wondering if someone has an elegant way of calculating the following scenario.
I have an object of (n) number of squares, random shapes, but we will pretend they are all rectangles.
We are dealing with no gravity, so consider the object in space, from a top down perspective. I am applying a force to the object ... |
public function remove(u:Unit)
{
for (var i = 0; i < size; ++i)
}
The errors are:
1008: variable 'i' has no type declaration
1008: return value for function 'remove' has no type declaration
|
I'm writing a generic ShaderProgram class that compiles a set of Shader objects, passes args to the shader (like vertex position, vertex normal, tex coords etc), then links the shader components into a shader program, for use with glDrawArrays.
My vertex data already exists in a VertexBufferObject that uses the followi... |
I plan to make multiplayer realtime game for Android (2-8 players), and I consider, which solution for multiplayer organization is the best:
Make server on PC, and client on mobile, all communition go through server ( ClientA -> PC SERVER -> All Clients )
Use bluetooth, I don't used yet, and I don't know is it hard to... |
I'm pretty new in game development. Have a couple ideas wich could be cool. First that comes to mind is to develop a 2D game (kinda puzzles) for Windows Phone Mango. You may ask: "Why Windows Phone?". I answer - I've got solid experience in Silverlight and C#. For me, this is a major advantage compared to other platfor... |
Me and my friends are developing a game using Java for Windows operating system. We have nearly completed our game. As we feel that the game can make money, we wish to sell it. But in India we don't know any game publishing company.
We want to know the following if possible.
Will game publishers like BigFishGames.com ... |
Imagine a very simple shoot-em-up, something we all know:
You're the player (green). Your movement is restricted to the X axis. Our enemy (or enemies) is at the top of the screen, his movement is also restricted to the X axis.
The player fires bullets (yellow) at the enemy.
I'd like to implement an A.I. for the enemy ... |
In my medieval MMO game, players have their own character, that represents themselves inside game. Like a King. Players could have cities and armies, but King acts as main driving force.
Then it comes to player, going offline/vacation/disconnect. How to deal with "offline King", to keep some sort of reality in game, wi... |
I'm developing a 2D platformer with some uni friends. We've based it upon the XNA Platformer Starter Kit which uses .txt files to store the tile map. While this is simple it does not give us enough control and flexibility with level design. Some examples: for multiple layers of content multiple files are required, ea... |
I have a software that performs volume rendering through a raycasting approach. The actual raycasting shader writes the raycasted volume depth into a framebuffer object, through gl_FragDepth, that I bind before calling the shader.
The problem I have is that I would like to use this depth in another shader that I call l... |
I'm implementing a bubble-witch-like game (http://www.king.com/games/puzzle-games/bubble-witch/), and I was thinking on what's the better way to store the "bubbles" and to work with. I thought of using graphs, but that might be too complex for a trivial thing. Thought of a matrix, just like a tile map, but that might g... |
I would like to make a 2D game with one codebase that runs on iPhone, Android, and web (any flavour of web -- HTML5, Flash, Silverlight, etc.)
What are my options? I should be able to write my code once, and run it anywhere. I also absolutely need the ability to write unit tests (or write a unit-testing framework) -- I... |
How would I go about implementing fluid dynamics in a game, such as can be seen in this video?
|
Having read about anti-aliasing, I came to realise that I could render my scene 8× the original size of the screen, then shrink it to render it on my original screen to improve the effect that I have rendered on the screen.
Is this a good idea? How can I do this? Do I need a shader?
|
My game's map format uses a bunch of triangles to make up the platforms and terrain in 2d. Right now I can set up a 2d array of nodes for the A* (A star) algorithm that basically is a bunch of rectangles across the maps x and y that can be set to "wall" if the A* algorithm should try to go around it.
However I want a ... |
I started learning OpenGL. I got to a point I want to import some "real" objects. After "Googling" I decided I will go with OBJ file for start, since it is simple to understand, and there are plenty of tutorials on how to read them properly.
I have from university access to 3DS Max 2012. So I tried to create very simp... |
I tried to build a sample application using XNA, but I got an error saying that Pixel Shader 1.1 was required, so I got a used Radeon X300 GPU that supports Pixel Shader.
I tried to build it again, but I got another error saying that "Your current graphics card does not support the XNA HiDef profile" and would not buil... |
I'm making a tile engine for top-down 2D games. Basically the world is composed of a grid of tiles.
Now I want to put for instance NPCs that can move on the map.
What do you think is best:
each tile has a pointer to the NPC that is on its tile, or a NULL pointer
having a list of NPCs, and they have the coordinates of ... |
In the 2D game I'm working with, the game engine is able to give me, for each unit, the list of other units that are in its view range.
I would like to know if there is an established algorithm to sort the units in groups, where each group would be defined by all those units which are "connected" to each other (even th... |
I understand the benefits of GPU rendering and such, but for a certain limited application I need to render textured triangles purely using CPU.
I've built a 3D engine capable of object handling, transform, projection, culling and the likes ... now all I need is a little code snippet that draws a single textured triang... |
I'm creating a bullet shooter much in the style of Touhou. Right now I want to have a very simple circular shot being fired from the enemy.
However, the spacing is very uneven, which isn't very good if you want to survive.
The code I'm using is this:
private function shoot() : void
{
const BULLETS_PER_WAVE : int =... |
I am a second year student of Computer Games Technology. I recently finished my first prototype of my "kind" of own pathfinder (that doesn't use A* instead a geometrical approach/pattern recognition, the pathfinder just needs the knowledge about the terrain that is in his view to make decisions, because I wanted an AI ... |
I am making a game which i will be open sourcing. Its a simple arcade like game but requires a network connection because it is meant to be played with other people.
The thing i am worrying about is how would i be sure that the client is the one that i put out for the end user to play with? Kind of a like of sv_pure f... |
For a while now I've been thinking about trying my hand at creating a game similar in spirit and execution to Baldur's Gate, Icewind Dale and offshoots. I'd rather not face the full bulk of work in implementing my own RPG system - I'd like to use D&D rules.
Now, reading about the subject it seems there is something cal... |
I'm working on a "social" game that's about 90% completion. One of the remaining features is the tutorial mode.
Basically, the tutorial mode will restrict the user to access some parts of UI and limit the features (like store items). The tutorial will only progress if a certain event is triggered, specifically followin... |
Is it possible to make an MMO game in Flash CS5 with ActionScript 3.0?
I'm not asking how, but I'd also like to see some examples if it's already been done.
|
users
id
username
password
email
userlevel
characters
id
userid
level
strength
exp
max_exp
map
id
x
y
This is what I have so far. I want to be able to implement and put different NPC's on my map location. I am thinking of some npc_entities table, would that be a good approach? And then I would have a npc_list table ... |
I have a few HLSL files that I'd like to add into a DLL project so that I don't have to keep adding these same shader files into a new Content project every time I want to use them. Is this possible, or does the XNA framework have to compile the shader files beforehand?
|
I am working on a game development project for Android. We use the Cocos2d framework. I have to design a page which contains two background images, I need to switch these images repeatedly within 1sec. How can I do this? How can I use CCTransitionScene in my Java code and change these images repeatedly?
Thanks in advan... |
I'm about to stop my game-project in XNA because from what I can gather it's development is coming to an end (and it's already behind current technology). Therefore, I need to adopt a new framework or API.
I have just spent 2 days looking at C++ and decided it's really not for me - however I do find the raw access to D... |
I'm currently creating a top-down shooter like Touhou. The most important factor of the game is that there are many diverse patterns and ways at which bullets are generated and shot at the player, see this video: http://www.youtube.com/watch?v=4Nb5Ohbt1Sg#start=0:60;end=9:53;
At the moment, I'm using a class "Pattern" ... |
Currently I'm rolling my own score and leader board functionality in my FB canvas game.
In my game, users can see what score they have, in addition I have a public leader board where everybody can see all scores from all other users.(I also have possibility for each user to set themselves as anonymous in the leader boa... |
I downloaded the official tutorial from:CustomModelAnimationSample
It works fine but when I try to replicate it in my project, it fails to load the Tag property in my model.
Is found that the probelm is in the line:
skinnedModel = Content.Load<Model>("DudeWalk");
This line loads the model from the DudeWalk.fbx file a... |
I have tried making a custom mouse cursor, hiding the real mouse, taking the real mouse delta and clamping it to a maximum speed. Here is the problem:
In windowed mode, the "real" mouse cursor moves off the window while the custom mouse cursor (since it's movement is being scaled) is still somewhere inside the game wi... |
couldn't find a duplicate question (bit surprising to me) but anywho I'm starting to get near implementing the rendering of projectiles for my game.
My question is what are some good techniques for efficiently rendering projectiles? I would like emphasis on techniques that leave room for the projectiles to be "rich" an... |
I'm currently working on a Java MMO with a pretty solid start, but I've come across an issue I need a little help with.
I'm working on player positions. Meaning their X/Y on the screen, if the PlayerA has a higher FPS (Frames Per Second) than other players, the resulting action will be that PlayerA will move faster tha... |
I'm trying to convert some DirectX code to Ogre3D and was wondering what the following translates to:
pDev->SetTextureStage(0, D3DTSS_TEXCOORDINDEX, 0)
pDev->SetTextureStage(0, D3DTSS_COLORARG1, D3DTA_TEXTURE)
pDev->SetTextureStage(0, D3DTSS_COLOROP, D3DTOP_MODULATE)
pDev->SetTextureStage(0, D3DTSS_COLORARG2,... |
I want to disable texture filtering (since I'm making a retro-style game where it looks bad if a texture gets filtered like that), but since I'm on XNA 3.1 there seems to be no option to set a SamplerState with SpriteBatch.Begin or anything. Is it possible to do this?
|
Possible Duplicate:
Is there a simple way to stop enemies standing in the same spot?
So I'm making a game in AS3, it's a strategy DotA-like game (for flash game equivalent, there's UDE) so far so good, I have the A* pathfinding algorithm all sorted out and the minion units move to the desired location as I want them... |
Is it feasible to use half-edge mesh, in games, instead of vertex-face structure? What comes to my mind is that it could be useful in mesh simplification (dynamic level of detail). However, I'm worried it could take too much memory, or even have a negative impact on a games rendering performance.
|
I'm looking to set up two threads in my puzzle game, one for logic/graphics, and one for audio.
Am I correct in thinking that the thread that handles the audio should be set as a daemon thread, because the game can end without that thread finishing?
|
I'm working on a game with a 2D view in a 3D world. It's a kind of shoot'em up. I've a spaceship at the center of the screen and i want that ennemies appear at the borders of my window. Now i don't know how to determine positions of the borders of the window.
For example, my camera is at (0,0,0) and looking forward (0... |
I did have JOGL1.1 set up and working, but I soon discovered that it did not support the latest OpenGL, so I started work on upgrading to JOGL2.0 it's not gone too well.
Firstly, is it worth me trying to get JOGL to work, or should I just move over to LWJGL? I am fairly comfortable with OpenGL (via C++) and from what I... |
Currently my very basic AI framework has agents that move along a a jagged path made up of a series of points.
They do this by simply moving their position from one point to the next. When they reach the next point they move towards the next and so on. How can I change this so that they move smoothly along a curved v... |
How do I perform a circular/rotational/spin blur on an image - using DirectX9.0 and HLSL?
For example:
|
I am seeking a game server that will scale well. All commercial and/or free software alternatives are welcome. Game will be a boardgame that is similar to poker. Some technical details are listed below.
There will be a table which consists of 4 people, to send them message I need a channel manager. A table will be rea... |
I'm rendering to a depth map in order to use it as a shader resource view, but when I sample the depth map in my shader, the red component has a value of 1 while all other channels have a value of 0.
The Texture2D I use to create the DepthStencilView is bound with the D3D11_BIND_DEPTH_STENCIL | D3D11_BIND_SHADER_RESOUR... |
Is it possible for me to use Blender to generate a 3D skybox?
The concept is fairly simple: I create a scene that I want to display on the skybox (mountains, clouds, water, etc). Then, couldn't Blender render it from the origin, calculating the images that would be placed on the six sides of the skybox?
Is there a way ... |
I am rendering a scene to FBO as my render target whose size is 8 times the size of the orignal screen in OpenGL. Now i wan to downsample the texture generated by FBO to the size of the screen so as to achieve spatial anti aliasing. How do i achieve the down sampling ? Please provide implementation details.
Note : If t... |
I don't really know a lot about programming and the only things I do is using codes with Gamemaker, but I have read that it is too basic and it can't be used with iPhone or Android.
Is there anything free that I can use to make games for those platforms? Or if not, any suggestions for engines or anything else? I was wo... |
I need to find the shortest distance direction from one point in my 2D world to another point where the edges are wrapped (like asteroids etc). I know how to find the shortest distance but am struggling to find which direction it's in.
The shortest distance is given by:
int rows = MapY;
int cols = MapX;
int d1 = abs(... |
I am learning 3dsmax architecture for building models of houses. Is it possible to do freelancing with house modelling thing? For various reasons I have to stay at home.
So I was wondering if I can earn some money by making some house models for someone.
I really don't know how this works but may be someone can give s... |
I have never seen such a feature before, but it should provide an interesting gameplay opportunity.
So yes, in a multiplayer/real-time environment (imagine FPS), how could I implement a slow motion/bullet time effect?
Something like an illusion for the player that's currently slo-mo'ed. So everybody sees him "real-time... |
I'm trying to get my head around component based entity design.
My first step was to create various components that could be added to an object. For every component type i had a manager, which would call every component's update function, passing in things like keyboard state etc. as required.
The next thing i did was ... |
I want to create some fairly complex 2d predefined paths for my AI sprites to follow.
I'll need to use curves, splines etc to get the effect I want.
Is there a drawing tool out there that will allow me to draw such curves, "mesh" them by placing lots of points along them at some defined density and then output the coor... |
Has there been any research into how to maximize in-game tutorials effectiveness? Any blogs, articles or research papers would be appreciated.
|
I'm having some issues with the packing of my structure in C# and passing them through to cbuffers I have registered in HLSL. When I pack my struct in one manner the information seems to be able to pass to the shader:
[StructLayout(LayoutKind.Explicit, Size = 16)]
internal struct TestStruct
{
[FieldOffset(0)]
p... |
I'm looking to work over the internet in a team of people to make a game. I'm not looking to make a profit, I just want the experiance. Where can I find similary minded persons?
|
What is the current state of game engines, frameworks, libraries and conversions related to the HTML5 set of technologies (including CSS3 and JavaScript libraries such as RaphaelJS, Impact, gameQuery); and how does the best of that compare with developing a native app (especially for iOS and Android)?
Especially in ter... |
Possible Duplicate:
Mods for Minecraft Server - how does it work?
I have made some minecraft client mods, but i've started a server a mounth ago and i want to make a mod for it, but i cant find any tutorial on the internet. How can then the other guys making those mods for minecraft server know how they are going to... |
I'm just a little confused with all of the news recently regarding the cancellation of mobile flash, so was hoping for a little help. I've had a search through and can't find the answers to these questions, so any help would be great.
First up, I'm looking to create a game in Flash first, to test whether the concept wo... |
I enjoy reading about techniques used in NES-era games. Is there a blog or site that is pretty much dedicated to this topic?
For example, here is an article talking about Pac-Man, and another about the movement in The Legend of Zelda.
|
If I call tex1d from my pixel shader on a texture that has been initialized as a texture2d will it treat the data as a one dimensional array and then just take the element at whichever position you specify?
For instance if you have a 10 x 10 texture(that would be a one dimensional array 100 elements in length) and you ... |
How can I access the nth element in a texture2d from a pixel shader? For example if I wanted to get the 5th vector4 from 10 x 10 texture2d
|
Beyond the obvious something that seams real, realism in games is a hard feature to hit.
In some cases, things that are completely impossible in real life are seen as realistic by gamers. For instance, in some FPS you can survive being hit by a fair amount of bullets when in real life one is enough, Newton-defying car... |
Does XNA support 1 dimensional textures. And by 1 dimension texture I mean something like Texture1d not a Texture2d where one dimension is 1 (because of the 4096 limit)
|
Let's say that I run the same game in two different computers with different GPUs.
If for example they are both certified for DirectX 10. Is there a guarantee that the output for a given program (game) is going to be the same regardless the manufacturer or model of the GPU? I am assuming the configurable settings are ... |
I'm developing a 3D engine in software, and so I must compute Z sorting manually. I'm currently using the painter's algorithm to sort triangles and then drawing them back-to-front. This causes artifacts that I'm trying to correct.
Would using a dynamic BSP-tree ensure "correct Z sorting" of triangles? Why? Because th... |
How do I simulate water droplets realistically falling, gathering, and flowing down a window? For example, see http://www.youtube.com/watch?v=4jaGyv0KRPw. In particular, I want to simulate how smaller droplets merge together to form larger droplets that have enough weight to oppose the surface tension and flow downward... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.