Programming related to the visual representation of information on computer screens.

learn more… | top users | synonyms

1
vote
0answers
196 views

Batching Homogeneous Render Objects in XNA, 2D Component-Entity Engine?

I've been working on my component-entity engine for about 3 months now, and have managed to get nearly every constituent system working with little effort or compromise. My system has the following ...
-3
votes
1answer
334 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 ...
1
vote
1answer
122 views

How do I read the an environment map CPU side? (Similar to texCube function on GPU)

I need to extract the one pixel from a environment mapping (I already have the 6 textures) using the normal vector. How can I achieve this ? I want something very similar to what texCUBE(link) does ...
3
votes
2answers
320 views

Full screen display mode

Could somebody point me to resources that would explain what full screen actually is? What's the point of it? It seems to be more than just a window that has the client are taking the whole screen.
5
votes
1answer
685 views

Difference between the terms Material & Effect

I'm making an effect system right now (I think, because it may be a material system... or both!). The effects system follows the common (e.g. COLLADA, DirectX) effect framework abstraction of Effects ...
2
votes
3answers
351 views

Optimizing graphics for an iOS flash game

A friend of mine and myself are working on a flash developed iOS (and later Android) puzzle board game. He's a developer and I'm a designer/developer so (no surprise) we have different points of view. ...
2
votes
1answer
3k 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 ...
-5
votes
4answers
3k 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: ...
1
vote
1answer
1k views

Z rotation causing skew Android OpenGL ES 2.0

If I rotate about the X, or Y axis there is no skewing however for a pure 2D game that does not help me. When I try to rotate about the Z axis however the quad I am rendering for the sprite starts to ...
4
votes
2answers
514 views

Reflections based on distance from plane

