Wrox Programmer Forums
|
BOOK: Game and Graphics Programming for iOS and Android with OpenGL ES 2.0
This is the forum to discuss the Wrox book Game and Graphics Programming for iOS and Android with OpenGL ES 2.0 by Romain Marucchi-Foino; ISBN: 978-1-1199-7591-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Game and Graphics Programming for iOS and Android with OpenGL ES 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2012, 03:00 AM
Registered User
 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Example 3-3 is not as in book

Hello,
I went through example 3-3 in the book, and expected an output similar to the one of figure 3-3, and as explained by the section.

However, the lighting is not hitting Momo, and there is no lighting effect on the model as it is rotating.

Instead, my Momo is all green, blue, and black, and the colors cover the complete model instead of hitting it from a lighting angle.

Any clue?

Thanks.
 
Old July 14th, 2012, 04:54 AM
Registered User
 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default It could be a device dependant issue

I have run the code on a HTC Android and it worked as expected:

1. Momo is white
2. As Momo rotated, the model in the location of viewer is more intense (hit by the light)

It seems there is something with the supported colors on the other android device I am using, or needs some more tweaking.

I am new to game programming, so if anyone has a clue or some guidance, please let me know.

I shall also keep investigating.

Thanks.

Last edited by shirad; July 14th, 2012 at 06:33 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help,I can't find my book in your book list. 5uer All Other Wrox Books 2 August 21st, 2004 12:43 AM
I can't find my book in your book list. Vincent Yang All Other Wrox Books 1 July 5th, 2004 12:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.