- 博客(39)
- 资源 (1)
- 收藏
- 关注
转载 FreeType on OpenGL ES (iPhone)
This project renders fonts using OpenGL ES and the FreeType library. The FreeType library uses font hinting, which makes the fonts look better than your average anti-aliased fonts. This project is p
2014-04-13 22:18:04
947
翻译 OpenGL概述
OpenGL是个跨平台的针对硬件的编程语言。Core库函数一般以gl开头,OpenGL Utiliy Library函数一般以glu开头,常量以GL_开头,函数结尾可以以数目和数据类型结尾(如glColor3f(0.3,0.3,0.3,1))。 状态机OpenGL是个状态机,它的状态和模式一直有效,直到被改变。它的状态可以用glEnable()、glDisable()来开启和关闭。状态
2014-04-12 20:15:42
701
转载 Reflections
IntroductionIn the real world, reflections are always evident. This tutorial will explain how to create reflections using the stencil buffer.How does the Stencil Buffer Work?The stencil
2014-04-07 17:32:07
508
转载 Uncompressed TGAs
IntroductionIn the previous tutorial, we used 2 images to create transparency. This was achieved with blending and is known as masking.This tutorial will explain how to create the same effec
2014-04-07 17:31:08
713
转载 Masking
What is Masking?You may find yourself having an OpenGL scene with some background. You may also have some object, text or character which is made up of an image. The problem here is that the obj
2014-04-07 17:30:14
651
转载 Fog
IntroductionThis tutorial will deal with the fog effect.This can be extremely useful in certain applications. Imagine that you are creating a game where you travel across a country side. You o
2014-04-07 17:29:12
690
转载 Waving Flag
IntroductionThis tutorial is going to be slightly different to the previous tutorials. Instead of showing you something new, we are going to be seeing how you can use your knowledge gained in th
2014-04-07 17:28:17
732
转载 Transparency
IntroductionIn the last tutorial, we spoke about how to work with color blending.We found out that this can be extremely useful for transparency. This tutorial will show you how to create a
2014-03-23 22:34:03
598
转载 Blending
IntroductionThis tutorial will discuss color blending.Color blending is useful for effects such as transparency eg. glass, water, windows, etc.An essential part of blending is the alpha va
2014-03-23 22:32:42
692
转载 Texture Functions
IntroductionIn the previous tutorial, we dealt with how to load a bitmap and display it as a texture on an object. You were briefly introduced to the glTexParameterf function.This tutorial w
2014-03-23 22:31:00
696
转载 Texture Mapping
IntroductionAfter adding lighting, you may still not be happy with the realism of your objects.This tutorial will show you how to add textures to your polygons. This is known as texture mapp
2014-03-23 20:22:42
691
转载 Directional Lighting
IntroductionIn the previous tutorial, we added light to a scene. This light did not come from any particular direction.This tutorial will deal with directional lighting. This allows us to ta
2014-03-23 19:18:22
595
转载 Lighting
IntroductionIn the previous tutorials, many of the scenes have appeared a bit bland. This tutorial will explain how lighting can be added to your scenes. This increases the overall realism and l
2014-03-23 18:51:26
590
转载 Backface Culling
IntroductionIn tutorial 10, you will have noticed that when the primitives rotate, their backs are also rendered. When creating a 3D object such as the box in the previous tutorial, we do not
2014-03-23 18:50:26
908
转载 Solid Shapes
IntroductionNow that we have the ability to process depth and we can display primitives in a perspective view, we are able to create 3D objects.This tutorial follows on from the previous tut
2014-03-23 18:49:48
625
转载 Perspective
IntroductionIn the real world, if you have many objects of the same size at different distances from you, you will notice that the further away the objects are, the smaller they appear.In th
2014-03-23 18:49:21
621
转载 Depth
IntroductionUp until now, any primitives that you displayed would appear on top of each other depending on the order that they were displayed in. This would occur, even if the primitives had dif
2014-03-23 18:47:54
545
转载 Transformations
IntroductionYou may find yourself needing to transform your primitives in various ways.OpenGL ES provides 3 ways of transforming your primitives :ScalingTranslationRotationScaling wi
2014-03-23 18:47:10
468
转载 Window Resizing
IntroductionYou may have noticed that when you open up the keyboard at the bottom of the screen, the window is resized and the shape moves off the top of the screen. As the GLUT|ESlibrary always
2014-03-23 18:46:28
520
转载 Color And Shading
IntroductionIn the previous tutorial, you learnt how to draw primitives. These primitives were a little dull as they were all white. This tutorial will show you how to add color and shading to y
2014-03-23 18:45:42
1334
转载 Orthographic Projection
What is Orthographic Projection?There are 2 ways to view things. One is by viewing objects in an Orthogrpahic manner and the other is viewing objects in a perspective view.Ig you have ever l
2014-03-23 18:45:06
2284
转载 Rendering
IntroductionIn the previous tutorials, nothing has been displayed on the screen. This tutorial will explain how to setup your OpenGL ES window to allow drawing of primitives.If you are using
2014-03-23 18:44:10
420
转载 Mouse Input
IntroductionIn many of your programs you will need the option of accepting pointer input. This tutorial will explain how to capture messages sent by using a pointing device on the window.If
2014-03-23 18:43:32
524
转载 Keyboard Input
IntroductionIn many of your programs you will need the option of accepting keyboard input. This tutorial will explain how to capture messages sent from the keyboard.If you are using GLUT|ES,
2014-03-23 18:42:41
830
转载 OpenGL Window
IntroductionThe first step in creating any OpenGL application is to create an OpenGL window on which you can display your program. This tutorial will explain how to create a window using theVinc
2014-03-23 18:41:59
459
转载 Setting Up Your Environment
RequirementsBefore you can begin programming OpenGL ES for the PocketPC, you will need the following :Embedded Visual C++ 4.0Embedded Visual C++ 4.0 Service Pack 4Pocket PC 2003 SDKAn OpenGL E
2014-03-23 18:40:51
616
转载 What is OpenGL ES?
What is OpenGL ES?"OpenGL ES is a royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including handheld devices, appliances and vehicles. It is a well-defi
2014-03-23 18:39:44
432
翻译 OpenGL ES Game Development 第五章(实用操作篇,译者注)
本章信息: • pc和手机游戏区别• 为手机游戏优化代码• 经验之谈:处理游戏固定桢速和不同尺寸适配• 几何和纹理动画简介• 使用OpenGL ES 渲染2D画面 OpenGL ES的出现,使得pc端移植到手机端,成为可能和easy的事。 porting面临的问题:• CPU speed• GPU speed•
2014-02-11 17:25:51
814
原创 ios debug 若干技术。
防bug技术之 0 warnings防bug技术之 使用static analyzer tool。增加breakpoint断点,很多bug就能查看自己的stack。以上断点断住后,点几次continue,或使用(lldb) po [$eax class] (lldb) po [$eax name] (lldb) po [$eax reason]命令查看详情。设置中开启Zombies。
2012-07-27 14:56:04
570
原创 解决Ios加载大图时出JPEG Corrupt JPEG data: premature end of data segment错误,导致加载时卡的问题。
如题,有时开线程加载大图时,出如上错误(表象是某图有一部分是灰色区域),导致加载时卡。比方说你做图片scrollview浏览时,滑动过程中创建大图,出如上错误会卡。解决办法,用如下方法创建图,就很流畅了。 CGImageRef MyCreateThumbnailImageFromData (NSData * data, int imageSize){ CGImageR
2012-05-16 10:26:49
13213
2
原创 crash log调用栈看不到的解决方案(debug symbols不起作用)
1 前言有时crash log在xcode中,看不到crash的调用堆栈,只有些十六进制,下面是解决的参考方法。2 先查看symbolicate工具环境设置步骤一:在“终端”中,使用如下工具查看symbolicate工具是否出问题了,命令后接crash log文件。/Developer/Platforms/iPhoneOS.platform/De
2012-03-05 15:29:13
5298
原创 有时UIGestureRecognizer手势识别不出来问题分析及方案
有时我们添加的UIGestureRecognizer识别不出来,分析原因至少有以下三种可能:- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGest
2012-02-29 22:14:29
6420
原创 ios用UIWebView打开txt乱码的解决方案
1 乱码情况从网上下的中文txt小说,电脑上编辑的中文txt,用UIWebView直接打开出现乱码。2 解决方案txt分带编码和不带编码两种,带编码的如UTF-8格式txt,不带编码的如ANSI格式txt。带编码的用NSString的stringWithContentsOfFile可读出,不带的,我们依次尝试GBK和GB18030编码。 代码
2012-02-27 14:19:32
4697
原创 彻底解决xcode4.2.1中SCM(SVN)不能用问题。
xcode4.2.1的SVN摸索了一下终于可用了,大家尝试以下方法:1.将repository URL在safari访问.2.在弹出的证书界面,选“显示证书”.3. 打勾.4.重启xcode,对应的repository就变绿了:PS:如仍提示因密码无法commit,请在terminal中手动commit一次,输入密码。 其实就俩问题,一个是证书认证问题,一个是密码问题,
2012-02-21 20:23:36
1623
转载 揭开正则表达式的神秘面纱(转)
<br />http://www.regexlab.com/zh/regref.htm<br />该文章由浅入深,层次分明,推荐。
2011-01-04 15:16:00
242
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人