Hi,
I was just have an idea of creating a card game and I was just thinking whether to use OpenGl or CoreAnimation.Can you please tell me whether it would be a bit of a overkill to use OpenGL for s 2D card game.Thanks :)
...
I tried to draw a model with 197 polygons but i have strange black pixels on it:
When I run the code in the iPhone Simulator, it shows well without those black pixels, but on the device I have that problem.
I set perspective:
const GLfloat zNear = 0.01, zFar = 1000.0, fieldOfView = 45.0;
GLfloat size;
glEnable(GL_DEPTH_TEST);
glM...
Hi everyone!
So I've got my particle system up and running and it looks great as long as the background is dark. My problem is that I need to render the effect on light colored backgrounds to. I've been trying lots of different settings to glBlendFunc but can't figure out how to get it working. My current blending is glBlendFunc(GL_SRC_...
This is a question about some openGLES spookiness on iPhone.
I've noticed that the color of pixels on device and the color of pixels in simulator vary slightly. For example, a green pixel might be (0,241,0) in simulator and (0,239,0) on device. This wouldn't be a big issue normally (to the naked eye they look exactly the same) but I'...
Hey Guys,
So I'm starting to work with openGL, been following the tutorials over at Jeff LaMarche's blog and I've run into a problem when trying to draw a square using the GL_TRIANGLE_STRIP mode with glDrawArrays.
It works, by that I mean that I can draw a square, but I get this weird drawing glitch. You can see it here:
I'm using t...
I want to develop a 2d game. I have to choose from Quartz/CoreGraphics, OpenGL ES or Cocos2D. I'm interested in how the game Pocket God is realized because it fulfills perfectly my needings.
Do you know which technology is used to build the game Pocket God?
...
I have an image. Over it I draw a semi transparent polygon. Over the semi transparent polygon I draw a line.
I cannot seem to get this line to be white. It is almost as though it is blending with the image or polygon.
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
glDrawArrays(GL_LINE_LOOP, 0, area.polygonShapeData.totalPoints);
What could ...
Hello I'm programming in OpenGLES for the iPhone but I'm currently stuck with a strange framebuffer object error.
At first I was following a few tutorials from Simon Maurice:
http://web.me.com/smaurice/AppleCoder/Welcome.html
But then I moved on to do a few experiments of my own before continuing with other tutorials, however my experi...
I plan on writing a Java 3D game that will work both on PC and Android. Unfortunately it looks like there is no common OpenGL API for both platforms.
Do the APIs differ significantly? Is there a way I could use the same 3D code in both versions? Is it a good idea?
...
Word on the street is that glDrawElements is much faster then glDrawArrays.
So I want to display everything using glDrawElements. The problem I have is that I have a bunch of images I want to pop onto the screen. Each image is in a different texture.
Is it possible to use glDrawElements to do this?
How can I switch the texture
...
1) I know the start point of the arrow and I know the endpoint.
I have no idea how to draw the head of the arrow.. I'm assuming that the other two points of the head are 45 degree angles away from the end point...
Anyone know of the formulas needed to do this?
...
I need to draw the background for a 2D space scrolling shooter. I need to implement 3 layers of stars: one distant nebula (moving really slow) in the background, one layer of far away stars (moving slow) and one layer of close stars (moving normal) on top of the other two.
The way i first tried this was using 3 textures of 320 x 480 tha...
What tutorials and libraries are available which can help beginners to develop 2D and 3D games on Android using OpenGL-ES? I'm looking for tutorials which can help me learn OpenGL-ES, and I'm looking for OpenGL-ES libraries which can make life easier for beginners in OpenGL-ES.
Since Android is still small, I guess it may be help-full t...
My goal is to draw a semi-transparent curve. User moves cursor and I draw the curve under the cursor.
I've tried to use antialiased points to draw line, but I don't know how to make it transparent.
I can't use lines to draw the curve, because can't set both antialiasing and line width.
Should I use triangle strip to draw curve?
...
I have an NSString which is splitted into set of characters.
I need to render these set as a cloud of characters and:
characters must be placed in 3D
characters must have random rotation and scale
different fonts can be used
The proper way is to use OpenGLES framework. Please advice some samples, examples or direction to start.
...
I'm trying to render to a texture, then draw that texture to the screen using OpenGL ES on the iPhone. I'm using this question as a starting point, and doing the drawing in a subclass of Apple's demo EAGLView.
Instance variables:
GLuint textureFrameBuffer;
Texture2D * texture;
To initialize the frame buffer and texture, I'm doing th...
Hi,
TBR chips perform HSR (hidden surface removal) before fragment processing, so only the visible pixels are rendered. This feature results in no necessary sorting opaque objects from front to back. But i have done a experiment on my iPhone 3GS. By comparing the frame time, rendering opaque objects from front to back is much faster tha...
I've been trying to set up some sort of geometry batching for a week or so, there isn't a ton of information online as to how other people have implemented this. Basically I just want to 'catch' every draw call, sort the corresponding meshes by texture, and then draw all meshes that share a texture in one go.
What I've been doing is go...
I'm working in an openGL for iPhone , and although everything works great I have to wait about a second in certain sections of the game which use a ton of sprite sheets. It's there any way to create a loading screen for such sections ?, or any way to know if a certain texture has finished loading with openGL?
EDIT:
I load my textures w...
I'm planning to build a simple tile-based RTS (Real-Time Strategy) game for the iPhone and iPod touch.
Is there an existing game engine or framework that I could use? If so, where can I find it?
...