game development books and resources

1) OpenGL Textures

22-Sep-12

OpenGL Textures

2) Modelling tools for 3D

22-Sep-12

Modelling tools for 3D

Relationship between texture target and texture name?

OpenGL ES 2.0 Sample Code

How can I debug OpenGL errors?

The output of frament processing is to figure out the target pixels and their characteristics. However before these pixels are written to the framebuffer to become part of the screen they have to undergo number of tests. Does the pixel position in the framebuffer is currently owned by this OpenGL context or Is that controlled by someone else. If the depth testing is on, is this pixel behind another pixel? Is there a stencil active that may block this pixel from showing? These are are called fragment tests. If the pixels don't pass the test they won't be written to the frame buffer.

opengl books and resources

8) what is color sum?

13-Sep-12

How to add the primary and secondary colors of a fragment (pixel)

9) glVertexAttribPointer

8-Sep-12

How to use and what are the arguments for this api. And any additional notes.

What are OpenGL modelling tools?

11) what is FOG?

3-Sep-12

Modifying the color of a pixel/fragment based on how far or near it is in the view

Frame buffers: Color, depth, and stencil. You can find real good explanation of this topic in chatper 10 of the free OpenGL red book

Tell me one more time what the opengl pipeline is...

Tell me about vertex shader

Because OpenGL is stateful, how do you target a specific matrix especially in OpenGL ES 1.x (a fixed function pipeline)? For example we know that when we call glFrustum() it sets up the projection matrix, but the documentation suggests that if takes the current matrix and multiplies with the projection matrix? But there are more than one matrix: many matrices that are model, and at least one more that is a view matrix?

What is a fragment in OpenGL?

Version numbers for OpenGL, OpenGL ES, and GLSL

What are vertex attributes in OpenGL ES?

what are model/object/eye/world/screen coordinates?

OpenGL APIs require two things to work. They need a place to manage the state of the OpenGL like a working memory. This is the rendering context. Then they also need a surface to draw on. The buffers are attached to the surface. Example buffers are color buffer, stencil buffer, and depth buffer.

Setting up and managing these two aspects is the realm of the underlying OS. In OpenGL ES there is a standard called EGL that deals with these integration APIs

Is there an OpenGL GLUT for Android?

What is OpenGL ES: A definition and scope

GLSurfaceView and background!!

Tell me about Depth in OpenGL? and how to hide hidden surfaces.

The order in which you indicate vertices determine the clock-wise or anti-clock-wise orientation of that geometry (such as a triangle or a square etc). As you follow that winding see how a right-hand-screw will advance. The direction of the advance will tell you which surface is facing outwards and which surface is facing inwards.

26) How to texture a cube?

15-Aug-12

vertex shader. fragment shader. Mistakes I made. links to other resource and so on...

What are reserved variable names in GLSL?

What happened to glTexEnvf in GLES 2.0?

How to work with matrices in OpenGL ES 2.0

My triangles are all messed up. Then the mistake boiled down to this piece of code


//6. bottom-triangles
//b1, b4, f3
1,-1,1,		-1,-1,1		-1,-1,0,
//b1, f3, f4
1,-1,1,		-1,-1,0,	1,-1,0

Compiler is fine. Just my triangle! Can you spot the mistake! it is a fun mistake.

Each vertex in opengl can have a surface normal. A surface normal is a perpendicular vector with respect to the tangential surface at that vertex. So if you have a triangulated vertices on the surface of a sphere then the normal at each vertex may not be parallel to each other.

How to run Android applications on the device from Eclipse ADB

OpenGL ES 2.0 is not backward compatible with 1.x

34) what is pixel ownership?

28-Jul-12

OpenGL can manipulate a frame buffer for a screen. The pixels in a window which are controlled by an opengl context belongs to this opengl. If this is overlaid by another window then OpenGL needs to know it doesn't own these pixels.

What is precision qualifier in gls?

36) What is Gouraud Shading?

28-Jul-12

What is Gouraud Shading?

you have the standard input and output variables. You also have some types that are unique to glsl. For example attribute variables that are specific to a vertex. There are "uniform" variables that cuts across all vertices. There are reserved variables, there are built-in variables etc. This page will throw some light on this type of variables.

OpenGL support in the Android Emulator?

39) What are VAOs and VBOs?

27-Jul-12

You see in OpenGL literature the terms VAO and VBO being referred. These are Vertex Array Object and Vertex Buffer Object respectively. A vertex buffer deals with the memory area storing the vertex information. Pure data byte after byte. A VAO, vertex array object, is a structure that describes how opengl should interpret the data that in the VBO.

In es 1.0, I was able to use indexing into an existing vertex buffer in the glDrawElements method. This allowed me to specify only 4 points for drawing a square or rectangle. without the indexing I would have needed 6 points making up 2 triangles. How could I do this in ES 2.0?

41) What is OpenGL GLEW?

26-Jul-12

Nice explanation from opengl.org

OpenGL allows extensions by hardware vendors. OpenGL has a protocol and low level API to discover what these extensions are and the supported functions. Using extensions in your C++ code is - unfortunately - platform specific. The address of the function (function pointer) must be retrieved from the OpenGL implementation (e.g. hardware driver). Under Windows this can be done using "wglGetProcAddress".

GLEW is a common API to write portable code which internally hides the platform specific detail. So you will be downloading GLEW for each platform and the client programs can stay portable as long as the target platform supports a GLEW implementation.

Android now has an excellent Tutorial on OpenGL ES 2.0!!!

How can I create a MVP matrix for ES 2.0 in Android?

How are vertex colors interpolated in OpenGL?

45) OpenGL 2

2-Dec-10

OpenGL

46) opengl 3

30-Sep-10

opengl 3

47) opengl read

16-Nov-09

opengl read

48) this is a demo

23-Jul-09

this is a demo

How can I change the orientation of the android emulator?

What is allowed between two calls to glDrawElements?

Abstracting Texture Renderer (source code)

How can I animate two figures independently?

How can I draw multiple figures

How to draw a regular polygon

56) General Plan

27-Jun-09

General Plan

57) Math calculator

27-Jun-09

Math calculator

how can i scroll my drawing

59) how to draw on a canvas

26-Jun-09

how to draw on a canvas

60) OpenGL 1.5 sample code

21-Apr-09

OpenGL 1.5 sample code

61) OpenGL

6-Apr-09

OpenGL