opengl-es

Play video on iPhone using OpenGL ES?

Hi All, Can I play a video using OpenGL ES on iPhone? I dont want to use MPMoviePlayController class (because default controls also appears on the screen). Thanks Saurabh ...

How to do something like Photoshop's screen Blending with glBlendFunc (OpenGL ES 1.x)?

I have a simple one channel (8bit) bitmap with luminance data only, and I want to blend it with the existing framebufer like Screen blending mode does it in Photoshop. So the source's white pixels (255) should result white, source's 50% gray pixels (128) should result the framebuffer pixel enlighted by 50%, and source's black pixels sho...

Flip Y-axis in OpenGL ES?

I'm attempting to draw in orthographic mode with OpenGL ES, and the point (0,0) is in the lower-left corner of the screen. However, I want to make it be in the upper-left hand corner. Here's where I'm setting things up in my Android app: public void onSurfaceChanged(final GL10 gl, final int width, final int height) { assert gl != ...

Learning OpenGL ES 2.0, Coming From 2D

My new job has me moving from a 2D graphics environment (old job) to a 3D environment using OpenGL ES 2.0. I'm looking for hints, book suggestions, awesome tutorials, and possible test environments or OpenGL ES 2.0 emulators to help me make the jump. I have basic familiarity with OpenGL ES 1.X's fixed function pipeline, but I'm complete...

glGenFramebuffersOES vs glGenFramebuffers?

I am starting out with OpenGL ES. The example code that I am reading has a lot of functions whose names end in OES. What does the OES suffix mean? The non-OES counterparts have man pages but I cannot find any documentation on the *OES functions. Would it be okay to use the non-OES man pages as a reference? ...

Iphone + OpenGL ES + Blender Model: Rotation by Touch

I'd like to have a 3d object inside an iPhone UIView that can be rotated by using the touching events (swipe with a finger maybe). Where shall I start looking at? I guess OpenGL ES might be useful to do this, but I know nothing about it and I do not wanat to go deep inside OpenGL Programming ( studiying physics, rotations, quaternions et...

Android + OpenGl + Blender, is possible?

Is possible uses Blender (or another tool) to make easy the job in works with android+opengl? Thanks, Celso. ...

preventing zooming at some limit

Hi friends In my ipad openGL based application I am drawing a 2D and 3D object and rotating it according to the user's finger motion....On pinching the screen user is enable to zoom those objects...But what I want is to prevent zooming the object at some limit, say more than 2x of the object size user cannot zoom in and user cannot zoom...

iPhone cost vs. benefit - OpenGL ES 1.x vs 2.0

I'm not sure if this question has been asked already, my stackoverflow-fu has failed me. So I'm building an OpenGL-ES-based iPhone game and pretty much all of the examples I've found out in the wild are on OpenGL ES 1.x. Which is fine because at least I'm (re)learning a lot about OpenGL in general. Now that newer devices support OpenG...

What is the correct order for a series of OpenGL ES translations and rotations to output things?

I know the camera is at 0,0,0 and I need to rotate the world around it, but I'm getting confused as to what order to do translations and rotations. If have a theoretical x,y,z coordinate system where the camera is at cx,cy,cz and it's oriented to cox,coy,coz and I have a cube which sits at bx,by,bz oriented to box,boy,boz then what seri...

How to call matrix palette API

I want to use matrix palette API(Like OpenGLES1.1 extension API GL_OES_matrix_palette) on mac(XCode), linux(CDT) and windows(VC++). But, those API was not able to be found. And I do not want to use shader. (Only fixed functions) ...

color array handling with openGL

Hi guys I am developing an ipad app with openGL. In my app basically I am drawing a basic shape i.e 3d cube, which can rotate according to user's finger motion. Now I am stuck on coloring part of this cube. I want user to choose surfaces of his choice to color this shape. So what I am trying to do is...I am changing the array for glCol...

iPhone OpenGL ES Contexts and Framebuffers

I'm attempting to setup a framebuffer properly in order to support depth and correct perspective. I'm using the OpenGL ES Application template in XCode and I have been following the guidelines as listed here: http://developer.apple.com/iphone/library/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/WorkingwithEAGLContexts/Wor...

identify the surface of 3d cube

Hi guys I am developing an iPad application which just drawing a 3d cube. User can rotate it with finger motion and can zoom in/out with pinching it. Right now I am coloring whole cube (every surface) at same time. Now if I want user to color each surface of cube separately, means user will tap one surface and it will color that surfa...

app running on simulator but not in ipad..!!!

Hi guys, A'm stucked with a very strange problem.....really cant get how to come out with that..!! I am developing iPad application in which I am drawing a 3d cube with openGL programming for ipad....Everything is fine....I drawn the cube and also colored it with different colors....This all things I have tested on simulator, everythin...

iPad OpenGL animating texture vs uiimageview

I have a sequence of 24 images that I need to animate on the iPad. The images are full screen - 1024x768. I currently have them displayed using an UIImageView, however there are some issues If I use [UIImage initWithContentsOfFile] to load my images, then the sequence displays very slowly the first time they are displayed, but smoothl...

OpenGL died when I upgraded to OS4 an iPod Touch 2G device.

So.. basically, at work I'm developing a game and now I'm testing OS4 in all kind of devices, there were some problems but so far so good, that was until I deployed the game on a iPod Touch 2G... now ALL OpenGL are not updating, the game doesn't crashes, but, is like the renderer is doing nothing.... This is only happening with OpenGL s...

What are some good graphics programming interview questions?

What are some good graphics programming interview questions? These could be math questions, OpenGL questions, DirectX questions, shader questions, etc. ...

OpenGL or Rasterizer for playing SVG

I am planning to write a SVG player. To have the animation run at 20 frames/second I want to generate images at that rate and throw it at the screen. Now to do this what would be a better option, whether to convert the SVG into a OPenGL sequence or just rasterize the SVG into a image buffer directly, I am no expert on OpenGL, neither am ...

GLfloat handled differently by OpenGL ES iOS and OpenGL OS X?

First some context, I'm using OpenGL/ES exclusively for 2d drawing (eg. glOrtho(0, width, 0, height, -1, 1);). I'm drawing arrays of vertices with glVertexPointer()/glDrawArrays() On OS X vertex coordinates using GLfloat represent exact pixel coordinate values. On iOS I have to "scale" those same GLfloats using the following function (re...