I have an Android live wallpaper that I suspect is leaking memory, probably either textures or vertex arrays. I'm calling glDeleteTextures on my texture IDs, but don't see any sort of equivalent for my vertex buffers. I'd like to be able to be sure both my textures and buffers are getting unloaded by OpenGL, am i missing something?
Th...
I have two textures and a "blend factor", and I'd like to mix them, modulated by the current color; in effect, I want to use the following shader:
gl_FragColor = gl_Color * mix(tex0, tex1, blendFactor);
I'm using OpenGL ES 1.1, targeting all versions of the iPhone, so I can't use shaders, and I have two texture units.
My best attem...
Hi,
I've got some code which I would like to translate into Opengl ES. I'm not experienced with it however, so here it goes. The original code does a loop like this:
glBegin(GL_TRIANGLES);
for(i=0; i<num_triangles; i++) {
glNormal(...);
glTexCoord2f(...);
glVerted3fv(...);
glTexCoord2f(...);
glVerted3fv(...);
glTex...
I'm developing a game, a big part of this game, is about scrolling a "circular" background ( the right end of the Background Image can connect with the left start of the Background image ).
Should be something like this: ( Entity moving and arrow to show where the background should start to repeat )
This happens in order to allow to...
I have a plan to make a game using OpenGL for 3D world view, and CALayer(or UIView) for HUD UI.
It's easy to imagine performance degrade from mixing them, but the document which mention this impact disappeared: http://developer.apple.com/iphone/library/technotes/tn2008/tn2230.html
I cannot find the document on current version of SDK refe...
Hello,
I have 40 points with (x, y, z) coordinate in my iPhone app. For now I just NSLog them. But I'd like to display them in... 3D!
How can I do that? Do I have to use openGL ES? What are the others possibilities (if there are any)?
I've never used 3D in programming... is this a difficult thing to do?
Thanks !
...
I am trying to choose between implementing OpenGL ES 1.1 and 2.0 for my augmented reality app, which is only available on the iPhone 3GS.
About what we'll be doing:
1 -We are moving to OpenGL because CoreAnimation was exceptionally slow, and we'll be able to create a richer user experience.
2 - Our plans are to create a 3D environment...
hi,
I want to put images from my photo library in to the EAGL view for some further processing. The image that are already in our resources folder will be taken by itself but mltiple or images from photo library can't. So any one knows how to put image on EAGL view in open GLES.
Regtards viral
...
I know that the Apple we use the left top point as 0, 0. but OpenGL use left button as (0, 0), is there any short cuts to convert Apple's coordinate to openGL's one? thz.
...
Hi there!
Is there a way to create a glass cup with OpenGL ES/OpenGl? And if it's possible, what can i read to start creating? Need to get the most realistic view of a glass, for example -
see glass cup image
For simplicity, without handles.
Maybe, anybody has example with sources?
Thanks.
...
I've got basically a 2d game on the iPhone and I'm trying to set up multiple backgrounds that scroll at different speeds (known as parallax backgrounds).
So my thought was to just stick the backgrounds BEHIND the foreground using different z-coordinate planes, and just make them bigger than the foreground (in size) to accommodate, so th...
Hi. I need help on openGL android. I am trying to create a small application which shows texture of four bitmap moving on the screen. Basically the application has 4 bitmaps which are moving one after the other depicting a moving picture. Can somebody help me on this ASAP.
...
I need to display 480 x 320 background image in OpenGL ES. The thing is I experienced a bit of a slow down in iPhone when I use 512 x 512 texture size. So I am finding an optimum case for rendering iPhone resolution size background in OpenGL ES. How should I slice the background in this case to obtain the best possible performance? My ma...
Hello Everyone,
How do I draw a smooth line with a finger slide/touch motion on the iPhone? I have the following code but it is not smooth. It makes corners/turns for example when I try to do a circle. I think I have to use OpenGL. Any ideas? sample code? tutorials?
Thanks!
UIGraphicsBeginImageContext(self.view.frame.size);
[draw...
Im a beginner on iphone OS development.
I followed jeff's tutorial here about hud display in iphone OS
http://iphonedevelopment.blogspot.com/2010/02/drawing-hud-display-in-opengl-es.html
The sample works on the accompanying project with the isocahedron as the background of the HUD and the is working as expected with colors and the text....
I have 2 1024x1024 sprite sheets, one containing several 480x320 background images and another containing a variety of smaller elements as entities and interface. My framerate drops like a rock whenever I enter a scene in which I have to display sprites from both textures (forcing me to re-bind twice per frame, interface texture->bg text...
I've been trying to figure out how to resize the drawing view on eaglview as opposed to the default 320x480 dimension. My Eaglview is attached to a UIViewController. What I really want to do is find out where viewrenderbuffer is calling its width and height parameters from.
In the code below I can see that the backing width and height a...
I have an augmented reality iPhone app that I am converting from Core Animation to OpenGL ES 1.1. I have added code that has been modified from the Apple OpenGL template.
My problem is that my 3D object , when translating along the negative Z-axis (away from the user), appears to disappear into the camera view, until its completely gon...
This is a follow-up of this question on here
http://iphonedevelopment.blogspot.com/2010/02/drawing-hud-display-in-opengl-es.html
It tackles on the HUD (heads up display) which is based on this tutorial >
http://stackoverflow.com/questions/2681102/opengl-es-displaying-hud-display-has-no-color-on-top-of-textured-3d-objects
I wanted to set ...
Hi, I'm quite new to iPhone OpenGL ES, and I'm really stuck.
I was trying to implement shadow mapping on iPhone, and I allocated two 512*1024*32bit textures for the shadow map and the diffuse map respectively. The problem is that my application started to freeze and reboot the device after I added the shadow map allocation part to the co...