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

learn more… | top users | synonyms

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
114 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
327 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 ...
0
votes
1answer
363 views

Associating materials and primitive

I'm trying to find a way of setting any kind of material class on any kind of primitive class (all the material classes have a base material class, same goes for the primitive classes). What I mean ...
2
votes
2answers
282 views

Are there any issues with not drawing to all render targets when using MRT?

Lets say I set 2 render targets: device.SetRenderTargets(color, depth); And then half my draw code only outputs color and not depth. This works fine on the PC and produces the expected results ...
5
votes
4answers
817 views

How would I go about implementing a globe-like “ballish” map?

I am new to 3D development and I have this idea of having the game world like our globe is - a ball. So, there would be no corners in the map and the game is top-down RTS game. I would like the camera ...
3
votes
1answer
837 views

Triangle Strips and Tangent Space Normal Mapping

Short: Do triangle strips and Tangent Space Normal mapping go together? According to quite a lot of tutorials on bump mapping, it seems common practice to derive tangent space matrices in a vertex ...
2
votes
2answers
324 views

I'm looking for a paper from Teknikus.dk

I'm looking for this great paper about Verlet integration: http://www.teknikus.dk/tj/gdc2001.htm I've found this link on many websites, forums, blogs, everyone is recommending it ! The website is ...
4
votes
2answers
791 views

Question about separating game core engine from game graphics engine

Suppose I have a SquareObject class, which implements IDrawable, an interface which contains the method void Draw(). I want to separate drawing logic itself from the game core engine. My main idea ...
6
votes
1answer
503 views

Achieving certain rendering styles

I'm trying to assess the difficulty of creating a rendering style that is more like the game Okami and the Quake mods (as shown on this page...search for 'okami','quake npr'). Here's a better page ...
2
votes
3answers
377 views

Blending animations for more character movements

I am making a hack n slash 3rd person game, and I want the character movements to be more dynamic not like fighting games where you have a moves list. I want to animate tons of different animations ...
3
votes
3answers
7k 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 ...
2
votes
2answers
979 views

OpenGL ES 2.0: Picking Individual Polygon Sprites from within VBO

Say, I send 10 polygon pairs (one polygon pair == one 2d sprite == one rectangle == two triangles) into OpenGL ES 2.0 VBO. The 10 polygon pairs represent one animated 2D object consisting of 10 ...
6
votes
2answers
3k views

OpenGL ES 2.0: Using VBOs?

OpenGL VBOs (vertex buffer objects) have been developed to improve performance of OpenGL (OpenGL ES 2.0 in my case). The logic is that with the help of VBOs, the data does not need to be copied from ...
5
votes
4answers
2k views

The recommended road map to be a good graphics/game engine programmer

I am a computer science student and I am developing with C/C++ and Python and I want to begin learning graphics tools to start developing with game engines, especially the Blender Game Engine. So what ...
12
votes
5answers
8k views

Complete Math Library for use in OpenGL ES 2.0 Game? [closed]

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 ...
25
votes
4answers
15k views

Vertex Array Object (OpenGL)

