Buy new:
-35% $24.67$24.67
FREE delivery December 23 - 31
Ships from: Prime Goods Outlet Sold by: Prime Goods Outlet
Save with Used - Acceptable
$17.99$17.99
Ships from: Amazon Sold by: Stellar Book Company
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
OpenGL ES 2 for Android: A Quick-Start Guide (Pragmatic Programmers) 1st Edition
Purchase options and add-ons
Android is booming like never before, with millions of devices shipping every day. It's never been a better time to learn how to create your own 3D games and live wallpaper for Android. You'll find out all about shaders and the OpenGL pipeline, and discover the power of OpenGL ES 2.0, which is much more feature-rich than its predecessor. If you can program in Java and you have a creative vision that you'd like to share with the world, then this is the book for you.
This book will teach you everything you need to know to create compelling graphics on Android. You'll learn the basics of OpenGL by building a simple game of air hockey, and along the way, you'll see how to initialize OpenGL and program the graphics pipeline using shaders. Each lesson builds upon the one before it, as you add colors, shading, 3D projections, touch interaction, and more.
Then, you'll find out how to turn your idea into a live wallpaper that can run on the home screen. You'll learn about more advanced effects involving particles, lighting models, and the depth buffer. You'll understand what to look for when debugging your program, and what to watch out for when deploying to the market.
OpenGL can be somewhat of a dark art to the uninitiated. As you read this book, you'll learn each new concept from first principles. You won't just learn about a feature; you'll also understand how it works, and why it works the way it does. Everything you learn is forward-compatible with the just-released OpenGL ES 3, and you can even apply these techniques to other platforms, such as iOS or HTML5 WebGL.
- ISBN-101937785343
- ISBN-13978-1937785345
- Edition1st
- PublisherPragmatic Bookshelf
- Publication dateJuly 30, 2013
- LanguageEnglish
- Dimensions7.5 x 0.72 x 9.25 inches
- Print length346 pages
Similar items that may deliver to you quickly
From the brand
-
-
The Pragmatic Programmers publishes hands-on, practical books on classic and cutting-edge software development and engineering management topics. We help professionals solve real-world problems, hone their skills, and advance their careers.
Editorial Reviews
Amazon.com Review
Top Five OpenGL ES Tips
1. Avoid expensive operations on the UI and rendering threads.
To avoid frame rate stutters or the dreaded "Application not responding" dialog from appearing, expensive operations should be run asynchronously in a background thread. This is especially important when it comes to the rendering thread, as rendering at 30 frames per second means that each frame has to complete in about 33 milliseconds to avoid frame stutters.
Garbage collection is an expensive operation that happens non-deterministically and can cause rendering stalls, so to avoid this, you'll also want to minimize object allocation during a frame to reduce pressure on the garbage collector. You may even see benefits to doing a manual GC at certain points in the application.
2. Do expensive texture and shader loads during intermissions.
Some expensive operations need to be done on the rendering thread, such as texture loads and shader compilations. These operations can cause noticeable stuttering if they happen in the middle of rendering, so to avoid this, preload these resources at opportune times, such as when the game / application is loaded, or at the beginning of each level.
3. Take advantage of the libraries out there.
There are many libraries out there that support OpenGL ES 2.0 development without boxing you into a framework or a closed-source middleware solution. Libgdx is one of these libraries, and by using a library like libgdx, you can more easily port your code to other platforms, as well as take advantage of the library's math classes and asset loading management.
4. Read the documentation.
The OpenGL specs and manuals are available for free from Khronos.org. Each GPU vendor also shares a wealth of free information on how to use their GPUs, and as you read the documentation, you'll find that they generally share a lot of advice in common, such as "minimize state switches" and "avoid discard in a fragment shader." Reading these documents and specs will give you a lot more insight into how the GPUs work at a lower level, and will help you understand what the pitfalls are, and how to avoid premature pessimization when writing your OpenGL code.
5. Focus on what will impress the end user.
Sometimes it's easy to lose sight of the end goal, and to become focused on optimizing areas that won't make much of a difference to the end user. Does it matter if we get this shader to execute 2% faster? Or will we make much more of a visual impact by finding a better artist? Find out what the most important areas are, and then focus on improving those first.
About the Author
Product details
- Publisher : Pragmatic Bookshelf; 1st edition (July 30, 2013)
- Language : English
- Paperback : 346 pages
- ISBN-10 : 1937785343
- ISBN-13 : 978-1937785345
- Item Weight : 1.4 pounds
- Dimensions : 7.5 x 0.72 x 9.25 inches
- Best Sellers Rank: #3,428,984 in Books (See Top 100 in Books)
- #79 in OpenGL Software Programming
- #282 in 3D Graphic Design
- #842 in Digital Video Production (Books)
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book provides a clear introduction to OpenGL for beginners. They describe it as an easy read with well-written text and clear examples that work. The text is conversational without being patronizing, and the balance between explaining and providing practical guidance is excellent.
AI-generated from the text of customer reviews
Customers find the book provides a good introduction to OpenGL. It's suitable for beginners and contains relevant information with useful examples. The book is described as amazing and an excellent foundation for understanding OpenGL.
"Absolutely amazing book...." Read more
"...There's a lot of relevant information packed in and some fantastic walk-through examples.4 stars - nothing's perfect" Read more
"...know how to do basic programming, this book is an excellent way to get started understanding, not just using, OpenGL ES...." Read more
"...Java development and very little android programming, this book was perfect for my needs. I highly recommend it to any experienced programmer...." Read more
Customers find the book easy to read and well-written. They appreciate the conversational and instructive writing style without being patronizing. The examples are clear and detailed, facilitating a thorough understanding of using shaders with the Android SDK.
"...The examples are clear and detailed and all of them actually worked! (which sadly isn't the case for most programming books)...." Read more
"This book has been paramount to me by facilitating a thorough understanding of using shaders with the Android SDK...." Read more
"...of how to use OpenGL in an Android environment with an excellent balance between explaining what you really need to know about how and why things..." Read more
"...That was where I was at before I got this book.It's an easy read, about 2 days of reading, more if you type in every single example." Read more
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
This book is also great if you already know shaders, but you are unfamiliar with using them with the Android SDK. Android can be a bit tricky at times and this book will navigate you through the Android SDK so that your shaders work as intended.
There are chapters in the book that go over Textures, creating a SkyBox, using Vertex Buffer Objects, using Index Buffer Objects, Culling, developing Particle Shaders, Vertex Shader Fundamentals, Fragment Shader fundamentals, creating Terrain, enabling the Depth Buffer, simulating Lights, and MORE! Overall, great book!
There's a lot of relevant information packed in and some fantastic walk-through examples.
4 stars - nothing's perfect
It's an easy read, about 2 days of reading, more if you type in every single example.
Coming from a background of basic Java development and very little android programming, this book was perfect for my needs. I highly recommend it to any experienced programmer. It might be too much for someone new to programming.
Top reviews from other countries
5.0 out of 5 stars This is an excellent book but dated
The main problem with the book is that it is so out of date, some of the libraries it users ie FloatMath are discontinued so you need to change these to use the supported version, also it was written before openGL 3 was released, however all the gl2 code works fine on gl3.
I would still highly recommend this book though as it's so well written and laid out. Just a shame it's not been updated with all the latest stuff.
3.0 out of 5 stars Air hockey incomplete code
5.0 out of 5 stars Must have book
In my opinion the best book on opengl es and android. it discuss all the topic in a very clear way, allowing to be confident on the topic. Strongly suggested to whom would like to learn opengl with android
5.0 out of 5 stars Fantastisch
Versprochen.





