(Also asked on the Apple Developer forums)
I am new to OpenGL, so be kind :). I seem to have a rendering issue with OpenGL. My app is supposed to draw a line as the user traces his finger across the screen. So, touchesMoved calls the draw function below and passes a NSMutableArray currentStroke which contains point data.
The issue I am...
I've to make a media player in android which uses OpenGl for 3D graphics....These graphics could be the same as used in Windows Media PLayer background etc. I'm new to OpenGL...
Can you please suggest some tutorials or the approach that i should follow for the same. .. An example using OpenGL in Android wwould be appreciated....
Than...
Hi Everyone,
I'm new to the iPad dev. platform and currently making a terrain roamer demo with OpenGL Es 2.0.
While implementing the skydome, I ran into a really strange problem that I could not solve.
Skydome Implementation:
* I have a low res sphere that uses a cube map indexed by the sphere vertex normals.
* I use 1024x1024 textur...
Edit:ok, sorry, I had a simple programming error, is there a way to delete this question?
I have some compressed textures that are PVR files, but I cant seem to draw them in my iPad application using OpenGL ES.
I can draw PNG files just fine, I know the PVR files are being loaded correctly.
Are there some special OpenGL draw functions ...
I'm making a media player application in android where one part of my screen has a animation which is made in OpenGL (ofcourse with Android/JAVA).....So my screen consists of 2 parts:
1) Left hand side consists of all the widgets (using xml).
2) Right hand side consists of the animation made in OpenGL.
I'm able to make the Gui (xml ...
Hi!
I'm new to opengl-es on android and struggling to get my head around the concept of texturing.
I am looking to produce a tilemap of various difference textures. I understand that it is better to use an atlas of all the combined textures so I don't repeatedly rebind. However I am unsure quite how to then map these textures on to my ...
Hi, I'm trying to use the glBlendFunc, but it's failing on the first call, with the error "unacceptable value specified for an enumerated argument". I've looked at the header, it appears that GL_DST_COLOR is 0x0306 (774) and that is causing the error, since (GL_ZERO, GL_ZERO) works. Any idea why this would fail like this on the iPhone?...
I am writing code that will allow the user to browse through the files on their SD card to locate images and them load them using openGL ES 2.0. This works fine when I had used just an EditText to type in the file path, but now that I have implemented a file browser that makes the exact same call with a String of the file path I get "Cal...
I want to have a textured sphere in OpenGl ES. What is the best way to do this? One option is to create it manually. Another is to create it in e.g. Blender and load it - what file format should I use?
...
I have Win 7 64. Open GL 2.0. In working with the Android download, Dalvik, etc., I apparently also have OpenGL ES 2.0.
An Imagine Technology emulator also has this to say about what it sees on my system:
PVRVFrameSetGlesLibraryPath: C:\my_dir\Bin\libGLES_CM.dll
PVRVFrameSetGlesv2LibraryPath: C:\my_dir\Bin\libGLESv2.dll
vendor/shl: I...
Hello all,
I am new to image processing and also in openGL and CoreImage,coreGraphics Libraries.
I want to create a basic image editing app with these functionalities.
Rotate,crop,resize,scale, along with these filters
Black and white,sepia,night vision,colour dithering.
What is the best approach openGL or coreGraphics?
Any help regardin...
Hii,
I want to make a simple live wallpaper using OpenGL in Android that will draw the textures.
I have develop a simple OpenGL Activity that can work exactly for live wallpaper. But some problems are there like IllegleArgumentException.
I am using GLWallpaperService from earth live wallpaper.
Thanks....
...
I am attempting to replace the Canvas-based rendering system that I already have with the faster opengl-es surface, however, I can't seem to get an openGL renderer to conform in such a way that it acts as 2d field, rather than a perspective view.
My current code for the renderer looks as follows:
@Override
public void onSurf...
Hi all,
I have a byte array of RGB values, just like the contents(without header) of a *.bmp file. What I want to do is, draw the corresponding bitmap on Android, using OpenGL.
It seems that OpenGL ES doesn't have a single API that will do, it true?
If true, how can I do this?
PS: Actually, I can draw it in JAVA code, but it's too s...
I'm trying to draw an image using OpenGL in a project for iPad.
The image data:
A data blob of UInt8 that represents the grayscale value for each pixel in three dimensions (I'm going to draw slices from the 3D-body). I also have information on height and width for the image.
My current (unsuccessful) approach is to use it as a texture ...
I'd like to add an OpenGL ES view as an overlay to my camera view. From this question and its anser I came to know the two field angles of the iPhone 4 rear camera.
How can I properly set the volume view and its perspective in the OpenGL ES view?
Shall I use glFrustum or glOrthof?
(I've seen that gluPerspective takes just one angle as...
Hello,
I'm developing a game for Android, and I made it using OpenGL ES 2.0. Now I want to add support for devices that do not have OpenGL ES 2.0 support, and use OpenGL ES 1.0 instead.
My problem is that I can't seem to detect the right OpenGL ES version. I used the example in the SDK, but it simply returns 0 on my Legend.
This is w...
I'm developing a media player application in Android. I've an animation(Open Gl Surface View) which should run in background to my Activity when song is being played. Like the animation which we see when we are playing Windows Media Player.
How can i achieve the above scenario???
...
Hopefully I can describe my situation clearly as whenever I try to describe it to others on the whiteboard or pen and paper it takes a few attempts :)
Part of my program involves a cart that rides along a rail and the cart runs on two wheels. The rails is a simple line which hills up and down in curves and also flattens out. To create t...
Bad news everyone!
I'm trying to port old Windows game to iPad and I have a problem. Much of all graphics written without hardware acceleration. On Windows it uses LockRect() call from IDirect3DSurface8 class to get colorbuffer from backbuffer and write some graphics data. After this it uses UnlockRect to send our pixel color data to v...