没有合适的资源?快使用搜索试试~ 我知道了~
Pro OpenGL ES for Android
5星 · 超过95%的资源 需积分: 10 37 下载量 4 浏览量
2013-01-22
17:47:00
上传
评论
收藏 6.3MB PDF 举报
温馨提示
试读
309页
Pro OpenGL ES for Android pdf format document. Create complex 3D graphics and gaming apps for Android using opengl es.
资源推荐
资源详情
资源评论
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
Download from Wow! eBook <www.wowebook.com>
iv
Contents at a Glance
■About the Authors ............................................................................................ x
■About the Technical Reviewer ........................................................................ xi
■Acknowledgments ......................................................................................... xii
■Introduction .................................................................................................. xiii
■Chapter 1: Computer Graphics: From Then to Now .......................................... 1
■Chapter 2: All That Math Jazz ........................................................................ 25
■Chapter 3: From 2D to 3D: Adding One Extra Dimension ............................... 43
■Chapter 4: Turning on the Lights ................................................................... 77
■Chapter 5: Textures ...................................................................................... 115
■Chapter 6: Will It Blend? .............................................................................. 149
■Chapter 7: Well-Rendered Miscellany .......................................................... 177
■Chapter 8: Putting It All Together ................................................................ 213
■Chapter 9: Performance ’n’ Stuff ................................................................. 247
■Chapter 10: OpenGL ES 2, Shaders, and… ................................................... 259
■Index ............................................................................................................ 287
xiii
Introduction
In 1985 I brought home a new shiny Commodore Amiga 1000, about one week after
they were released. Coming with a whopping 512K of memory, programmable
colormaps, a Motorola 68K CPU, and a modern multitasking operating system, it had
“awesome” writ all over it. Metaphorically speaking, of course. I thought it might
make a good platform for an astronomy program, as I could now control the colors of
those star-things instead of having to settle for a lame fixed color palette forced upon
me from the likes of Hercules or the C64. So I coded up a 24-line basic routine to
draw a random star field, turned out the lights, and thought, “Wow! I bet I could write
a cool astronomy program for that thing!” Twenty-six years later I am still working on
it and hope to get it right one of these days. Back then my dream device was
something I could slip into my pocket, pull out when needed, and aim it at the sky to
tell me what stars or constellations I was looking at.
It’s called a smartphone.
I thought of it first.
As good as these things are for playing music, making calls, or slinging birdies at
piggies, it really shines when you get to the 3D stuff. After all, 3D is all around us—
unless you are a pirate and have taken to wearing an eye patch, in which case you’ll
have very limited depth perception. Arrrggghhh.
Plus 3D apps are fun to show off to people. They’ll “get it.” In fact, they’ll get it much
more than, say, that mulch buyer’s guide app all the kids are talking about. (Unless
they show off their mulch in 3D, but that would be a waste of a perfectly good
dimension.)
So, 3D apps are fun to see, fun to interact with, and fun to program. Which brings me
to this book. I am by no means a guru in this field. The real gurus are the ones who
can knock out a couple of NVIDIA drivers before breakfast, 4-dimensional hypercube
simulators by lunch, and port Halo to a TokyoFlash watch before the evening’s Firefly
marathon on SyFy. I can’t do that. But I am a decent writer, have enough of a working
knowledge of the subject to make me harmless, and know how to spell “3D.” So here
we are.
■ Introduction
xiv
First and foremost this book is for experienced Android programmers who want to at
least learn a little of the language of 3D. At least enough to where at the next game
programmer’s cocktail party you too can laugh at the quaternion jokes with the best
of them.
This book covers the basics in both theory of 3D and implementations using the
industry standard OpenGL ES toolkit for small devices. While Android can support
both flavors—version 1.x for the easy way, and version 2.x for those who like to get
where the nitty-is-gritty—I mainly cover the former, except in the final chapter which
serves as an intro to the latter and the use of programmable shaders.
Chapter 1 serves as an intro to OpenGL ES alongside the long and tortuous path of the
history of computer graphics. Chapter 2 is the math behind basic 3D rendering,
whereas Chapters 3 through 8 lead you gently through the various issues all graphics
programmers eventually come across, such as how to cast shadows, render multiple
OpenGL screens, add lens flare, and so on. Eventually this works its way into a simple
(S-I-M-P-L-E!) solar-system model consisting of the sun, earth, and some stars—a
traditional 3D exercise. Chapter 9 looks at best practices and development tools, and
Chapter 10 serves as a brief overview of OpenGL ES 2 and the use of shaders.
So, have fun, send me some M&Ms, and while you’re at it feel free to check out my
own app currently just in the Apple App Store: Distant Suns 3. Yup, that’s the same
application that started out on a Commodore Amiga 1000 in 1985 as a 24-line basic
program that drew a couple hundred random stars on the screen.
It’s bigger now.
–Mike Smithwick
剩余308页未读,继续阅读
资源评论
- hunterize2014-07-02很好的入门书籍,可惜针对1.0
- bestilyq2014-07-26学习opengl es的很好的书籍
fanbird2008
- 粉丝: 209
- 资源: 249
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Stability AI 发布 SD3 API:开启人工智能新篇章
- SQL 语言入门篇-最常用 SQL 语句大全
- mysql查询语句汇总.zip
- typora-x64-v0.9.93,windows,64位,markdown工具,文本编辑器
- 基于C语言的neon_osd_Draw ARM Neon加速OSD点阵设计源码
- 目标检测-工地工人安全设备佩戴检测数据集-3500张图-+对应VOC-COCO-YOLO三种格式标签+数据集划分脚本+训练日志
- 运筹学运输问题综合实验的实验报告
- home - 副本.vue
- imageProcess.py
- typora-linux-v0.11.18-amd64,linux,64位,markdown工具,文本编辑器
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功