instruction stringlengths 33 29.4k |
|---|
The problem... i'm drawing polygons, in this case boxes, and i want clip children polygons with its parent's client area.
// Class Region
public void Render(GraphicsDevice Device, Camera Camera)
{
int StencilLevel = 0;
Device.Clear( ClearOptions.Stencil, Vector4.Zero, 0, StencilLevel );
... |
I have been using the glDrawTexf extension to draw labels in my Android app using OpenGL ES 1.1.
But I have now moved to OpenGL ES 2.0 and can't figure out what is the equivalent of this call? I could create triangles to hold the texture and draw it like a regular texture. But the glDrawTexf was very convenient:
It di... |
I'd like to implement a shield effect like that done for Protoss units in Starcraft 2. I'm guessing that the technique involved uses a partial sphere that is rotated to reflect where a unit is hit.
Assuming this is the idea, how can I create a quaternion to rotate this model to achieve the desired effect? My collision ... |
I'm at the stage in my game development where I need to make a HUD or GUI. I've never gotten to this part, so I don't know how its done. I tried rendering a simple quad at a fixed position on the screen, but there's a problem. To make my camera work with orthographic, I use this:
public void lookThrough()
{
GL11.gl... |
I noticed a few programmers setting time-sensitive challenges for themselves, usually in the area of "write game of type X in Y amount of time" or "write X number of games giving only Y time for each". What are the tangible benefits for setting your workflow in this manner to speed-code for a while? It feels like you h... |
The book I'm following for a computer graphics course only talks about homogeneous coordinate systems.
But today, our teacher asked:
What are the reasons for using heterogeneous coordinate systems?
I cannot find anything about this topic.
|
I'm using SDL & openGL to render a tile-map. The issue is that the tile-map rendering is extremely messed up, and I'm just a bit unsure what I'm doing wrong exactly.
It should just be the first tile being rendered, but I'm getting a blurred mess :S. My rendering code:
glBindTexture(GL_TEXTURE_2D, texture);
float texsc... |
I'm trying to use PhysX for my physics engine. I'd like to use spherical joints, but I'm having trouble with the constraints. All of the examples that I've found refer to SDK v2.8. I'd like to stick with v3.0. Even the PhysX support center uses deprecated APIs. There's a tutorial at the support center (Ch 4 - Gras... |
I have created a model in Blender. Now i want to read that 3D model in my c++ program. I figured that a model can be exported to various file formats e.g. .obj, .3ds or COLLADA and then can be read in a c++ program. I have been searching web for doing that for quite a while and found many tutorials. But i ran into issu... |
I'm currently creating a 3D game with XNA, and I am in need of some particles.That's why I searched for a particle engine. I found Mercury, watched the tutorials and integrated it in the game.
But now I have a problem, I trying to have particle in 3D but I don't how to do this with Mercury. How can I do this (is it eve... |
Like many beginner graphics programmers I followed a tutorial which showed me how to set up buffer descriptions and fill out the vertex buffer etc... - the steps involved in drawing a simple indexed cube on the screen. There is a leap however when it comes to drawing more than one of these cubes. My code below is the o... |
OK, I feel like this should be on meta, because it is a very meta question, but I thought it would be interesting to discuss here. it is relevant and it might provide a little break from coding.
Using these sites you can essentially get a very good answer to any problem. In fact I think it would be safe to say you can... |
Possible Duplicate:
How to generate a universe?
Were would I start looking if I wanted to develop an engine to simulate space at random. Things like black holes, galaxies at distance and moving stars, asteroids and so on?
I would like to know if anyone has some good tips for this, or if there is some information onl... |
In d3d11, you can bind multiple render targets ID3D11DeviceContext::OMSetRenderTargets. But why would you want to do this?
|
I have made a grid and placed towers and moving a enemy on it. Now i want to rotate towers face towards enemy when enemy comes in the range of tower.
I have a solution that whenever enemy comes to its range ( 2 grids far ) it starts do something, lets say when tower finds enemy is on left side it starts firing like tha... |
I've been trying to modify some slope code from an example I've found but I've come across an issue the way the method is designed it attaches the current slope and then based off that slope determines if the character is on it or not.
protected CollisionPath attachedPath;
The issue with this though is when you try a... |
I'm looking for a way of getting depth buffer data for a virtual 3D sensor.
Currently the method used is raycasting (implemented in UnrealScript), but I want to use the depth buffer data instead for faster output of the sensor in FPS.
One complete frame of data takes many seconds to generate currently, which is bad for... |
I read it was going to be changed to 520px, but I keep seeing pages that are new that are the older 760px width. Is it safe to build at the wider width still or should we be building at 520px?
Anyone know if you can still design for 760px width? If not, what's the new width?
|
Just wondering where to find good tutorials on making textures for 3D games?
Also, is it common practice to take photographs and convert them into game textures or do designers draw the textures themselves?
UPDATE:
To make the situation more specific, I am trying to make a simple game where the game character is in a s... |
Let's say I ship a game on multiple platforms. My game code detects a few trivialities about the underlying system, like the local settings, the "country," the OS, the kind of graphic cards, etc.
Let's say I ship the game with code inside it that will send this information to a master server where I collect and manage ... |
With all the recent interest in developing HTML5 apps and games, and I am curious why all the focus is on Javascript, and not on Java.
Minecraft is a great example of what can be accomplished in a browser, and it's written in Java, not JS. I doubt if it is even possible/practical to attempt such a complex project in JS... |
I'm making a 2D (Android) game. Android devices vary quite a lot in screen resolution; what do I need to keep in mind when making my game?
Do I need to keep big versions of all images and scale down depending on the resolution (doesn't that waste space)?
Do bitmap fonts scale well or do I need to use something else?
A... |
Does anyone know if ARToolkit can be integrated with Unity and work on Android phones? It would be helpful if you could share any examples or resources.
|
I am creating a model pack for a game and I am having a hard time deciding how many sides I should start with for the low poly props made from cylinders and spheres.
Take an apple for example. I want to maintain the apparent roundness of the shape at a glance but keep the polygon count low. The model pack is household ... |
I want to try my hands on a little shooter on the Android platform, and I'm looking for a full-featured 3D game engine. I can't afford to pay more than 400 € for a license, so expensive engines are excluded from the start.
These are my requirements:
The engine has to have good level editor (able to place entities, act... |
I have a basic game, in which the player moves the environment around the screen, to give the gamer an impression that the player is actually moving.
I want this game to be large and have an open world, each piece of scenery is an object and each frame it updates the scenery to make itself move relative to the player. ... |
Right now I'm working on a 3D game and I've come across something very weird. When I created the model in Blender, I added an armature named "MyBone" to the stage and attached a cube ("MyCube") to it, so that when I move the armature, the cube moves with it. I exported this as an FBX and loaded it as a Model object.
Wh... |
I'm looking for a way to add a sprite using a particular logic operation (like XOR). I can't find anything on Google and I'm not sure where to look in the documentation.
I've looked into SpriteBatch.Begin(...) and its Draw method and several options in the GraphicsDevice class, but I'm not recognizing anything capable ... |
What I'm trying to do is add my depth buffers values to my scene, ie. I'm trying to make objects closer to the camera darker and objects further away lighter. Which should be easy: just render the depth buffer to a texture, and then render the scene, multiplying each pixels colour by the colour value at the same coordi... |
I started an MMORPG game, and I can already make a character move around the map and see other characters. But I have doubts about my architecture.
I have a loop which, every x milliseconds, request from the database the actual position of all characters around the main character. After that, I remove all the objects ... |
First off, I am making a game similar to SSB, which relies heavily on physics, even though it is a sidescroller. I am currently using Unity.
In Unity there are "character controllers" which are used for characters that move, but they don't interact with other physics objects. There are also rigid bodies, which are comp... |
I am interfacing with the controller using the windows HID API. It seems that its output report length, as provided by the HID driver, is 0, which means I can't send it anything (e.g. make the rumble work). I've also noticed that the input report doesn't include the state of the big "X" button. Am I wrong about this? I... |
Before starting planing your code, the data structures, the class hierarchy, you need to have a clear idea of what you want for your game.
I came across with an idea for a game, but it is too general.
I think every game starts with a general idea, but how did they take that general idea and then the came up with games ... |
It accepts two parameters, the first is an out parameter - a pointer type, so a referenced variable or a pointer to a variable - the second parameter is an in parameter of the same type but const.
This is strange to me, normalizing is a simple calculation, I would expect the function to have one parameter - the vector ... |
I'm starting out on my first 'proper' game project, and I've inevitably hit a block trying to decide how game components in XNA should communicate.
From previous (Java) GUI programming events, handlers and listeners seemed like the way forward. So I'd have some kind of event bus which accepts event registrations and cl... |
I'm trying to import a script into Blender, and I have the script in my directory and I pushed F8 to reload scripts, but the instructions for running this script say:
In the "Scripts Window" run "Scripts → Export → OGRE Meshes".
I've seen other similar instructions for other scripts. But the toolbar only contains "F... |
I'm having a math brainfart while trying to solve what might be a simple problem. I've got a plane in 3d space (it's actually the face of a 10-sided die):
Coordinates [x,y,z]:
Point_top = [0,0,1]
Point_left = [Sin (2pie9/10), Cos(2pie9/10), 0.1] = [-.5878,.809,.1]
Point_right= [Sin (2pie/10) , Cos(2pie/10), 0.1] = [... |
A little background info: I'm just about to graduate university with a software engineering degree. I have a fair amount of experience with more "serious" programming languages (C++/Java/C#), plenty of theoretical background, and good learning ability. I have minimal experience in web development as a whole (some JSP/J... |
Game Center's GKTurnBasedMatch seems to provide a pretty robust service for handling turn-based games, and OpenFeint appears to have something similar. The problem is, I'd like something like this for the desktop. I was thinking of rolling my own REST-based service on Rails, but after looking at the GameKit documentati... |
I'm comfortable with the basics of building a 2d sprite based game in XNA, where all my objects are simply .png images that I move around.
What things do I need to learn next to be able to develop a 2d game that utilizes an art style similar to Super Laser Racer for example.
Other examples of this style would include ... |
I've made two simple 2D games while following tutorials for the XNA libraries, and I wanted to make something myself, with only the knowledge I gained from these tutorials.
This will be my first serious attempt at game development, as well as my first C#/XNA project. I migrated from Java a week ago. Now, both of the tu... |
I'm creating a 2d sidescrolling shooter, and I'm having a little trouble with collision detection for the bullets. Everything including the bullets are objects with their own polygons / update methods.
The trouble is that bullets go fast, and at 60 frames per second (what the game runs at) a bullet will often skip righ... |
On Xbox360 XHV2 is used for dealing with voice data, and XAudio2 is used for the low-level processing of that data. What is the XHV2 equivalent under Windows, assuming FMOD is used for the low-level audio processing? Previously DirectPlay.Voice was used to facilitate this.
|
Probably the biggest advantage of a hex-based versus square-based map tiling is that the center of each hex has the same distance to all its neighboring hexes. Is there a similar shape that tiles this way in 3D, and an engine that supports such a model?
|
I understand that a wave bank is a collection of .wav data files and that a sound bank is a collection of tracks, each having a .wav with properties. But what is a cue?
|
I'm adding multiplayer to an iPhone game that we have in our company. It's a sort of 'table hockey' game, with a puck and two mallets.
It's a pretty fast game, so I need a smooth experience at both ends. What I'm doing right now is using Game Center, and setting up the iPhone that starts the game as the "server."
So, ... |
I have a velocity vector where my client is at and where its going, and I have the same vector that comes from the server telling where the client should be. Sometimes its a bit different, so I want to interpolate between my current position to the server correct position.
The black arrow is the client velocity vector... |
I would like to build 3d applications that are targeted at old PCs for education. Which 3d engine do you recommend to use? What technology should I use or approach? I would like to avoid Unity3d or any other non-free frameworks, as this work I'm doing is voluntarily.
It's main idea is to make learning fun, using 3d ... |
This is somewhat linked to a question I previously asked concerning the drawing of indexed primitives.
My problem was that I was only drawing one cube when I wanted to draw many. I was told that the problem was that I was overwriting the vertex and index buffers with each new instantiation of Cube and that instead I s... |
Possible Duplicate:
Where can I find fonts for my game?
Does anyone know of fonts that are true type and unicode that can be used in a commercial game for free?
|
I already know many computers today have a GPU that supports DirectX and OpenGL.
But what about computers that don't? Can I write a simple 2D game that does not rely on the GPU, so that it works even on older machines?
Is there a cross-platform C or C++ game library that will let me do this? Ideally, such a library wou... |
I'm trying to understand transformation matrices. Suppose I use the camera from this StackOverflow answer, this is how my view matrix would look:
Matrix.Identity *
Matrix.CreateTranslation(-Position.X, -Position.Y, 0) *
Matrix.CreateRotationZ(Rotation) *
Matrix.CreateTranslation(Scale, Scale, 0) *
Matrix.CreateScale(ne... |
Does anyone have a link to a sample implementation of how to create/handle 4D BRDFs?
I found a few interesting papers and websites,
Szymon's (student, Princeton) BRDF survey, 1997
SIGGRAPH survey
but cannot seem to find any reference implementation to play with. Anyone have any?
Image from Predicting reflectance fun... |
Image reference for the question:
(image from the CG tutorial)
The D3D9 API got us used to world matrices.
However, if you use world matrices, then you have to do an extra matrix multiply in the shader (which ends up being the same for a whole lot of vertices).
Hence the OpenGL convention of concatenating the modellin... |
How do I deploy an Android app without publishing it in the marketplace?
Let me back up a minute. I have short release cycles (2-4 weeks or less), and I would like to release a partially complete, unpolished game on my website so people can try it out and give me feedback.
I believe with Android, I need to go through t... |
Edit:
I fixed the problem by making jumpvelocity the one that is modified and added onto, and yvelocity just equal jumpvelocity * t. This is what I have right now:
if (GUI->Space && grounded){
jumpvelocity = -185.f * 2 / gravity;
grounded = false;
}
if(!grounded ){
if(jumpvelocity < terminaly){
j... |
D3DXMATRIX ColladaFileLoader::processMatrix(daeElement* node)
{
D3DXMATRIX matWorld;
daeTArray<daeElementRef> nodeChildren = node->getChildren();
for (int i = 0; i < nodeChildren.getCount(); i++)
{
string type = nodeChildren[i]->getAttribute("sid");
if (type == "rotationX")
{
string data = node... |
I am sure you guys can definitely help. Some universities, like NCSU, USC, UCSC for their master's, offer courses based on gaming and game development (some call it MS in Computer Science with an emphasis on game development). I am very interested in this field and I want to give it a shot. But since a master's degree ... |
So I have a JFrame holding a JPanel, to which I'm drawing at about 60 FPS. I've been told that "Swing is double buffered by default", but, nevertheless I'm getting massive flickering. At first, I tried modifying the Graphics object from JPanel.getGraphics(), but was not surprised when it flickered (to black, the backgr... |
I have searched the net for resources related to rendering a bloom effect using GLSL, but haven't found anything. Although the tutorial at Philip Rideout's website is a good one, it performs very poorly on my Nvidia GPU.
Can anyone guide me as to how should I approach this problem and build a fairly efficient implemen... |
I'm doing a network implementation of a fast-paced game. I have a puck on bot the server and client side of the simulation. I want to update the client puck position only if they are on the same direction and the server's puck is ahead of the client's puck. If the message comes with a delay and the server's puck is beh... |
I have a question that is driving me crazy because I think it should be fairly easy to find a tutorial on it. I'm currently using XNA and Farseer to create a simple platformer game. I'm about to be done with it but I want my monsters to be smarter. In this case that means that I don't want my monsters to fall off cliff... |
I'm trying to write something I believe is straightforward but wanted to check that I'm doing it right.
All I want is to update the position of a 2D sprite based an acceleration and velocity. I'm using time based modelling so I have time deltas at my disposal. My current approach looks a little like this:
int rotDurati... |
We are a team of 4 trying to develop a browser based MMORPG. Its partially text based in a way like Might and Magic. The world map would be in 3D and actions would be automatically resolved. The game involves a lot of exploring. We are mainly design students and don't have much of a technical background. So our first c... |
I'm currently working on an iOS turn-based client-server game and I am concerned over later performance issues.
How much data per message is too big? I am planning to use JSON to transfer data (and, if possible, gzip it for more compression) and try to send as little as possible to make it work, but is there a figure I... |
I am working on an iOS turn-based client-server game and I am concerned with the reliability of the connection and the length of time it takes to establish the connection.
The game is turn-based but is not asynchronous, so both players must finish their game in one sitting. If one side of the connection is lost, the pe... |
I was researching this and I can't seem to find a concrete answer.
|
I been working in the animation of a 2D platformer game in C++/SDL/OpenGL, and my team and I reach the point where we need to establish that every animation of the player (Walking, Running, etc..) needs a different framerate for our concept, but I use as a guideline the Game Programming All In One as a example for the... |
I'm developing an RPG and I'm at the point where I need to start building an enemy database. There's a couple challenges associated with this and a few solutions I've been considering.
Here's what I need to do in my enemy database:
I have two primary enemy classes I need to represent data about:
A base enemy class that... |
I've been using OpenGL for a short time now- and I'd like some clarification on VBOs.
As I understand it, a VBO is an object stored on VRAM. In immediate mode, to apply a texture we simply bind it and specify the texture coordinates before the vertex coordinates, however it doesn't seem that way with VBOs.
Question 1: ... |
I am developing a globe animation, in which the speed of the rotation changes with the length of the user's drag event.The globe when touched and moved attains positive acceleration,reaches maximum value,rotates there for sometime and starts retarding and comes back to its original position.Can anybody tell me how to d... |
I am developing an android game with box2d and use a fixed timestep system for advancing the physics.
However as I use this system it requires the box2d positions to be interpolates. I read this article
and have implemented an interpolation method very much like the one in the article.
The method seems to work nicely o... |
Using XNA, I made a looping background with several textures (whose widths are over 1024px). There are fewer than five of them. All the pictures are different, held in a list and their positions are looped. When it reaches the end of the loop, it flickers.
In my Update method I do this:
dt = (float)gameTime.ElapsedTim... |
I need to import into UDK a several amount of FBX models (representing buildings) which are composed by various submeshes (walls, windows, roof...). I need to keep the individual meshes (can't use the merge option) but I also need to work with the building as a whole. Do you know if this is possible? How?
Also, is ther... |
The Microsoft.Xna.Framework.Game class has a Services property that allows the programmer to add a service to their game by providing the type of the class and an instance of the class to the Add method.
Now, instead of having to pass an AudioComponent to all classes and methods that require it, instead you just pass y... |
I am designing a game that is working on a classic tile engine, but whose world is generated randomly. Are there existing games or algorithms that do this?
The procedural generation algorithms I have found are never using a tile system...
What would be the best way to generate a whole "world" using a tile system? I am... |
I want to create a game with playfield as shown in the video in OpenGL
www.youtube.com/user/stanfordcs248
I have fair knowledge of OpenGL and I know this playfield can be rendered using several different cubes but that takes a lot of effort. Also it takes away the power of easily modifying the field. One idea that was ... |
I'm using libGDX for an android game; as far as I can tell, it doesn't have an API for blurring.
Reading on Wikipedia, it seems like blur is formed by setting each pixels RGB values to the average of all adjacent values. Which doesn't seem easily possible in libGDX -- setting pixel data.
So my question is simple:
Is it... |
I'm assuming you're an indie developer, doing your own (or getting free/partner-based) artwork. I'm also assuming you have no external pressure driving you forward into new games; you can work on your games as much (or as little) as you want, then move on.
Having said all that, how do you decide how much polish to put ... |
I'd like to render a 3D explosion in 3DS Max but into a sprite sheet. My main problem is that I need to use alpha values instead of the viewport background (which is usually black).
Any ideas how I could do this?
|
I am still learning and I am trying to design the game levels for my first game (a platformer).
I have some straightforward questions because I feel I am on the wrong way.
Should each level have its own class ?
The way I am trying to do this is, when one finishes the first level I set all variables to null that belong ... |
So, I'm working with OpenGL (I'm not exactly sure of the version), and I want to do an old-style lighting setup by essentially drawing a black rectangle over the screen, and drawing white circles over the areas that should be lit. I already have the rectangle and the circles, but I can't figure out how to make it so th... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>frame1.png</key>
<dict>
... |
Is it possible to use Pokemon images, names, elements in a game I would like to make?
Are they still copyrighted, patented, would I get sued?
(Maybe their rights have expired by now, is what I am thinking?)
|
I happened to play around with habbo.com social game portal.
It clearly uses Adobe Flash as platform (if you look into the source code of the HTML page). But when you do right mouse click you don't get the Flash right-click menu popping up!
Does anybody have an idea how this is done?
|
i'm doing a fast paced physics game that is a table hockey. With two mallets and one puck. The game runs on iphone / ipad and i'm doing the multiplayer part through GameCenter.
This is how the network system works. The client wich stars the match, will be settled as the server and the one that accepts the match reques... |
I am creating a game using OpenGL and I want to render the effect of a night sky with a few stars in it.
I want to have a shiny black effect in the sky so that it looks good. Could some one help in how to proceed through it or give a link to a good tutorial?
|
I am creating a game for which I want to render a kind of shiny black metallic surface with some refection property in it. I know that there would be something related to masks involved with it. But somehow I am not able to get started on it.
So could someone give me insight in the matter or give a link to a good tutor... |
I am making a game which has a playing arena which renders a lot of grid of lines. The lines are colored. Now to have a good effect I thought of giving it the tron like effect of glowing lines. Now after surfing the net I came to know that I could achieve that effect using the bloom effect. Now for that I needed to GLS... |
I have a pixel shader that calculates a mandelbrot fractal. It uses the standard formula:
z = z2 + c
I'd like to extend it so the power z is raised by varies. To do this i have the following function:
float2 ComPow(float2 Arg, float Power)
{
float Mod = pow(Arg.x * Arg.x + Arg.y * Arg.y, Power / 2);
float Ang =... |
I want to do full-screen anti-aliasing in OpenGL, and dont want to use the anti-aliasing that is provided by OpenGL itself, since I am building a game and want good effects in it.
How should I proceed?
|
I'm using jMonkeyEngine to develop a game. I'm good at scripting, but math usually goes over my head. I tried the Wiki page for Quaternion, but I was far too confused to figure this out myself :P
My goal
I have a sphere with physics enabled, and I want to have it rotate based on mouse axis movement. I've got listeners ... |
I am rendering sprites at exact pixel coordinates to avoid the blurring effect caused by antialiasing (the sprites are pixel-art and would look awful if filtered). However, since the movement of the objects involves variable velocity, gravity, and physical interactions, the trajectory is computed with subpixel precisio... |
Are there any good IDE's for linux that lets us edit GLSL shaders and visualize their effect?
Note : Shader Designer By Typhoon Labs is a good option but I am looking for alternatives as this software has some issues with Ubuntu 11.10
|
So I understand that Corona allows me to "write once," and deploy on both iPhone and Android. And I understand that I cannot get any iPhone app into the app store without having (at the moment of submission/distribution) an (Intel-based?) mac (physical hardware).
I assume that if I only own PC hardware, I will not be a... |
I'm making a game and want to use vector graphics. I started re-coding it using Cairo and the performance is horrific. So, I'm looking for a different library. It needs to be for C++ and cross-platform (e.g. no Direct2D). There's another question someone asked before like this, but there weren't any suitable answers. T... |
Background
I run a minecraft server where I'm going to design a starter city of fairly large scale. I have a series of things, like rule signs and mob cages, I would like to put in buildings there. The city itself will be extremely large and spread out, preferably up to 1000 by 1000 blocks in size.
The buildings thems... |
I want to make a racing game like Need for speed. And I want to start from very start.
Please tell me the skills, technologies that one should posses while making it.
I am beginner in game development, Although I have good programming skills. I am ready to learn. Please also recommend few good books.
Thanks in advance.... |
If I make a game, what is the best target platform for the most users?
If I don't have an iphone/ipad or android phone, am I not able to make iphone/android game?
I am looking for a platform which I can easily distribute the game for public trial/demo.
|
This question is not focussed on video games but games in general. I went to a boardgame trade fair yesterday and asked myself if there is a way to calculate the fairness of a game. Sure, some of them require a good portion of luck, but it might be possible to calculate if some character is overpowered. Especially in r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.