I've just started out with OpenGL I still haven't really understood what Vertex Array Objects are and how they can be employed. If Vertex Buffer Object are used to store vertex data (such as their ...
6
votes
2answers
620 views

OpenGL or OpenGL ES

What should I learn? OpenGL 4.1 or OpenGL ES 2.0? I will be developing desktop applications using Qt but I may start developing mobile applications in a few months, too. I don't know anything about ...
14
votes
2answers
3k views

Creating an electricity/lighting/tesla coil effect in a 2D XNA game?

I'd like to create beams of electricity between two points very similar to this video: http://www.youtube.com/watch?v=eMJ8-56L3Lc. The effect is so dynamic, with varying lengths and pseudo-random ...
4
votes
1answer
1k views

How are potentially visible sets (PVS) determined in state of the art games?

As I understand it, potentially visible sets (PVS) are used to determine 2 things; 1. which objects are inside the camera's view volume 2. which objects are not occluded (hidden) from the camera's ...
53
votes
8answers
6k views

2D graphics - why use spritesheets?

I have seen many examples of how to render sprites from a spritesheet but I havent grasped why it is the most common way of dealing with sprites in 2d games. I have started out with 2d sprite ...
3
votes
3answers
877 views

Can you sync screen update on vertical retrace with OpenGL?

In OpenGL, is there a way to ensure I get exactly, no more nor less, 60 (or whatever rate my monitor is set for) frames per second? Of course given that the new frame can be calculated in less than ...
7
votes
5answers
1k views

Drawing very large slowly rotating planets

I'd like to draw very large (~500 px) graphics of planets slowly rotating. These graphics are meant to impress. What's the best way of doing this? I don't have experience with any particular 3D ...
3
votes
2answers
1k views

3D camera implementation

I've been bashing my head against the concept of a 'camera' for my 3D world for some time now, and I'm not sure I'm doing this right anymore. Maybe I've been working on this for too long and have ...
15
votes
4answers
2k views

Effects for Programmers [closed]

Does anyone have any good resources for creating special effects, aimed at programmers. I'm not specifically interested in particle effects, but broader things like: Fullscreen effects, blur, depth ...
3
votes
2answers
490 views

When constructing an orientation matrix, are the rows of the matrix the axis?

When constructing an orientation matrix, are the rows of the matrix the axis? The matrix is row-major and I'm multiplying vectors on the right (Mv). So, the matrix looks like r0c0 r0c1 r0c2 r1c0 ...
3
votes
2answers
302 views

How do you transform a vector to use another objects orientation?

I want to take a vector that is using world coordinates and position it using the orientation of an object. So, if the direction of the object is the z-axis, and the vector is (0,0,1), then the ...
13
votes
1answer
699 views

Is there any performance benefit to sharing shaders between programs?

OpenGL allows you to share the same shader between multiple programs. Aside from saving small amounts of memory and a shader handle, are there any GPU-side performance benefits to doing this?
6
votes
6answers
676 views

Are there important cases when one needs to know how to program sort algorithms in game programming?

Well I already read a little about sorting algorithms on wikipedia, the subject seems vast, especially when dealing with some cases where some algos are faster than others. That might need some quick ...
3
votes
3answers
833 views

What do you need to know in C++ before starting to program with DirectX

I was wondering what do you need to know in C++ before starting to program with DirectX? I have only been programming in C++ (more for 2D games using SDL and learning the basics) for just over a ...
2
votes
1answer
390 views

ATI driver bug and rendering to a texture 2d array in OpenGL

I am trying to render to a texture2Darray in OpenGL, with a similar setup as descriped in this post. My question is, if anyone has gotten this to work on ATI hardware? Or is there still a bug in the ...
3
votes
4answers
2k views

What's wrong with this OpenGL model picking code?

I am making simple model viewer using OpenGL. When I want to pick an object OpenGL returns nothing or an object that is in another place. This is my code: GLuint buff[1024] = {0}; GLint ...
-5
votes
2answers
1k views

How to Make A Fast Graphics Engine? [closed]

Assuming I were to develop a graphics engine for a modern PC game that used only DirectX or OpenGL, which techniques could I use to make sure it ran quickly? Edit: I'm looking for any approaches ...
13
votes
2answers
16k views

OpenGL ES 2.0: Setting up 2D Projection

This article describes in general, how to draw sharp OpenGL 2D graphics, using fixed function pipeline. http://basic4gl.wikispaces.com/2D+Drawing+in+OpenGL Because OpenGL ES 2.0 has some ES 1.x ...
14
votes
1answer
3k views

How do I render a mirror or other reflective surfaces?

I just wondered how to create a mirror within a 3D game? My suggestion is/was to trace rays, hitting the "mirror" object then drawing a picture of a second cam onto the "mirror" object which is ...
6
votes
2answers
533 views

What will AMD Fusion or likewise hybrid CPU/GPU will change for the 3D programmer ? Are they potentially faster?

Since the early days of accelerated graphics, programmers were obligated to use hardware-supported libraries like directX or OpenGL. If we wanted to explain someone what happened by introducing a ...
6
votes
3answers
2k views

How to do this sprite motion blur?

Some of you may know fraxy... Basically, I was watching this video: http://www.youtube.com/watch?v=uL7zWdDCtOE And there are some times where some sprites spin really fast (4:00 mark for example), ...
14
votes
3answers
576 views

Solids as high viscocity Liquids

A friend of mine and I were discussing different idea for allow materials in a world to be destroyed in a very piecemeal fashion and he proposed the idea of representing solids as very viscious ...
2
votes
2answers
466 views

Help making a visual transition with pygame and NumPy

Perhaps this could be better answered on Stack Overflow, but I thought it would be worth posting here. Right now I'm trying to make visual transitions with pygame's surfarray module which uses NumPy. ...
10
votes
6answers
6k views

LOD in modern games [closed]

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 ...
3
votes
4answers
762 views

How do you make use of all texture units on today's graphics cards?

I saw a review of the GeForce GTX 460 graphics card. It has 56 texture units. I'm not that knowledgeable about graphics effects. But, the ones I know use around 3 or 4 texture units. In this ...
8
votes
3answers
1k views

What's a good data structure solution for a scene manager in XNA?

I'm playing with XNA for a game project of myself, I had previous exposure to OpenGL and worked a bit with Ogre, so I'm trying to get the same concepts working on XNA. Specifically I'm trying to add ...
16
votes
4answers
1k views

What should every graphics programmer write [closed]

I've seen this question on SO, but here i want it to focus on GFX. So in your opinion what applications/features should every aspiring GFX programmer write/change to get better? Community wiki since ...
14
votes
5answers
4k 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
6answers
2k views

Algorithm for drawing asteroids from, er… Asteroids game?

What would the algorithm be for generating/drawing the asteroid shapes from the original Asteroids game? Is it even an algorithm? Or would they be hard coded shapes? Here is a screenshot to jog your ...
11
votes
7answers
3k views

Fastest way to create a simple particle effect

I am looking to the fastest way to create really simple particle effect that will be spammed like hell on the game... Basically, my game looks like a vectrex game, made mostly of lines... I want to ...