Programming related to the visual representation of information on computer screens.
1
vote
1answer
55 views
Damage indicator screen overlay
I want to make something already done by a lot of games , which is when I am taking so much hits from enemy red screen drawn like the following , using XNA 4.0:
after it's drawn and I am still alive ...
-4
votes
0answers
62 views
How many commercial games use software rendering? [closed]
It seems many games today use graphics accelerating (e.g. OpenGL) but how many still use software rendering? I mean commercial game wise, how many?
41
votes
6answers
4k views
Which image format is more memory-efficient: PNG, JPEG, or GIF?
Which image format is more efficient to save memory? PNG, JPEG, or GIF?
2
votes
2answers
772 views
Does an indie game developer really need to know graphics programming beyond the basics?
I've been working on a 2D game for the iPhone and learning a lot about game design in the process. I've looked at some of the most popular games for the iPhone ( angry birds, cut the rope, doodle ...
8
votes
1answer
436 views
What are the advantages of tangent space normals over object space normals?
What are the advantages of normals in tangent space to normals in object space for calculation of bump mapping?
6
votes
1answer
449 views
Decal implementation
I had issues finding information about decals, so maybe this question will help others. The implementation is for a forward renderer.
Could somebody confirm if i got decal implementation right?
You ...
1
vote
1answer
54 views
Jogl2 won't accept jogl 1.0 code - GL_LIGHTING and GL_LIGHT_MODEL_AMBIENT cannot be resolved or is not a field?
I'm trying to run my code on jogl 2.0 , for the first time (until now I worked with jogl 1.0) however Eclipse throws to almost every that I have a "cannot be resolved or is not a field" message .
...
3
votes
2answers
95 views
Screen effects and antialiasing
I have been working on a game for a while using glut for basic window creation.
I was rendering to an offscreen buffer so that I could implement various effects like screen bulging, motion blur, ...
2
votes
1answer
1k views
How do I implement a score database in Android?
I making a 2D game for Android using OpenGL-ES technology. It is a space shooting game where the player shoots enemy ships.
I want to keep a track of score for the amount of enemy ships destroyed ...
1
vote
1answer
172 views
Selecting and moving object in OpenGL Gameplay3D Engine
I'm using Gameplay3d as a game engine to develop a simple board game. PEG Solitaire
I've come to the part where I've created a 2D grid for all the movable object, empty locations and also where it's ...
0
votes
2answers
73 views
Problem reseting device when using render target
How can I reset the device when I am rendering to a surface, and then stretching that surface to the back buffer. If i don't change the render target everything goes well, but when i change the render ...
11
votes
5answers
5k views
Complete Math Library for use in OpenGL ES 2.0 Game?
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
...
3
votes
3answers
5k views
OpenGL ES 2.0: Vertex and Fragment Shader for 2D with Transparency
Could I knindly ask for correct examples of OpenGL ES 2.0 Vertex and Fragment shader for displaying 2D textured sprites with transparency?
I have fairly simple shaders that display textured polygon ...
3
votes
1answer
61 views
Matrix Translation Transformation Question
I've been reading a lot about computer graphics lately and because of it I'm building my own math library's for fun. I was reading about Matrix Translation and Homogeneous Coords, and was wondering ...
2
votes
2answers
290 views
Does my 2D OpenGL renderer need optimized?
I've started a game engine for learning purposes. I have successfully gotten an opengl renderer working and I can draw textures of varying sizes to the screen. The way I have done this is by creating ...
1
vote
1answer
217 views
3D format or software that stores a vertex normal
At the moment i'm using .obj file format to store 3D models. It's popular, easy to read and parse. The issue is that it stores sufrace normals for each face. This isn't an issue for me yet, but i'm ...
-3
votes
1answer
246 views
Getting the normals of a hemisphere?
I'm trying to calculate the normal for a hemisphere.
I draw the hemi-sphere by this code:
for(float phi = 0.0; phi < 1.567; phi += factor) {
glBegin(GL_QUAD_STRIP);
for(float ...
0
votes
2answers
95 views
Is it possible to push real-world, real-time data into Unity? [closed]
I'm pretty new to this, and I'm having trouble figuring out where to even look. If there's relevant terminology that'll be google-able, that would be a great help.
Suppose I want to have a monitor ...
0
votes
1answer
84 views
Can I use multiple OpenGL version together
I want to use GLSL but keep my current OpenGL 1.1 setup. The thing is that can I use OpenGL 2.0 shaders on OpenGL 1.1 renders?
1
vote
0answers
166 views
Can I use a shader with 2 different textures in Cocos2D (x)?
We are evaluating a variety of different graphic engines for use in our game and we want to be able to use 2 different textures for many of our sprite maps. One sprite map would be the standard RGBA ...
2
votes
3answers
182 views
How can I load 2D texture data without a GraphicsDevice instance?
We have a client/server architecture for our game with the client being the XNA Game, and the game server is separate and only references XNA. They both use a shared DLL for networking. The game ...
1
vote
1answer
65 views
Dealing with field of view when zooming into a terrain from a height
I'm creating a tech demo featuring a small planet. The problem I'm having is that the planet doesn't really feel like the right "scale" when the camera in down on the surface, I think it could be the ...
1
vote
0answers
51 views
Another Question from the Image Efficiency for Memory Handling
At this topic, "Which image format is more memory-efficient: PNG, JPEG, or GIF?", one of the fellow Game Development community @Panda Pajama told about the complex concept about image memory handling ...
3
votes
2answers
2k views
How many textures can usually I bind at once?
I'm developing a game engine, and it's only going to work on modern (Shader model 4+) hardware. I figure that, by the time I'm done with it, that won't be such an unreasonable requirement.
My ...
0
votes
1answer
178 views
Box2D and Slick2D: Graphics bug [closed]
The bug
The physics ground represented by a horizontal line. The object is stationary, and seems to be pretending that the ground is lower. This is because the center of the Shape is incorrectly ...
10
votes
3answers
894 views
How do I scale down pixel art?
There are plenty of algorithms to scale up pixel art. (I prefer hqx, personally.) But are there any notable algorithms to scale it down? My game is designed to run at a resolution of 1280x720, but if ...
1
vote
1answer
57 views
Drawing sprites messes up my model in XNA4
I have a model which draws correctly in XNA4.
However if I try to add a background image (or any sprite), the rendering of my model is messed up. There are two problems with the rendering
model is ...
0
votes
1answer
114 views
Tile Draw Order
I started working on a tile engine recently and have been trying to get this depth sorting for the tiles right. I am using XNA and the SpriteSortMode.Deferred to get the tiles to sort correctly in the ...
1
vote
0answers
105 views
How to draw a large number of model (identical) with vertex buffer in XNA?
I am facing a problem that many developers as have probably found a solution.
I have a small project with a floor designed with small cubes (100X100).
If I exceed this limit, my game suffered major ...
4
votes
2answers
742 views
How do I get a new license for gDEBugger after the 1 free year?
I downloaded the gDEBugger from gremedy over a year ago, with their one year free license. The license has since expired and their site says that I'll be presented with the option for 1 year free ...
0
votes
0answers
51 views
What could cause dispersed triangles instead of integral model?
So the thing is, I get dispersed triangles instead of model that I'm loading, in this case it's just a cube. It seems as those triangles have no points that connect them. Is there anyone who had this ...
-7
votes
1answer
106 views
develop a game for pc,ps3,ps2.x-box [closed]
What are the subject requirements for develop a game for pc, x-box, ps3, ps2.etc. And what should be the qualification for gaming.
-3
votes
4answers
570 views
Starting to make 2D games in C++ [closed]
I'm fairly experienced with C and C#, but I've only ever created console/windows applications. I'm also experienced with AS3 and I've made some flash games.
I want to make proper 2D games in C++, but ...
13
votes
5answers
2k views
boolean operations on meshes
given a set of vertices and triangles for each mesh. Does anyone know of an algorithm, or a place to start looking( I tried google first but haven't found a good place to get started) to perform ...
5
votes
3answers
1k views
Draw contour around object in Opengl
I need to draw contour around 2d objects in 3d space. I tried drawing lines around object(+points to fill the gap), but due to line width, some part of it(~50%) was covering object. I tried to use ...
9
votes
1answer
178 views
Good resources for learning about graphics hardware
I'm looking for some good learning resources for graphics hardware (and associated low level software). Basically I want to learn more about what goes on underneath the opengl/direcx API layers in ...
0
votes
0answers
81 views
Opengl binding shaders vs binding buffers performance
Quick question for an opengl guru, I'm in the process of building a render queue and can either reduce the number of shader binding or the number of vertex buffer binding. I just want to know which ...
3
votes
1answer
235 views
Understanding normal maps on terrain
I'm having trouble understanding some of the math behind normal map textures even though I've got it to work using borrowed code, I want to understand it.
I have a terrain based on a heightmap. I'm ...
0
votes
1answer
162 views
OpenGLES GLSL Shader attributes always bound to 0
So I have a very simple vertex shader as follows
#version 120
attribute vec3 position;
attribute vec3 inColor;
uniform mat4 mvp;
varying vec3 fragColor;
void main(void){
fragColor = inColor;
...
-5
votes
4answers
1k views
How to implement a 2d collision detection for Android
I am making a 2d space shooter using opengl ES. Can someone please show me how to implement a collision detection between the enemy ship and player ship. The code for the two classes are below:
...
0
votes
1answer
131 views
Objects won't render when Texture Compression + Mipmapping is Enabled
[EDIT: FIXED - Calling setting texture max level fixed that]
I'm optimizing my game and I've just implemented compressed (DXTn) texture loading in OpenGL. I've worked my way removing bugs but I can't ...
15
votes
5answers
1k views
Given a RGB color x, how to find the most contrasting color y? [duplicate]
Possible Duplicate:
Making a symbol appear on any colour
I have to mark a certain item in a way that will make it stick-out in the background. I need it to be surrounded with the color that ...
1
vote
2answers
178 views
Is 2 lines of push/pop code for each pre-draw-state too many?
I'm trying to simplify vector graphics management in XNA; currently by incorporating state preservation. 2X lines of push/pop code for X states feels like too many, and it just feels wrong to have 2 ...
1
vote
4answers
438 views
How to create OpenGL (ES 1.0) texture programmatically?
I need to draw inside a buffer and then upload it as texture to OpenGL. So basicaly unsigned char* buffer and then call to glTexImage2D().
I will be using Marmalade mobile SDK and OpenGL ES 1.0.
1
vote
1answer
86 views
Game window systems and internal frames
I don't know if this is a valid question, but: What kind of window manager do games use which have internal frames (Frames inside frames)? Does this differ between the programming languages (Are e.g. ...
5
votes
2answers
720 views
Sorting objects before rendering
I'm trying to implement a scene graph and in all the articles i've come across there is talk about object sorting. So you'd sort your objects by "material" for example. Now untill i sat down and ...
0
votes
3answers
496 views
graphical interface when using assembly language
I want to learn a framework to use in assembly. I know that's not possible without learning the framework in C first. So I'm thinking of learning SDL in C and then teach myself how to interpret the ...
0
votes
1answer
134 views
How to work with two layers or more in cocos2d?
I want to make a game in cocos2d. I don't know too much about it.
My question is related to communication between two layers or more. For instance, let's say I want a layer with a scrolling road and ...
2
votes
3answers
353 views
Drawing graphics in Java game
I am quite new to game development, so here is a question (maybe a stupid one):
In my sidescroller i have a bunch of different graphics objects that i need to draw (player, background tiles, ...
9
votes
6answers
4k views
LOD in modern games
I'm currently working on my master's thesis about LOD and mesh simplification, and I've been reading many academic papers and articles about the subject. However, I can't find enough information about ...

