¡@

Home 

2014/10/15 ¤U¤È 10:09:36

iphone Programming Glossary: gl

OpenGL ES Render to Texture

http://stackoverflow.com/questions/1024603/opengl-es-render-to-texture

ES Render to Texture I have been having trouble finding straightforward code to render a scene to a texture in OpenGL ES.. ES Render to Texture I have been having trouble finding straightforward code to render a scene to a texture in OpenGL ES specifically for the iPhone if that matters . I am interested in knowing the following How do you render a scene to a.. the iPhone if that matters . I am interested in knowing the following How do you render a scene to a texture in OpenGL ES What parameters must you use to create a texture that is capable of being a render target in OpenGL ES Are there any..

Capture 60fps in iPhone app

http://stackoverflow.com/questions/10344637/capture-60fps-in-iphone-app

but feel a little disappointed as AVCaptureMovieFileOutput rules out a lot of fun things e.g. realtime effects with GL shaders recording start stop without frame loss . cake eat it 59 if you're still running iOS 5.0.1 share improve this answer..

OpenGL ES 2d rendering into image

http://stackoverflow.com/questions/10455329/opengl-es-2d-rendering-into-image

ES 2d rendering into image I need to write OpenGL ES 2 dimensional renderer on iOS. It should draw some primitives such.. ES 2d rendering into image I need to write OpenGL ES 2 dimensional renderer on iOS. It should draw some primitives such as lines and polygons into 2d image it will be rendering.. lines and polygons into 2d image it will be rendering of vector map . Which way is the best for getting image from OpenGL context in that task I mean should I render these primitives into texture and then get image from it or what Also it will..

How do you draw a cylinder with OpenGLES?

http://stackoverflow.com/questions/1056504/how-do-you-draw-a-cylinder-with-opengles

do you draw a cylinder with OpenGLES How do you draw a cylinder with OpenGLES iphone opengl es share improve this question You'll need to do it via object.. do you draw a cylinder with OpenGLES How do you draw a cylinder with OpenGLES iphone opengl es share improve this question You'll need to do it via object loading. You can't call on 3D shape.. improve this question You'll need to do it via object loading. You can't call on 3D shape primitives using Open GL ES. Look through Jeff Lamarche's blog there's lots of really good resources on how to object load there. link text share..

How exactly can I use shark to profile my iPhone app?

http://stackoverflow.com/questions/1326078/how-exactly-can-i-use-shark-to-profile-my-iphone-app

I use shark to profile my iPhone app I want to use Shark on OS 10.5 to do some basic profiling of my iPhone game Open GL ES Objective C . How exactly can I do this I've read tutorials but they are too verbose for me after a full day of coding..

What's “in” and “out” of OpenGL-ES? (Porting from OpenGL)

http://stackoverflow.com/questions/272970/whats-in-and-out-of-opengl-es-porting-from-opengl

&ldquo in&rdquo and &ldquo out&rdquo of OpenGL ES Porting from OpenGL It seems that all of the documentation I can find about OpenGL ES says something to the effect of.. &ldquo in&rdquo and &ldquo out&rdquo of OpenGL ES Porting from OpenGL It seems that all of the documentation I can find about OpenGL ES says something to the effect of OpenGL ES is just like.. and &ldquo out&rdquo of OpenGL ES Porting from OpenGL It seems that all of the documentation I can find about OpenGL ES says something to the effect of OpenGL ES is just like OpenGL but without a lot of stuff. For example there's no glBegin..

Drawing a line in iPhone / iPad

http://stackoverflow.com/questions/4783317/drawing-a-line-in-iphone-ipad

I draw the straighten line My problem is that I am familiar with creating normal UI apps. I am not familiar with Open GL ect. I hope someone can help me with this. Best regards Paul Peelen iphone ios opengl es grid share improve this question..

Choose OpenGL ES 1.1 or OpenGL ES 2.0?

http://stackoverflow.com/questions/4784137/choose-opengl-es-1-1-or-opengl-es-2-0

OpenGL ES 1.1 or OpenGL ES 2.0 I'm going to start a new cross plattform openGL project primary for iPhone PC . So theres the main.. OpenGL ES 1.1 or OpenGL ES 2.0 I'm going to start a new cross plattform openGL project primary for iPhone PC . So theres the main question targeting.. OpenGL ES 1.1 or OpenGL ES 2.0 I'm going to start a new cross plattform openGL project primary for iPhone PC . So theres the main question targeting for OpenGL ES 1.1 or OpenGL ES 2.0 Or both So far..

