15
votes
1answer
1k views

Rendering meshes with multiple indices

I have some vertex data. Positions, normals, texture coordinates. I probably loaded it from a .obj file or some other format. But each piece of vertex data has its own index. Can I render this mesh ...
16
votes
2answers
6k views

What's “in” and “out” of OpenGL-ES? (Porting from OpenGL)

It seems that all of the documentation I can find about OpenGL-ES says something to the effect of "OpenGL-ES is just like OpenGL, but without a lot of stuff. For example, there's no glBegin or ...
0
votes
1answer
405 views

Problem when going from opengl 1.1 to Opengl-es 2.0

this is my opengl-es 2.0 code : { for (surfnum=0;surfnum<surftotal;surfnum++){ for (i=0;i<triNum[surfnum];i++){ GLfloat *Vertices[] = { triArray[surfnum][i].normpt1, ...
21
votes
3answers
14k views

OpenGL vs OpenGL ES 2.0 - Can an OpenGL Application Be Easily Ported?

I am working on a gaming framework of sorts, and am a newcomer to OpenGL. Most books seem to not give a terribly clear answer to this question, and I want to develop on my desktop using OpenGL, but ...
8
votes
4answers
2k views

OpenGl and WebGL

It's a very simple question to learn webGL programming, do I need firstly to learn openGL programming? any references may help me to start learning webGL?
7
votes
3answers
19k views

ld: symbol(s) not found for architecture x86_64 (Xcode 4) // opengles.o

I'm making an xcode command tool application with external libraries and got some errors. what i tried to resovle them : Build with different compiler remove The GLES folder and add it again Build ...
2
votes
1answer
164 views

Reading from framebuffer GLSL to OpenCV

I'm just trying to feed a cvMat a texture that is generated by fragment shader, there is nothing appears on the screen, I don't know where is the problem, is this in the driver or glreadPixels.. I ...
2
votes
1answer
152 views

Classes store data members in sequential memory?

The short version of this question: Does a pointer to the first data member of a class result in a pointer to all its data members? Discussion: I'm reading some sample code, and this is interesting. ...
1
vote
3answers
219 views

How does glBufferData know which VBO to work on?

Here is the formal declaration for glBufferData which is used to populate a VBO: void glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage); What is confusing, however, is ...
0
votes
4answers
2k views

What exactly is the UP vector in OpenGL's LookAt function?

this is related to The LookAt target location doesn't matter if it is z = 0 or z = 1000 or -1000? I tried gluLookAt(512, 384, 2000, 512, 384, 0, 0.0f, 1.0f, ...
6
votes
3answers
5k views

Writing a portable Java application using JOGL and Android OpenGL

I plan on writing a Java 3D game that will work both on PC and Android. Unfortunately it looks like there is no common OpenGL API for both platforms. Do the APIs differ significantly? Is there a way ...
3
votes
1answer
2k views

porting iPhone openGLES app to OSX?

Developing for the iPhone has been my first experience with objective-c and first in-depth experience with xcode. How difficult would it be to port an openGLES iPhone app to the OSX desktop using ...
4
votes
2answers
2k views

Improve Particle system OpenGL

I'm looking for a way to improve my particle system performance, since it is very costly in terms of FPS. This is because I call: glDrawElements(GL_TRIANGLE_STRIP, mNumberOfIndices, ...
4
votes
4answers
5k views

What are some good graphics programming interview questions? [closed]

What are some good graphics programming interview questions? These could be math questions, OpenGL questions, DirectX questions, shader questions, etc.
2
votes
4answers
4k views

Is it possible to rotate an object around its own axis and not around the base coordinate's axis?

I am following the OpenGL es rotation examples from google to rotate a simple square (not a cube) on my Android App, for example this code: gl.glRotatef(xrot, 1.0f, 0.0f, 0.0f); //X ...

1 2
15 30 50 per page