¡@

Home 

2014/10/15 ¤U¤È 10:15:08

iphone Programming Glossary: ty

Scaling AR pictures based on the distance from the camera

http://stackoverflow.com/questions/11913355/scaling-ar-pictures-based-on-the-distance-from-the-camera

AR pictures based on the distance from the camera I ™m developing an augmented reality iPhone app. What it should basically do is display pictures assigned to geographical locations when you look at them by.. factor Could you please help me on that Any clues will be helpful. Thank you iphone camera scaling augmented reality share improve this question I think I managed to solve my problem. Let me explain how I did it for if might be of use.. distanceFromPhysicalObject_m return dimensionOnCcd ccdToScreenSizeRatio It seems that it works perfect compared ty my previous stupid approach of linear scaling. I also noticed by the way that it is really important to know the FOV for..

Why is this OpenGL ES code slow on iPhone?

http://stackoverflow.com/questions/450042/why-is-this-opengl-es-code-slow-on-iphone

0 0 1 0 0 1 1 1 void setupView glViewport 0 0 backingWidth backingHeight glMatrixMode GL_PROJECTION glLoadIdentity glOrthof 0.0f backingWidth backingHeight 0.0f 10.0f 10.0f glMatrixMode GL_MODELVIEW glClearColor 0.3f 0.0f 0.0f 1.0f glVertexPointer.. glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND void drawView .. glClear GL_COLOR_BUFFER_BIT glLoadIdentity glTranslatef tx 100 ty 100 10 for int i 0 i 200 i glTranslatef 1 1 0 glDrawArrays GL_TRIANGLE_STRIP 0 4 .. drawView is called.. glEnable GL_BLEND void drawView .. glClear GL_COLOR_BUFFER_BIT glLoadIdentity glTranslatef tx 100 ty 100 10 for int i 0 i 200 i glTranslatef 1 1 0 glDrawArrays GL_TRIANGLE_STRIP 0 4 .. drawView is called every time the screen..

Filling a portion of an image with color

http://stackoverflow.com/questions/8124308/filling-a-portion-of-an-image-with-color

touch locationInView self.view lastPoint.y 20 NSString tx NSString alloc initWithFormat @ .0f lastPoint.x NSString ty NSString alloc initWithFormat @ .0f lastPoint.y NSLog @ the vale of the string is @ and @ tx ty int ix tx intValue int iy.. lastPoint.x NSString ty NSString alloc initWithFormat @ .0f lastPoint.y NSLog @ the vale of the string is @ and @ tx ty int ix tx intValue int iy ty intValue int z 1 NSLog @ the vale of the string is i and i and z is i ix iy z self getRGBAsFromImage.. alloc initWithFormat @ .0f lastPoint.y NSLog @ the vale of the string is @ and @ tx ty int ix tx intValue int iy ty intValue int z 1 NSLog @ the vale of the string is i and i and z is i ix iy z self getRGBAsFromImage newImage atX ix andY..