I'm really curious how the following is done
They seem to achieve real time softish shadows on the iphone which does not have a stencil buffer available. It seems to run pretty fluid here http://www.youtube.com/watch?v=u5OM6tPoxLU
Anyone has an idea?
...
Hello, is there a way to change per fragment fog to per vertex fog on iPad using OpenGL 1.1?
I have tried glHint(GL_FOG_HINT, GL_FASTEST) but the fps is still very low when using fog(fps is more than double without fog)
...
Hello.
I've done some apps on iPhone using Objevtive-C and Cocos2d, and I'd like to start learning 3D.
My first goal is to make a very simple app that:
- Displays a 3D cube in the center of the screen.
- And move the camera around the cube
I want something very simple: no texture, no background.
Where should I start to be able to do th...
Hi I'm developing a game for android using OpenGL es and have hit a problem:
My game loads fine in the emulator (windows xp and vista from eclipse), it also loads fine on a T-Mobile G2 (HTC Hero) however when I load it on my new HTC Desire none of the textures appear to load correctly (or at all). I'm suspecting the BitmapFactory.decode...
Hi all,
Does anyone have an idea what do the mind mapping applications use for drawing: Quartz 2D or Open GL? What would be the best way to implement this kind of application? Any advice is welcomed!
Thanks!
...
I'm trying to get some basic OpenGL-ES with Shaders to run on the iPhone, based on some examples.
For some reason my projection matrix refuses to result in something on the screen. It feels like a clipping plane is set very near but that contradicts with the values I supply. If I render the same scene with an Orthogonal projection matri...
How big of a difference is the description language of Quartz2d to OpenGL ES?
It seems they are similar in description power... except that Quartz is mostly 2d and that OpenGL is out of the box 3d ( but can be made 2d focused ).
Are the mappings from 2dQuartz to 2d OpenGL ES that different? Im sure there must be differences in some sp...
Does anyone have any sample code to how to use DDraw & OpenGL in wince?
I have searched the net and I didn't find anything on how to implement hardware acceleration in wince using DDraw & OpenGL.
Please guide me how to use OpenGL API in wince 6.0 r3 for implementing hardware acceleration.
I want to know the steps regarding how to u...
Fastest 2D frame rate possible with android NDK, my try included, better options available?
I used the NDK and OpenGL ES 2.0 to display a frame as a texture on a GL_TRIANGLE_STRIP.
This was done on a HTC Desire, same hardware as Nexus One.
I tried to load multiple GL_RGBA textures and switch between the textures, because the normal fill...
I'm mapping a texture from my texture atlas to a square on a cube. For some reason, the t axis is inverted with 0 being at the top and 1 being at the bottom. Any ideas why this is happening?
Also, I have to specify the texture coordinates in clockwise order rather than counter-clockwise. I am using counter-clockwise windings. The vertic...
Hi !
Noticed strange thing. If I build & run my GL-ES app on simulator for 3.0 SDK -- frame rate around 30 fps. If I change to 3.1.3 version -- frame rate drops to 4-5 fps.
What happens ?
Thanks
...
I have written a TestSuite to find out how to calculate the rotation angles from the data you get in SensorEventListener.onSensorChanged().
I really hope you can complete my solution to help people who will have the same problems like me. Here is the code, i think you will understand it after reading it.
Feel free to change it, the main...
I am trying to blend textures which have transparent areas:
glEnable( GL_TEXTURE_2D );
glBindTexture( GL_TEXTURE_2D, ...);
glVertexPointer( 2, GL_FLOAT, 0, ... );
glEnable (GL_BLEND);
glBlendFunc (GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
glDrawArrays( GL_TRIANGLE_STRIP, 0, 4 );
Unless I add glDisable(GL_DEPTH_TEST), transparent parts of the t...
I was wondering why the fog i use in opengl es on my android phone isn't transparent when i set the colors alpha to 0. I set the background to transparent and it works fine and the Color class or the toFloatBuffer() method are working fine for my meshes but when i set the fog color to transparent then this fact is ignored. here is the ba...
How to tell if you touched a CCLabel?
The following code obviously does not work well enough because it only tests for point equality. Naturally touch point will not necessarily be equal to the position property of the CCLabel (CCNode). How to I tell if a Touch point has fallen within the "rectangle?" of the CCLabel?
- (void)ccTouches...
I am detecting touches for CCBitmapFontAtlas (just text labels) as shown in the code below. But it seems that touches are only detected slightly ABOVE the CCBitmapFontAtlases? Did something get screwed when converting between coordinate systems?
(*Note objects label1, label2, etc are CCBitmapFontAtlas)
- (void)ccTouchesEnded:(NSSet *)t...
I added a child like this inside of a CCLayer:
[self addChild:object1];
Later on I want to remove that object from the children. Ummm so how do I do that? Thanks.
...
I have a very simple GLRenderer subclass that draws a bunch of polygons on the screen. On my Nexus One with 2.1 installed, I see exactly what I expect. On my G1 with 1.6 installed, I only get the glClearColor displayed. I can alter the color, and see that my onDrawFrame function is at least partially functioning.
I can't fathom a good e...
Hello,
I am doing some work which involves drawing video frames in real time in OpenGL ES. Right now I am using glTexImage2D to transfer the data, in the absence of Pixel Buffer Objects and the like. A below answer suggests that glTexImage2D is always blocking, even if texture object referenced does is not used for any drawing. Is ther...
First is my touchesBegan function and then the struct that stores the values for my object. I have an array of these objects and I'm trying to figure out when I touch the screen if I'm touching an object on the screen.
I don't know if I need to do this by iterating through all my objects and figure out if I'm touching an object that wa...