instruction
stringlengths
33
29.4k
Where can I find 3d models of equipment for supermarket? I will use them in XNA. UPD. I need equipment like this http://www.the3dstudio.com/product_details.aspx?id_product=419747 without products.
I'm developing a 2D golf game in VB.NET 2005, but I am stuck on how to implement air or wind drag that should affect the ball. Already I have these equations for projectile: \$v_0\$ for the initial velocity of a golfball when hit or fired Vertical and horizontal components the velocity of the golfball: $$ \begin{align...
My game's source is on github. I am following this tutorial to create a 2D camera. After I adding the transformation to the SpriteBatch, all of my positions seem to be "off" when I move the ship (and hence camera) away from the screen center. Any idea what might be wrong?
When I recently entered the field of game development, I actually assumed that “game engine” meant something with which you can make your game story script run in an environment where non-player characters have a state, and so you can test running your story as the bare bones of a game. A typical example of a tool for ...
I need to be able to determine how long a key has been held down with high accuracy. For example if they key tapped really fast it could report a time that is less than the time for each update frame.
I am trying to add a "PlayerName" box on top of a opengl menu background, is this possible? I've tried various layouts, but they don't seem to allow an EditText box to appear on top What is the typical way of doing something like this? Do I need to manually render the text and handle input or is there a better way? ...
How should I automatically update my player's game assets and executables? It is preferable for the update software to be free. Updates must be small in size and not waste cpu-time. Also it has to be easy to run a update server to create new versions or logistically. My use case is for updating player game versions suc...
I am trying to make a simple weapon change in Unity3D. The best way to do this is with the mouse scroll wheel, as far as I can see. I googled on how to do this and found that I have to use Input.GetAxis("Mouse ScrollWheel"); I use this piece of code and print it. Still, I always get an value of 0. any ideas? I just nee...
Is it possible to render a surface of revolution with using a vertex shader? I have NxM vertices, and I would like to transformate them accordingly to the function I have to draw. Is it possible, or i can not change the vertex position with a vertex shader? Thanks ahead!
Does anyone have experience using SQLite with XNA? Or using any other DB with XNA?
I was wondering, what kind of database does Minecraft use? Is it a relational database, maybe something common like MySQL? Do we even know what he's using? And maybe even a better question, SHOULD he be doing it that way? What type of database should be used?
I thought about random pathfinding for my Tower Defense game. A* would not work for my puposes, because I specifically need random pathfinding. Imagine a map with routes, a starting point and a destination. I have multiple routes, which all lead from the starting point to the destination, one way or another. It could l...
I'm working on a simple game to rate a users' preference among several styles. There are C classes, and the game consists of R rounds of comparison. At each round, the user is presented a [pseudorandomly selected] single representative image from each of S classes and chooses exactly one to be the "round winner." At...
I have some pretty decent general programming skills and elementary C/C++ skills. I am a complete noob in game/graphics programming and I would like to start. I want to gradually learn, starting off by something like Pong, and gradually making more difficult stuff for learning. My ultimate goal is to make some COD:BO z...
Possible duplicate: What technology should I use for a web-based game? I have agreed to show my child how to develop software. He wants me to help him develop a game. If you were me then what approach would you take to develop an old school game? I was thinking about an old school game that you can pick up and play ...
I remember John Carmack talking about how they initially used Megatexturing for Quake Wars: Enemy Territory. The technology has since evolved quite a bit in Rage. I was wondering if somebody here can give some technical details on the specifics on what and how it has evolved since then.
Is it possible to make model in Blender, with enabled GLSL, add multiple textures, etc, and then just load it in XNA, where's own HLSL? Will it work?
I'm looking for an AI engine for iOS game development (machine learning, path finding).
I have to use this function to get a Surface of Revolution (homework). newVertex = (oldVertex.y, someFunc1(oldVertex.x, oldVertex.y), someFunc2(oldVertex.x, oldVertex.y)); As far as I know (FIXME) Surface of Revolution means rotations of a (2D)curve around an axis in 3D. But this vertex computing gives a 3D plane (FIX...
I'm having some troubles with a 2D platformer type game (there's more to it, but that's all that matters for this question). I had collision with the platforms working fine, but if the character hit the side of the platform, they would be automatically be placed on top of the platform. This is bad, for obvious reasons....
I have just installed XNA for VB2008 professional, now i try to run my first game development and i get this error, any way around this, am using windows xp sp3 my system configuration Host Name: USER-PC OS Name: Microsoft Windows XP Professional OS Version: 5.1.2600 Se...
I'm currently wishing to draw up my UI for a 2d game, however I'm not so sure what the normal strategy is for creating the images for a UI. Are there any programmes which are specifically accurate for UI Design or is something like Photoshop perfectly fine?
I'm currently dealing with a multiplayer combat system where the damage dealt by the players is always multiplied by a random factor between 0.8 and 1.2. In theory, a truly random RNG may eventually yield the same number many times (see the Tetris dilemma). This could result in a match where player is always making ver...
This is the first time I'm trying to make a 2D game, so I'm having quite a few difficulties in getting things right. Right now I'm trying to figure out exactly how the entity state machine should work. 1. I noticed entity states are... well, stateless. Basically, they just act on the data in the entity accordingly, the...
I'm working on an input system (in C#) and now I'm wondering, what is the best place to put input functionality? Currently what I was coding was a bunch of delegates which act as callbacks (i.e. onkeypress, onmouseclick, etc) and the idea is when the input manager checks for input it invokes these delegaetes. However t...
I have an XML file representing different car manufactures that will be available in my game. The file looks like this: <?xml version="1.0" encoding="utf-8" ?> <XnaContent> <Asset Type="List[string]"> <car>Audi</car> <car>BMW</car> <car>Nissan</car> <car>Volvo</car> </Asset> </XnaContent> When addi...
I am very new to 3d graphics and game engines and panda3d and python. I followed few panda3d tutorials and now I want to test them with few new models. High majority of 3d models in the internet are in .max format. Is there a way to convert these models to a format that can be used with panda3d. (.egg or .bam, I think)...
I've recently picked up a class which creates 2D Rays and detects if the ray is intersecting any bounding boxes passed through it. public struct Ray2D { private Vector2 startPos; private Vector2 endPos; private readonly List<Point> result; public Ray2D(Vector2 startPos, Vector2 endP...
I'm thinking about making a game set in space, that would feature very large, procedurally-generated game world (many stars, planets and what have you). However, I foresee a big problem: cosmic space is mostly featureless. It's almost the same everywhere - the same black emptiness with stars. This is obviously bad. A l...
Possible Duplicate: How to convert .max files to .egg on linux Is there a way to load .max files directly to Panda3D engine? I am running Panda3D on linux so converting them using 3ds max is bit difficult. Or at least is there a work around this problem?
I am involved with a research that deals with 3D graphics. I am very new to 3D graphics. In my research I have to move a 3D object based on some information queried by processing a video. Viewer's only interaction with the 3D environment is, changing the camera viewpoint. I am not that worried about the speed or effici...
Between not being sure how to phrase my question for Google and not being a lawyer, I thought it might be easier to ask you guys. Specifically, I want to know if it's OK to sell an Xbox Live indie game while simultaneously distributing the source code and other assets via GitHub or something. Edit: The Communist Duck a...
In my Game I'm currently have "Scene Coordinates" which are the X,Y coordinates relative to a Game Scene. In that Scene there are Game Entities, let's say there's a GameEntity A in x=100.0, y=100.0 ( scene coordinates ) Which is the best way to have "Entity Coordinates" so that from GameEntity A point of view, he's sta...
I've recently started a project, building a physics engine. I was hoping you could give me some advice related to some documentation and/or best technologies for this. First of all, I've seen that Game-Physics-Engine-Development is highly recommended for the task at hand, and I was wondering if you could give me a seco...
I have a lot of experience with C++, but I have no experience with game programming. This summer I plan to create a 2D platformer from scratch using C++/SDL for the learning experience. I am looking for as many resources as possible to help me get started. Good source code, tutorials, anything. One of the best tut...
Possible Duplicate: How to colorize certain parts of a model - like RTS games have those team colors? Ok, so here is my current situation. I have a player model, fully UV mapped, and textured. At first I made multiple bitmaps for the character representing multiple colors for each team in the game. (red, blue, green...
I'm creating a 2.5D platformer in XNA which uses 3D models that are constrained to travelling along a 2D plane (just like Trine). To make things tricker, however, I want the 2D plane itself to be able to curve. Consider this replay of Klonoa (you only need to watch for 10 seconds): although the player was on a 2D plane...
I feel like what I'm currently doing is stupid but would just like reaffirmation it is. Basically I'm writing games which target a certain screen resolution (800x480), so all positions, widths and heights I set for sprites is for that resolution. On the engine side I have special scalers which will change the width and...
Using XNA, is it possible to access the GameTime object before Update is called for the first time? Can it be used in the game constructor, Initialize or LoadContent methods?
As I am using Unity, I can easily grab a square of pixels of any length. However, I want to find the largest circle possible within that square of pixels. So for instance, if I had a 40 x 40 square of pixels, how would I get an array of pixels that form a circle inside of the square?
I remember having spotted a link to a huge page with different equations to non linear interpolation curves, for example if you want to stop a car smoothly, etc. Those can sometime be useful to emulate some real-world acceleration/velocity behaviors without the help of a physics engine, which can really simplify the co...
I'm trying to create an Augmented Reality app. I'm using OpenCV to get 4 points from a checkerboard pattern that represent the four corners of the pattern. This should be used to create a plane in my app, but the points are in 2D. Anyone here have an idea how one is to use these 4 points to create a plane and/or map a...
I have some small circles just rolling across the bottom of the screen in my Cocos2D/Box2D iOS app. The bodies are dynamic... so I make them roll by applying a horizontal force to the center of mass (when the linear velocity is below the max velocity). Currently I apply this force in -(void) tick: (ccTime) dt. Is thi...
I come from a .net web background so I am accustomed to using xml .config files. What is the XNA equivalent? It seems to me that using the same practice of a xml config leaves your game open to easy modification (which can be good, I know). In my day-life web development the configs live on servers where users can't ...
I like making game concepts for fun, as a hobby. I don't think that all my game concepts are amazingly awesome and have to be created and would revolutionize the industry. I just want some people to talk to that have the same hobbies as I do. To be able to discuss ideas and point out the pros and cons.
"Cut the Rope" is so smooth and real life like, while some apps are very "bitmap" like. How does "Cut the Rope" do such realistic animation?
I'm looking for any material on seamless MMO servers! I do have a few articles in the "Massively Multiplayer Game Development" books and "Game Programming Gems 5." Has anyone experience on that topic or knows articles about that? I'm interested in "high-level views" as well as implementations. This might become the to...
I want to render very pretty smooth undulating hills. There are objects snuggled between these hills, so I can't really use naive bump-mapping. I am currently rendering using a very detailed mesh that I generate myself. Its a lot of very small triangles. Are there other approaches? What is the current viability of d...
I currently have volume data for the world stored as an array of booleans. I then check each empty block and if it has non-empty neighbors the faces get drawn. This prevents me from sending a bunch of faces to the graphics card using OpenGL. I'm now working on inserting and removing blocks but I'm not sure how to do ...
I'd like to make a simple text-based game using either JavaScript or PHP. Ideally I'd like to be able to render ASCII text in a kind of blackscreen "console" style (think console roguelikes such as Crawl or Nethack, or old Infocom text adventure games). The game would be simple, mostly text entry and menu choices. Is ...
I've got a snake game with three objects: apple, pear & orange. I would like these to be associated with questions which I'm trying to create in XML. This is what I've done so far... <?xml version="1.0" encoding="utf-8" ?> <XnaContent> <Asset Type="System.Collections.Generic.List[System.String]"> <MathsQuiz> <Questio...
I want to generate a town layout in a square grid (rendered isometrically, but that doesn't matter) using the following elements: 2x2 Houses Roads, 1 unit wide Canals, 1 unit wide Sample layout: I always have a specific number of houses, and as many roads and canals as necessary to connect them all. The houses need...
SkinnedModel sample nicely shows how to import single root bone skeleton and run in XNA. My question are: Is it possible to have animations played in XNA if there no bones are used in model (which can easily be done in 3dmax with auto key frames)? Is it possible to have multiple independent bones laying around, connec...
I was looking at the Unity site, and I was a bit confused with the pricing. It says it's free, but for iOS/iOS Pro or Android/Android Pro. I need to shell out $400 minimum each. So if I want to develop with Unity for Android and iPhone, I need $800 to do this? (not saying that it's a lot of money, actually seems reaso...
I am creating a map in a game, the map contains different countries, my question: Q. How to model the irregular boundary of each countries? How to do quick country searching if I click on the map (given x,y values)?
I'm writing a 2D rigid body simulator. The objects being simulated are convex polygons. My question involves how to decide on the "point" of collision, so that when I apply a response force, I can also calculate torque. In 2D, the popular method of narrowphase collision detection seems to be the Separating Axis Theorem...
After figuring out the pricing of monoTouch and Unity, I've found that the pricing will be the same ($800). With XnaTouch/MonoGame for monoTouch I am able to port my games to droid/apple. I am just curious if anyone has tried both XnaTouch and Unity and which one they prefer. I do mostly 2D games (if Unity had a 2d E...
I'm trying to achieve the warp effect that you see in games like Geometry Wars. Can someone help explain what is going on here? I feel like the grid's z axis is manipulated in some way, any way, by the programmer, but is there maybe some known mathematical equation to really get the correct warping effect? Edit: To be...
I don't understand how to listen for collisions in Cocos2D/Box2D. Say I have two dynamic circle bodies. One is very small and the other is relatively large. When the small circle collides w/ the large circle I'd like to do something (play a sound for example). What's the best way to do this? I'm currently experimen...
I'd like to develop a small Facebook game with some graphics involved (not that many). Within that game, the users will be able to buy/sell certain items and I wonder WHERE I can save those items/virtual money...? Does Facebook offer me a database I can use?
What I don't need is an MMORPG engine, at the moment. What I do need is a flexible easy-to-use engine that I can make a mock-up with. I don't need support for more than 10 players in an instance, so any multiplayer platform is probably fine. I need an engine with which I can create the following core features: Waves o...
The problem is that I'm trying to use my meshes with Bullet Physics for the collision part of my game. When I attempted doing this method with my GLM(model loading library by nate robins) model, I get a segmentation fault in the debug, so I figured that it doesnt like the coordinate variables of the model. If i use ble...
I have a very simple shader and added linear fog via mix like this: finalColor = mix(finalColor, vec3(0.5, 0.8, 0.95), vUVoutAndViewZ.z); Note that the view Z distance is in the variable that also contains the UV coordinates, so the fog didn't even add a new interpolator. Still, this one innocuous line brought the fra...
What are some good online resources to understand game camera properties, such as fov, aspect-ratio and more?
I'm now planning a casual car racing game that want to model some real cities sight into it. I doubt if there is copyright of the landscape or city planning of those real cities in the world. Can I model such as existing city or I can't? Thanks a lot.
I work for a small game studio that develops games for iOS and Android currently. The engine we are building will be portable and our upcoming game is quite ambitious. Therefore we are considering porting it to PSP also, making it available at the PSN as a mini. I have been searching for days now but I am having troubl...
Does anyone know if in a pokemon game does the wild pokemon have the same stats when you catch it as it did in that battle? and to make this a more programming question ... In that type of game should the "wild" enemies have the same limits imposed on them as if they were player controlled or should the enemies be stro...
I need some advice on how to design the Entity module in my game, how to apply the MVC pattern and generally how the Entity should interact with its controller and its representation. First some details about the game: it's a 2D action-platformer, it's data-driven (or rather, I'd like it to be data-driven — it isn't ye...
I've been trying to develop a multiplayer turn based game which is mostly free to play - I just want to see if the game idea is appreciated - hence I want to do it with minimal cost and I'm confused which one of these to use: red5, zendamf, BlazeDS or Cirrus. Red5 seemed the best option for me initially but getting a m...
I understand that the following math topics are required for 3D graphics programming. I have started doing some of them in my math course. Can someone point me in the direction of a resource that explains how they apply? What graphics/game problems are they used to solve? vector math matrix math quaternions linear alg...
For a college project I need to draw an empty cube and then show the cube being filled. So far I have heard that JME and voxels is the way to go but I have no idea where to start. Can anyone point me towards a tutorial or any reading? My project is in Java but any pseudo-code is welcome.
There are tutorials about applying shaders to 3D models, but I would like to know how to use shaders on primitives. I have a world with a lot of vertices and I would like to apply a shader to it without adding any texture to it or loading any model. I'm working with XNA and HSLS.
3d Max does export Opacity value of an material to Fbx, which in Xna (when importet/processed) can be easily found in BasicEffect of a mesh instance Alpha property (and used in draw method). My question is: Can opacity values on animated mesh be exported (specific opacity states/values over time/keyframes) ?? From wh...
I'm wanting to create a rope that can collide with objects like in the following youtube video: 2D Game Physics Rope I'm thinking that you implement the verlet integration which uses points and connects these points with lines. I'm trying to figure out what type of collision detection you would apply to the rope to get...
I implemented/copied the wu line algorithm from pseudo-code on wiki-pedia and other places. When drawing a sine wave it breaks down at the point where the line changes from y dominant to x dominant (or vice versa). (I did not copy the endpoint code because it looks terrible and I do not need them for my purposes. ) ...
From what I understand being a level designer and a character/environment/object/etc Modeler are two different jobs, yet sometimes it feels like a Modeler can also do the job of the level designer. I know this also depends on the scale of the game. For small games maybe they are one and the same, but for bigger games...
I am building a game that is tile-based (filled with glowy vector squares). Right now, I am considering using instancing for drawing these, but I would like to know if there is a faster approach. The squares are all of the same size. They should be rendered in a rectangular grid, and I know exactly how many of them I s...
I'm trying to deactivate an GameObject when a certain variable reaches a certain value. It is an imported FBX and doesnt have a MeshRenderer. I'm trying to stop it now with TheGameObject.gameObject.activate = false; then nothing happens. Is there any other way to do this or fix this?
At the start of my RenPy game, the player chooses a male or female character. The game plays out the same for both, save for some details. The problem is that I want to write: show hero normal and get the image of the correct sex of the character chosen at the start. I started to write a python function to do this, b...
I'm trying to use SDL + OpenGL but I don't believe hardware acceleration is working because the framerate for around 18000 polys is about 24fps on a quad core machine but is a hopeless 1-2fps on an Intel Atom. Even the quad core starts to struggle when the poly count rises above this. I've checked my code over but I'm ...
I'm trying to learn about vertex arrays and vertex buffer objects, but I don't understand the differences in terms of: case-of-use (static geometry like terrains, geometry that changes every frame like a particle system, etc.) performance portability (old graphics card, consoles, devices like Android or iPhone, etc.) ...
I'd like to export opacity of mesh materials on a per-keyframe basis from 3DS Max using a script. How can I accomplish this? (This is basically extension to my previous question.)
I have two lists which work with an XML file which holds questions and answers. At the moment the project displays all the questions at the same time so they "flicker" on the screen and iterate between each item in the list. Whats the easiest way (coding) to pause the random generated list on any particular questions? ...
I am new to game development, having only developed a few games before, in 2D space, but with 3D rendering. I have implemented instancing before, but this is only my 2nd time doing it. I have a question regarding instancing. To do instancing, I have a geometry buffer having a vertex declaration (for instance) 32 Vertex...
I've been looking into PowerVR textures, and have run into several textures that are apparently 2 bits per-pixel. This, frankly, boggles my mind. How does one get even half way decent color preservation when you only have 4 possible states per pi per pixel? I would love any resources out there that talk about the compr...
Does it make sense to include an index by using DrawIndexedPrimitives, when using linelists performance wise? I could imagine it would be easy for the GPU to generate such indexes anyway.
I am interested in getting into game development and posses good C/C++ programming skills. I have tried OGRE before, and I am curious whether I should learn either OGRE or OpenGL as a starting point. From my understanding, OGRE is a wrapper for OpenGL and DirectX. So, supposed that I learn OGRE, do I still need to lear...
I have a terrain surface with a normal for each point on the terrain. I have a second detail normal map to be applied to the terrain. These normals are in 3-space. The Y value of both normals is always positive. The X,Z values of both normals can be positive/negative/zero. The 1st normal vector (blue) that we are rota...
I have an idea for a game, and I was wondering, how would I go about grabbing people in the gaming development community to help build this baby that is in my head. I am no coder, but I do understand coding concepts etc. Are there sites for discussing possible game design ideas, or game concepts? (I'm hoping here is su...
I am working on a tower defense game in Flash. Right now most towers find the the nearest enemy in range (enemies are in an array), get the enemies coordinates, and fire a bullet. When it hits the coordinates [bullet.hitTestPoint(x, y)] it damages the enemy. I want to design a tower that will shoot a bullet at the firs...
http://altdevblogaday.org/2011/02/24/introduction-to-behavior-trees/ Obviously the most interesting article I found on this website. What do you think about it ? It lacks some code example, don't you know any ? I also read that state machines are not very flexible compared to behaviour trees... On top of that I'm not s...
How useful is it to keep a measurement of framerate over the course of long times (such as an hour) spanning multiple scenes/data environments? I've had plenty of times where data throttling/pushing was based on a poll of what's going on in regard to framerate over the course of a minute. I've used ~10 minutes a few t...
What are my options for writing C# code to produce a 2D iPhone game? I specifically mention 2D -- Unity will not suffice for me (even though it can "fake" it with a 2.5D game). I like C# because of language features (LINQ, garbage collection, generic collections, etc.) although I would be open to considering Java as w...
Famously the Sims and similar games have been described by some designers as Toys and not "really" games. I'm curious if there is a good answer to what makes something a game. For example many companies sell Sudoku games - EA has an iPhone one, IronSudoku offers a great web based one, and there are countless others on ...
I would like to make a 360 game and was just wondering if I could re-use some existing C code I have or whether I need to re-write everything in C#. Any help is appreciated.
Given the point Vector pos = new Vector(0.0, 0.20156815648078918, -78.30000305175781, 1.0); and the plane (triangle) Vector a = new Vector(-6.599999904632568, 0.0, -78.5, 1.0); Vector b = new Vector(6.599999904632568, 0.0, -78.5, 1.0); Vector c = new Vector(6.599999904632568, 4.400000095367432, -78.5, 1.0); I want to...
Currently I'm planning to run the Asteroids successor on the Java Virtual Machine, while writing the code in Scala (because that's the language I'm fluent in). I have looked at different options, like using one of the various OpenGL bindings or using Java2D. Having looked at some frameworks it seems that they either ar...
I am using flixel v2.5 and am using FlxG.camera.follow to get the camera to follow the player. I have a background FlxSprite that I don't want to move with the camera. Is there a way I can set this FlxSprite to stay in the same place on the screen? I would also like to have a GUI HUD that stays fixed to the screen, and...
I've done some basic 1 D integration, but i can't wrap my head around things and apply it to my graph layout. So, consider the picture below: if i drag the red node to the right, i'm forcing his position to my mouse position the other nodes will "follow" him, but how ? For Verlet, to compute the newPosition, i need t...
I have 960x3000 map image in png and I'm scrolling it in a loop like this (it's called in 60 FPS loop): glPushMatrix(); glBindTexture( GL_TEXTURE_2D, mapTex[iBgImg]); glBegin(GL_QUADS); double mtstart = 0.0f - fBgVPos/(double)BgSize; double mtend = mtstart + mtsize; glTexCoord2d(0.0, mtstart); glVer...