Items related to OpenGL ES 2 for Android: A Quick-Start Guide (Pragmatic...

OpenGL ES 2 for Android: A Quick-Start Guide (Pragmatic Programmers) - Softcover

  • 4.36 out of 5 stars
    14 ratings by Goodreads
 
9781937785345: OpenGL ES 2 for Android: A Quick-Start Guide (Pragmatic Programmers)

Synopsis

Printed in full color.

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.

"synopsis" may belong to another edition of this title.

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

Kevin Brothaler is the founder of Digipom, a mobile software development shop. He has extensive experience in Android development, and he also manages "Learn OpenGL ES":http://www.learnopengles.com/, an online set of OpenGL tutorials for Android and WebGL.

"About this title" may belong to another edition of this title.

  • PublisherPragmatic Bookshelf
  • Publication date2013
  • ISBN 10 1937785343
  • ISBN 13 9781937785345
  • BindingPaperback
  • LanguageEnglish
  • Edition number1
  • Number of pages346
  • Rating
    • 4.36 out of 5 stars
      14 ratings by Goodreads

Buy Used

Condition: Very Good
Ship within 24hrs. Satisfaction... View this item

Shipping: FREE
Within U.S.A.

Destination, rates & speeds

Add to basket

Search results for OpenGL ES 2 for Android: A Quick-Start Guide (Pragmatic...

Stock Image

Brothaler, Kevin
Published by Pragmatic Bookshelf (edition 1), 2013
ISBN 10: 1937785343 ISBN 13: 9781937785345
Used Paperback

Seller: BooksRun, Philadelphia, PA, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Very Good. 1. Ship within 24hrs. Satisfaction 100% guaranteed. APO/FPO addresses supported. Seller Inventory # 1937785343-8-1

Contact seller

Buy Used

US$ 4.83
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Brothaler, Kevin
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785343 ISBN 13: 9781937785345
Used Paperback

Seller: ThriftBooks-Dallas, Dallas, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Very Good. No Jacket. May have limited writing in cover pages. Pages are unmarked. ~ ThriftBooks: Read More, Spend Less 1.4. Seller Inventory # G1937785343I4N00

Contact seller

Buy Used

US$ 6.48
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Brothaler, Kevin
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785343 ISBN 13: 9781937785345
Used Paperback

Seller: ThriftBooks-Atlanta, AUSTELL, GA, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Good. No Jacket. Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less 1.4. Seller Inventory # G1937785343I3N00

Contact seller

Buy Used

US$ 6.48
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Brothaler, Kevin
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785343 ISBN 13: 9781937785345
Used Paperback

Seller: ThriftBooks-Atlanta, AUSTELL, GA, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Fair. No Jacket. Readable copy. Pages may have considerable notes/highlighting. ~ ThriftBooks: Read More, Spend Less 1.4. Seller Inventory # G1937785343I5N00

Contact seller

Buy Used

US$ 6.48
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Brothaler, Kevin
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785343 ISBN 13: 9781937785345
Used Softcover

Seller: Book Deals, Tucson, AZ, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: Very Good. Very Good condition. Shows only minor signs of wear, and very minimal markings inside (if any). 1.41. Seller Inventory # 353-1937785343-vrg

Contact seller

Buy Used

US$ 7.97
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Brothaler, Kevin
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785343 ISBN 13: 9781937785345
Used Softcover

Seller: Book Deals, Tucson, AZ, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: Good. Good condition. This is the average used book, that has all pages or leaves present, but may include writing. Book may be ex-library with stamps and stickers. 1.41. Seller Inventory # 353-1937785343-gdd

Contact seller

Buy Used

US$ 7.98
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Brothaler, Kevin
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785343 ISBN 13: 9781937785345
Used Softcover

Seller: Shakespeare Book House, Rockford, IL, U.S.A.

Seller rating 4 out of 5 stars 4-star rating, Learn more about seller ratings

Condition: Acceptable. Item in acceptable condition including possible liquid damage. As well answers may be filled in. May be missing DVDs, CDs, Access code, etc. 100%Money-Back Guarantee! Ship within 24 hours!! Seller Inventory # 570W2K000KUC_ns

Contact seller

Buy Used

US$ 4.01
Convert currency
Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Brothaler, Kevin
Published by Pragmatic Programmers, LLC, The, 2013
ISBN 10: 1937785343 ISBN 13: 9781937785345
Used Softcover

Seller: Better World Books: West, Reno, NV, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: Very Good. Used book that is in excellent condition. May show signs of wear or have minor defects. Seller Inventory # 45227659-6

Contact seller

Buy Used

US$ 9.64
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Seller Image

Brothaler, Kevin
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785343 ISBN 13: 9781937785345
Used Softcover

Seller: Goodwill of Silicon Valley, SAN JOSE, CA, U.S.A.

Seller rating 4 out of 5 stars 4-star rating, Learn more about seller ratings

Condition: good. Supports Goodwill of Silicon Valley job training programs. The cover and pages are in Good condition! Any other included accessories are also in Good condition showing use. Use can include some highlighting and writing, page and cover creases as well as other types visible wear. Seller Inventory # GWSVV.1937785343.G

Contact seller

Buy Used

US$ 7.86
Convert currency
Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

Quantity: 2 available

Add to basket

Seller Image

Brothaler, Kevin; Pfalzer, Susannah Davidson (EDT); Zechner, Mario (FRW)
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785343 ISBN 13: 9781937785345
Used Softcover

Seller: GreatBookPrices, Columbia, MD, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: As New. Unread book in perfect condition. Seller Inventory # 19351825

Contact seller

Buy Used

US$ 33.38
Convert currency
Shipping: US$ 2.64
Within U.S.A.
Destination, rates & speeds

Quantity: 2 available

Add to basket

There are 11 more copies of this book

View all search results for this book