Tagged Questions

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

learn more… | top users | synonyms

4
votes
2answers
927 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 ...
11
votes
1answer
2k 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?
2
votes
4answers
669 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.
0
votes
1answer
336 views

How to select an image on the J2ME Canvas

I am working on J2ME. I have got a canvas, with a layout of a Checkers board. At the position of pieces, I have placed images. The point at which I got stuck is, how to select/highlite a piece's image ...
0
votes
1answer
399 views

Is it possible to extract textures or sprites from compiled game files?

For instance, every map in Portal has what appear to be sprites over a texture indicating the obstacles you'll face (see screenshot). Are these resources compiled into the source as byte code, or is ...
6
votes
2answers
7k 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 ...
9
votes
2answers
2k 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 ...
2
votes
3answers
282 views

Why Inverse Transform the Ray when doing Transformation?

I am adding 3D affine transformations to my ray tracer, and it seems all the literature on the web recommend inverse transforming the ray instead of transforming the 3D objects. Why is that? There ...
5
votes
1answer
2k views

GLSL default shaders

I've been arming my engine with error checking code. I'll try to describe this situation to my best abilities. Whenever i load a shader and there's an error (file doesn't exist, compilation error, ...
0
votes
2answers
841 views

GLSL shader compilation

When i'm compiling a shader does it have to be complete? Can i use glCompileShader on a shader without a main() function? The OpenGL reference documentation has a nice writeup on program linking ...
0
votes
1answer
189 views

handling buffers in OpenGL

I'm reading through the OpenGL docummentation for version 3.3 core. I'm having issues understanding proper buffer deletion. ATM i have an object that loads itself into OpenGL memory in the ...
1
vote
1answer
330 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 ...
1
vote
0answers
200 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
350 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
126 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
347 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
747 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
356 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
531 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
4k 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
765 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
272 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
218 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
589 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
200 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 ...
21
votes
2answers
5k 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
601 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
841 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
710 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
738 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 ...
24
votes
3answers
8k 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
497 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
247 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
316 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
537 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
1k 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
663 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
152 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
426 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
510 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... ...
7
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 ...