Displaying an EAGLView with transparent background on a UIImageView

http://stackoverflow.com/questions/5283670/displaying-an-eaglview-with-transparent-background-on-a-uiimageview

an EAGLView with transparent background on a UIImageView In my app I have an EAGLView which is displaying some OpenGL 3D model.. an EAGLView with transparent background on a UIImageView In my app I have an EAGLView which is displaying some OpenGL 3D model and a UIImageView which is displaying some image. What I want is to display.. an EAGLView with transparent background on a UIImageView In my app I have an EAGLView which is displaying some OpenGL 3D model and a UIImageView which is displaying some image. What I want is to display EAGLView above this UIImageView. No..

How can I crop an Image with mask and combine it with another image (background) on iPhone? (OpenGL ES 1.1 is preferred)

http://stackoverflow.com/questions/5299452/how-can-i-crop-an-image-with-mask-and-combine-it-with-another-image-background

can I crop an Image with mask and combine it with another image background on iPhone OpenGL ES 1.1 is preferred I need to combine three images the way I represent in attached file 1 One image is background. It is.. mask's pixel is black . I'm working with cocos2d iphone. Can I make such combination with cocos2d iphone or with OpenGL ES 1.1 If any answer is YES working code would be appreciated. If both answers is NO is there another technology on iOS.. be appreciated. If both answers is NO is there another technology on iOS to make what I want maybe Quartz2d or OpenGL ES 2.0 Mask format is not obligatory black for Sprite and white for Background. I can make Mask of required format such..

Learning OpenGL ES 1.x

http://stackoverflow.com/questions/72288/learning-opengl-es-1-x

OpenGL ES 1.x What is the quickest way to come up to speed on OpenGL ES 1.x Let's assume I know nothing about OpenGL which is.. OpenGL ES 1.x What is the quickest way to come up to speed on OpenGL ES 1.x Let's assume I know nothing about OpenGL which is not entirely true but it's been a while since I last used OpenGL.. OpenGL ES 1.x What is the quickest way to come up to speed on OpenGL ES 1.x Let's assume I know nothing about OpenGL which is not entirely true but it's been a while since I last used OpenGL . I am most interested in learning this for iPhone..

How do I make a water effect view with openGLES on the iPhone?

http://stackoverflow.com/questions/726738/how-do-i-make-a-water-effect-view-with-opengles-on-the-iphone

do I make a water effect view with openGLES on the iPhone I found this vid http www.youtube.com watch v eVi6ThY3LRs I wonder if that's some kind of standard effect.. I found this vid http www.youtube.com watch v eVi6ThY3LRs I wonder if that's some kind of standard effect of openGLES. I'm pretty sure it is since I have seen this pretty often. KoiPond uses it DuckDuckDuck uses it. A lot of games use it... of rubber and can be pulled by dragging the mouse. I managed to compile the example on my mac. Rename all #include GL glut.h to #include GLUT glut.h Add a usleep 33 1000 in the idle function Rename the file ripple_precalc.c to ripple_precalc.c.org..

Advantages of using Core Graphics

http://stackoverflow.com/questions/7669018/advantages-of-using-core-graphics

of using Core Graphics I would like to know what kind of advantages I get from using Core Graphics instead of Open GL ES. My main question is based on this Creating simple View animations. Creating some visual appealing objects Graphics like.. is responsible for animation layout and some limited 3 D effects involving rectangular layers and UI elements. OpenGL ES is a lower level API for talking with the graphics hardware on iOS devices for both 2 D and 3 D drawing. You're asking.. good performance. This isn't just limited to 2 D animations but can extend into some simple 3 D work as well. OpenGL ES is underneath the drawing of everything you see on the screen for an iOS device although this is not exposed to you...

How to do animations using images efficiently in iOS

http://stackoverflow.com/questions/8112698/how-to-do-animations-using-images-efficiently-in-ios

any improvement in the code so that the animations can be efficiently done or is there any other alternative like openGL or Core Animation if so can anyone suggest a sample code to do so. iphone ios crash core animation share improve this.. crash core animation share improve this question My suggestion is using Cocos2d which is a framework based on Open GL specifically designed for games. In your case the advantages you would get are using texture atlas instead of individual.. of 32 . If you think this could work for you have a look at this tutorial . You could do the same by using Open GL or Core Animation directly but I think it is better letting Cocos2d deal with the low level stuff. For a Core Animation..

