Tuesday, February 18, 2003
Developing Smartphone Games
Posted by Andy Sjostrom in "DEVELOPER" @ 02:27 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtphn/html/smartphonegames.asp
I recently wrote an article for Microsoft Developer Network (MSDN) on the subject of Smartphone development, "Developing Smartphone Games". If you are interested in how to avoid common Smartphone development pitfalls, you should check this out. I turned to Sven Myhre, CEO and developer at Amazing Games, to get some inside knowledge about writing efficient games.
"How do you use your normal vectors? Are they used primarily for light calculations or visibility testing? I use a 2:8 fixed point format for my normal vector components, meaning I have a full -1.99609375 to +1.99609375 range available, with a 0.00390625 resolution. In other words, I have 8 bits of fractional resolution to cover a full 360 degrees with 1.4 degrees resolution. On a tiny screen like 176x220, no one can tell the difference if a point is lit with a (worst case) +/- 0.7 degrees wrong direction to the light. The benefit is that I can store both x, y, and z components in a singe word."
I recently wrote an article for Microsoft Developer Network (MSDN) on the subject of Smartphone development, "Developing Smartphone Games". If you are interested in how to avoid common Smartphone development pitfalls, you should check this out. I turned to Sven Myhre, CEO and developer at Amazing Games, to get some inside knowledge about writing efficient games.
"How do you use your normal vectors? Are they used primarily for light calculations or visibility testing? I use a 2:8 fixed point format for my normal vector components, meaning I have a full -1.99609375 to +1.99609375 range available, with a 0.00390625 resolution. In other words, I have 8 bits of fractional resolution to cover a full 360 degrees with 1.4 degrees resolution. On a tiny screen like 176x220, no one can tell the difference if a point is lit with a (worst case) +/- 0.7 degrees wrong direction to the light. The benefit is that I can store both x, y, and z components in a singe word."