Let's consider, for example, a surface like the volleyball court, we can see that legs and shoes of the players are reflected, with a blur effect, but body and stadium don't (as each object not near ...
6
votes
2answers
3k views

How to Export Flash Animation Data

I'd love for my partner, the artist, to be able to animate using flash movieclips and timelines. Then I, the programmer, would like to read the raw Flash info and re-program it into my engine of ...
9
votes
1answer
695 views

How to represent cliff faces in terrain?

I'm trying to figure out the best way to programmatically represent terrain in my game. I've been considering using a heightmap (or grid of evenly spaced vertices) to represent the surface of the ...
4
votes
1answer
267 views

suggestion for a “strategy game” like platform to test AI algorithm

I wrote a piece of tricky AI algorithms that simulates animals living in an environment and their food seeking, interacting with each other and especially learning new patterns of lifestyle. now I ...
2
votes
1answer
216 views

text wrapping on a texture applied to a 3D model

How would I create and implement a texture of text that wraps around a 3D model? The texture will just be white and you should be able to add text to it, but I need to create this so that when the ...
4
votes
1answer
560 views

Cross-Sections of 3D Rendered Objects

I am currently trying to look into techniques that allow the calculation of arbitrary cross-sections of a 3D object or rendered volume. However, I have been unable to find much on the topic. I know of ...
5
votes
3answers
5k views

Should I use Game Engines to learn to make 3D games? [closed]

HI i am a software engineering student in his second-last year. I am proficient with C,C++,C# and java programming languages, and being a student of engineering I have studied calculus, vectors etc ...
0
votes
2answers
198 views

Are my lines instanced?

I have a class which "collects" line mesh transformations throughout the update and then draws them in one place by drawing one line over and over again. I'll post the code below. I'm just wondering ...
20
votes
2answers
4k views

How do I create a wide-angle / fisheye lens with HLSL?

What are the concepts that need to be implemented in order to achieve the effect of a wide angle lens of varying extremities? Pseudocode and specific explanation referring to the various stages of ...
2
votes
1answer
584 views

Computer generated 2d graphics for games - how to get started

I've seen a lot of nice 2d games recently, like Geometry wars that have really nice computer generated graphics. I would like to know how is it done so game looks really nice even if it is composed ...
4
votes
1answer
1k views

What is instancing, and how can I update my graphics code to do it?

This question directly follows on from this one: How can I implement a renderer that can draw many kinds of primitives? I have a small amount of drawing code structured in the following way: A mesh ...
0
votes
2answers
99 views

Are objects made out of lines still classified as meshes?

A cube or a sphere is a mesh, but are lines and circles? I'm currently creating a renderer responsible for drawing many different types of object. functions in a namespace called MeshDescription are ...
4
votes
1answer
1k views

How can I create an orthographic display that handles different screen dimensions?

I'm trying to create an iPad/iPhone game using GLES2.0 that contains a 3D scene with a heads-up-display/GUI overlaid on the top. However, this problem would also apply if I were to port my game to a ...
2
votes
1answer
801 views

What C++ features should I know about for a graphics programming job interview?

I really don't want to be boring, I searched a lot but didn't found a focused answer to this question. I wanted to focus on the role of C++ in graphics programming. Can somebody explain, which are ...
4
votes
3answers
674 views

What steps should I take to learn level design/programming? [closed]

I'm still in high school, and I've been playing games for 12 years, and I've always wanted to eventually learn level development and design, and programming. However I'm no good at art and as of now ...
8
votes
1answer
711 views

How can I implement a renderer that can draw many kinds of primitives?

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 ...
22
votes
3answers
7k views

How can I make this style of 2D “glowing” graphics?

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 ...
1
vote
1answer
1k views

How can I draw many objects on screen instead of just one?

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 ...
1
vote
3answers
481 views

Pros & Cons on different game engines [closed]

I've been working with the XNA-Framework(only in 2D) for over a year now. Now I want to try and start a bigger 3D-project. But somehow I have difficulties to decide which engine/Framework I should ...
2
votes
2answers
2k views

How are the graphical effects in the Android game Orbital created?

I would be very grateful if someone could tell me how the graphics (and in particular, the lighting effects) for this game, Orbital, are created. Would it be OpenGL? For some background: I'm new to ...
3
votes
1answer
241 views

Should I use different object types for different kind of 3D meshes?

well... I'm building the animation system of my game engine (the skeletal and skinned animation stuff), and I came to a point where I added so much functionality in the frame and node structures ...
7
votes
2answers
311 views

What techniques could I use to give players the ability to control certain features, e.g. fatness?

I'm working on a tool for character customization (e.g. starting from a base model, a player can control his fatness), so I'm looking for ideas, techniques or other regarding this topic. After some ...
1
vote
4answers
536 views

How can I support scrolling when using batched rendering for my tiles?

I have tiled map 100*75 and tiles are 32*32 pixel.I want to use batching for performance .I don't figure it out , because of my game needs scrolling and every frame i draw 22*16 tiles (my screen is ...
2
votes
2answers
974 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 ...
4
votes
2answers
628 views

Material vs Material Pass

I am trying to figure out the difference between a "Material" and a "Material Pass" (in theory). Is it basically that a Material will have multiple "Material Pass"'es, along with a name. Then the ...
-2
votes
2answers
151 views

What are some good mobile devices (phones, tablets, etc.) for tinkering?

I'm looking for a good coder's device to experiment with graphics programming. I'm sure a lot of you must have favorites. It'd be a great help if we can compile a list of these devices. Just to be ...
4
votes
1answer
416 views

Suggestions for implementing a dynamic 2D level

I am working on a game that needs a level that is completely generated. Currently my approach is to draw textures for the levels pixel by pixel during the game (in XNA with SpriteBatch). This is too ...
3
votes
1answer
504 views

Simulating a 2D rope from a top down perspective

I was wondering if anyone could point me to any resources and/or explain how to properly simulate a 2D rope from a top down perspective? I found a game that has the exact mechanic I'm looking for... ...
6
votes
3answers
3k 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 ...
10
votes
3answers
794 views

Drawing particles as a smooth blob

I'm new to game/graphics development and I'm playing around with particles (in 2D). I want to draw particles close to each other as a blob, just as liquid/water. I do not want to draw big circles ...
0
votes
1answer
390 views

What maths should I learn for game programming, and what aspect of programming does it relate to? [duplicate]

Possible Duplicate: What math should all game programmers know? Obviously a good knowledge of maths is essential for good programming, my maths isn’t the best ( I didn’t pay attention in ...
5
votes
4answers
820 views

How to make game appear to run faster?

I believe I read somewhere that there is a technique which will make games appear more smooth than they are. I believe it is some visual trick, but I don't remember which one. (It is be something like ...
-2
votes
3answers
308 views

Having a hard time finding a graphic engine programmer [closed]

I'm looking for a graphic engine programmer that knows both OpenGL and software rendering code to hire for a very short period (2 days). It's urgent and I'm willing to pay a very high amount of money. ...
6
votes
2answers
949 views

OpenGL 2 and back vs 3 and forward: What are the key differences for 2D graphics?

OpenGL contexts before and after OpenGL 3.0 are rather different. So far I've really only worked with buffers on either side anyway, I do know the most notable difference is lack of Immediate Mode. ...
2
votes
3answers
493 views

How to find the bottleneck of the graphical pipeline

I've been wondering about this issue for a while. How to find the bottleneck of the graphical pipeline. Recently I've been using a program to draw massive amount of polygons in a simple scene with ...
1
vote
1answer
3k views

OpenGL 3D Camera

And here I am again, looking for help with my OpenGL camera once again. This is starting to get embarrassing. Anyway, here's the deal: I think my OpenGL First Person free roaming camera is starting ...
8
votes
1answer
859 views

Any good books on graphics programming?

I've been looking for a book that takes a bottom-up approach for graphics programming. So something that starts with 2d filtering, maybe moving into normal mapping, then ambient occlusion, etc. I ask ...
14
votes
4answers
4k views

Real time shadow casting in a 2D isometric game

I'm writing a small 2d isometric engine in C++ and I'm trying to implement real time shadow casting. I followed a simple approach described on this page and here is the result (light is located at the ...
6
votes
1answer
1k views

Rendering 2D grass

My current project, using Java and OpenGL, has a fairly standard overhead tilemap in the style of the Zelda games. I'd really like to add "real" grass to the grass tiles so that there are actually ...
3
votes
1answer
113 views

connecting multiple anti-aliased lines together

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 ...
1
vote
2answers
326 views

Surface of Revolution with vertex shader

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 ...