iPhone take augmented reality screenshot with AVCaptureVideoPreviewLayer

http://stackoverflow.com/questions/8980847/iphone-take-augmented-reality-screenshot-with-avcapturevideopreviewlayer

context. This call will not render the AVCaptureVideoPreviewLayer . It has to be replaced with a UIImageView or GL based view. see following code for creating a dynamically updating UIImageView void saveScreenshot UIGraphicsBeginImageContext.. with over 1 million downloads. There is a function for grabbing a UIView based screen and one for grabbing an Open GLES1 screen ScreenCapture.m LiveEffectsCam Created by John Carter on 10 8 10. #import ScreenCapture.h #import QuartzCore CABase.h.. #import QuartzCore CATransform3D.h #import QuartzCore CALayer.h #import QuartzCore CAScrollLayer.h #import OpenGLES EAGL.h #import OpenGLES ES1 gl.h #import OpenGLES ES1 glext.h #import QuartzCore QuartzCore.h #import OpenGLES EAGLDrawable.h..

Record the drawing as a m4v video file - OpenGL

http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl

the drawing as a m4v video file OpenGL I have downloaded the sample code GLPaint from developer.Apple website to draw pictures on a Canvas using OpenGL. I have.. the drawing as a m4v video file OpenGL I have downloaded the sample code GLPaint from developer.Apple website to draw pictures on a Canvas using OpenGL. I have done the changes in GLPaint application.. OpenGL I have downloaded the sample code GLPaint from developer.Apple website to draw pictures on a Canvas using OpenGL. I have done the changes in GLPaint application to meet my requirements. Now I need to record the drawing as a m4v video..

Advice on speeding up OpenGL ES 1.1 on the iPhone

http://stackoverflow.com/questions/1844765/advice-on-speeding-up-opengl-es-1-1-on-the-iphone

what improvements will give me the most bang for the buck. My scene rendering goes something like this Repeat 35 times glPushMatrix glLoadIdentity glTranslate Repeat 7 times glBindTexture glVertexPointer glNormalPointer glTexCoordPointer glDrawArrays.. will give me the most bang for the buck. My scene rendering goes something like this Repeat 35 times glPushMatrix glLoadIdentity glTranslate Repeat 7 times glBindTexture glVertexPointer glNormalPointer glTexCoordPointer glDrawArrays GL_TRIANGLES.. me the most bang for the buck. My scene rendering goes something like this Repeat 35 times glPushMatrix glLoadIdentity glTranslate Repeat 7 times glBindTexture glVertexPointer glNormalPointer glTexCoordPointer glDrawArrays GL_TRIANGLES ... glPopMatrix..

Gaussian filter with OpenGL Shaders

http://stackoverflow.com/questions/4804732/gaussian-filter-with-opengl-shaders

y but also on surrounding 8 pixels. O x y I x y surrounding 8 pixels values 9 Normally this cannot be done with one single image buffer or input pixels will change as the filter is performed. How can I do this with shaders Also should I handle..

How many maximum triangles can be drawn on ipad using opengl es in 1 frame?

http://stackoverflow.com/questions/6175018/how-many-maximum-triangles-can-be-drawn-on-ipad-using-opengl-es-in-1-frame

many maximum triangles can be drawn on ipad using opengl es in 1 frame How many maximum triangles can be drawn on ipad in a single frame. Also.. many maximum triangles can be drawn on ipad using opengl es in 1 frame How many maximum triangles can be drawn on ipad in a single frame. Also is there a limit to the number of.. many maximum triangles can be drawn on ipad using opengl es in 1 frame How many maximum triangles can be drawn on ipad in a single frame. Also is there a limit to the number of gl calls used to draw those triangles ..

take screen Programmatically of UIview+glview

http://stackoverflow.com/questions/6197137/take-screen-programmatically-of-uiviewglview

screen Programmatically of UIview glview i have glview in my uiview now i have to take scrren shot of combine view of uiview and glview. i googled lot but i.. screen Programmatically of UIview glview i have glview in my uiview now i have to take scrren shot of combine view of uiview and glview. i googled lot but i dnt found any.. of UIview glview i have glview in my uiview now i have to take scrren shot of combine view of uiview and glview. i googled lot but i dnt found any thing useful i know how to take scrrenshot of glview nt width glView.frame.size.width..

Use of VAO around VBO in Open ES iPhone app Causes EXC_BAD_ACCESS When Call to glDrawElements

