opengl-es

How to use OPENGL API in wince 6.0 r3 platform builder

Hi All How to use the following interface in wince 6.0 r3 for implementing hardware acceleration for graphics in silverlight IRenderer ICustomSurface ICustomGraphicsDevice Thanks in Advance ...

Changing texture brightness on Android in Opengl-es

Hello, Firstly I must say I'm green as grass in opengl subject. I'm writing simple 2-d game for android using opengl-es. I use GL11Ext.glDrawTexfOES() to draw the textures (just like in one sample code named 'sprite-method-test'), and gl.glColor4f to color them (and set transparency). But I'm completely helpless if I need apply some bri...

OpenGL ES rotation in fixed coordinate system

Hi, I'm having real trouble finding out how to rotate an object arround two axes without changing axes orientation. I need only local rotation, first arround X axis and then arround Y axis(only example, it doesn't matter how many transformations arround which axes) without transforming the whole coordinate system, only the object. The p...

OpenGL and layouts

I'm using OpenGL to render a game view in my android application. The game is turn based and I wish to add some buttons to the interface. I'd prefer to use standard Android widgets, structured in an XML-generated layout (or, if I have to, a hardcoded layout) and put the OpenGL view in its own window as part of that layout. So in regards...

iPhone OpenGL ES

Hello, Since I'm not familiar with iPhone development I'd like to know whether it is possible to use OpenGL ES1.0 on the iPhone 3gs rather than 2.0. I'd like to share a code base across different mobile platforms and not having to deal with the programmable pipeline from OGLES 2.0 could speed up an initial build. Update -- I'm not us...

Is it better to use GL_FIXED or GL_FLOAT on Android.

I would have assumed that GL_FIXED was faster, but the iPhone docs actually say to use GL_FLOAT because GL_FIXED has to be converted to GL_FLOAT. Is it the same on Android? I suppose it varies by phone, but what about recent popular ones (Nexus One, Droid/Milestone, etc.)? Bonus points: This appears to be completely undocumented (e.g. s...

Configuring an offscreen framebuffer fails the completeness test

I'm trying to create an offscreen framebuffer into which I can do some OpenGL drawing, and then pull the bits out manually. I'm following the instructions here, but in step 4, status is 0 instead of GL_FRAMEBUFFER_COMPLETE_OES. If I insert a call to glGetError() after every gl call, it returns 0 (GL_NO_ERROR) every time. But, the valu...

Which parameter to pass to glGet for getting current framebuffer in OpenGLES iPhone.

I know to use glGet to get various parameters. I need to know how to get the current GL_FRAMEBUFFER_OES and get the GLuint type framebuffer id. I need to use renderToTexture. This will make one of the classes code easier when switching back to normal framebuffer. ...

Set Renderbuffer Width and Height (Open GL ES)

I'm currently experiencing an issue with an Open GL ES renderbuffer where the backing and width are are both set to 15. Is there any way to set them to the width of 320 and 480? My project is built up on Apple's EAGLView class and ES1Renderer, but I've moved it from the app delegate to a controller. I also moved the CADisplayLink outside...

OpenGL ES 2.0 and glPushMatrix, glPopMatrix

Does OpenGL ES 2.0 still support glPushMatrix and glPopMatrix? I'm currently using these in the following way: glPushMatrix(); glTranslatef(xLoc, yLoc, 0); [myTexturePointer drawAtPoint:CGPointZero]; glPopMatrix(); I'm asking because I've read a few things about 2.0 "removing the matrix stack from the spec". Since I'm relatively new...

Open GL ES 1.1 and iPhone games

Will iPhone games that draw 2D textures like this: glPushMatrix(); glTranslatef(xLoc, yLoc, 0); [myTexturePointer drawAtPoint:CGPointZero]; glPopMatrix(); work with newer iPhones (that support OpenGL ES 2.0)? I'm asking because I just learned OpenGL ES 2.0 doesn't support glPushMatrix etc. Cheers! ...

Making a grid on iPhone using Opengl

I'm trying to make a grid similar to what you would see in these geo games(geoDefense/geometry wars). I'm wanting to apply separate transformation matrixes to each to create different effects. So, it makes since to me that I need to draw each square separately to that I can apply a different transformation to each one. The problem I'm ...

How to draw multiple arcs in openGL

I had a mutable array of size 15. The array has different radius values. I need to divide the circle into 15(array size) divisions And draw each arc with the radius from mutable array. ...

Canvas 3D drawing using both 2D and 3D context

Since the webgl/opengl doesn't support text drawing, so it possible to draw 3D object using 3D context and text drawing using 2D context ? ...

OpenGL ES functions not accepting values originating outside of it's view

I've been unable to figure this out on my own. I currently have an Open GLES setup where a view controller both updates a game world (with a dt), fetches the data I need to render, passes it off to an EAGLView through two structures (built of Apple's ES1Renderer), and draws the scene. Whenever a value originates outside of the Open GL vi...

Texture repeats even with GL_CLAMP_TO_EDGE set [FIXED]

Hi, i'm trying to put a translucing texture on a face which uses points 1 to 4 (don't mind the numbers) on the following screenshot Sadly as you can see the texture repeats herself in both dimensions, I tried to switch the TEXTURE_WRAP_S from REPEAT to CLAMP_to_EDGE but it doesn't change anything. Texture loading code is here : gl.gl...

Android dev platform supporting OpenGL ES 2.0: Where to buy?

I plan to port some camera and multimedia algorithms and functionality on a Qualcomm Snapdragon platform running Android. I need OpenGL ES 2.0 acceleration for many algorithms. Which platform is the right one? Also, where can I purchase this? The Android dev platform on Google's website supports on OpenGL ES 1.x Thanks for any input....

How should I structure my iPhone OpenGL ES 1.1 game?

I am building an iPhone OpenGL ES 1.1 game. I am using the OpenGL ES template provided by xcode. I am only using the ES1Renderer. I've coded some basic touch actions the user can take, and I've begun to think about the overall structure of the code. All I'm really doing is using C in the ES1Renderer.m for my entire game state. I have an...

OpenGL 2D editor ?

I want to draw different 2D objects in OpenGL for example a path/Road ,is there any program i could draw them using a GUI then transfer them to points so i could use them in my program ? ...

Problem trying to draw a plane in OpenGL-ES iPhone

Hello everyone. I would like to say that my OpenGL-ES experience is very limited and that I've been searching for an answer without success. I'm trying to draw a textured plane with the following code const GLfloat spriteVertices[] = { -1.0f, -1.5f, 1.0f, -1.5f, -1.0f, 1.5f, 1.0f, 1.5f, }; glVe...