http://stackoverflow.com/questions/6240863/use-of-vao-around-vbo-in-open-es-iphone-app-causes-exc-bad-access-when-call-to-g

of VAO around VBO in Open ES iPhone app Causes EXC_BAD_ACCESS When Call to glDrawElements I'm trying to take my code to the next level. Following some best practices from Apple I'm trying to implement.. implement Vertex Array Objects around my Vertex Buffer Objects VBO . I setup my VBOs and VAOs like this void setupVBOs glBindBuffer GL_ARRAY_BUFFER 0 glBindBuffer GL_ELEMENT_ARRAY_BUFFER 0 glBindVertexArrayOES 0 glGenVertexArraysOES 1 directArrayObject.. around my Vertex Buffer Objects VBO . I setup my VBOs and VAOs like this void setupVBOs glBindBuffer GL_ARRAY_BUFFER 0 glBindBuffer GL_ELEMENT_ARRAY_BUFFER 0 glBindVertexArrayOES 0 glGenVertexArraysOES 1 directArrayObject glBindVertexArrayOES..

learning iphone game development

http://stackoverflow.com/questions/720901/learning-iphone-game-development

learn via the iphone. So Im just wondering what are the best resources out there to learn iphone development and open gl on iphone. Books websites etc your tips are much appreciated. iphone opengl es share improve this question I'd skip.. to learn iphone development and open gl on iphone. Books websites etc your tips are much appreciated. iphone opengl es share improve this question I'd skip OpenGL until later I'd start off with a 2D game otherwise its likely overwhelming...

GLPaint save image

http://stackoverflow.com/questions/946700/glpaint-save-image

Basically I need to save the pictures drawn by the GLPaint application. iphone objective c opengl es quartz graphics share improve this question UIImage saveImageFromGLView NSInteger myDataLength 320 480 4 allocate.. NSInteger myDataLength 320 480 4 allocate array and read pixels into it. GLubyte buffer GLubyte malloc myDataLength glReadPixels 0 0 320 480 GL_RGBA GL_UNSIGNED_BYTE buffer gl renders upside down so swap top to bottom into new array. there's.. pixels into it. GLubyte buffer GLubyte malloc myDataLength glReadPixels 0 0 320 480 GL_RGBA GL_UNSIGNED_BYTE buffer gl renders upside down so swap top to bottom into new array. there's gotta be a better way but this works. GLubyte buffer2..

Save OpenGL Drawn item as a Image

http://stackoverflow.com/questions/9660723/save-opengl-drawn-item-as-a-image

NULL static NSUInteger vertexMax 64 NSUInteger vertexCount 0 count i EAGLContext setCurrentContext context glBindFramebufferOES GL_FRAMEBUFFER_OES viewFramebuffer Convert locations from Points to Pixels CGFloat scale self.contentScaleFactor.. vertexBuffer 2 vertexCount 1 start.y end.y start.y GLfloat i GLfloat count vertexCount 1 Render the vertex array glVertexPointer 2 GL_FLOAT 0 vertexBuffer glDrawArrays GL_POINTS 0 vertexCount Display the buffer glBindRenderbufferOES GL_RENDERBUFFER_OES.. end.y start.y GLfloat i GLfloat count vertexCount 1 Render the vertex array glVertexPointer 2 GL_FLOAT 0 vertexBuffer glDrawArrays GL_POINTS 0 vertexCount Display the buffer glBindRenderbufferOES GL_RENDERBUFFER_OES viewRenderbuffer context..

Saving imageRef from GLPaint creates completely black image

http://stackoverflow.com/questions/9857912/saving-imageref-from-glpaint-creates-completely-black-image

I can display an image behind it. The drawing works great my only problem is saving. void saveImageFromGLView UIView glView if glCheckFramebufferStatusOES GL_FRAMEBUFFER_OES GL_FRAMEBUFFER_COMPLETE_OES This IS being activated with code 0 NSLog.. an image behind it. The drawing works great my only problem is saving. void saveImageFromGLView UIView glView if glCheckFramebufferStatusOES GL_FRAMEBUFFER_OES GL_FRAMEBUFFER_COMPLETE_OES This IS being activated with code 0 NSLog @ failed.. GL_FRAMEBUFFER_COMPLETE_OES This IS being activated with code 0 NSLog @ failed to make complete framebuffer object x glCheckFramebufferStatusOES GL_FRAMEBUFFER_OES int s 1 UIScreen screen UIScreen mainScreen if screen respondsToSelector @selector..