Monday, April 27, 2009

Project Template Bugfix

If you've downloaded my OpenGL Xcode Project Template and are using it, you should re-download it. There's a potential crasher in there that's been fixed.



9 comments:

colinta said...

What is the fix? I'm already using the old one on a project, and need to apply the patch...

Jeff LaMarche said...

Copy the Vector3DNormalize from the new template, replacing the existing version. The early version was doing a division by zero when it should have been doing an assignment of zero.

Jeff LaMarche said...

BTW: It's in the OpenGLCommon.h file.

A Beautiful Mind said...

Hi, Jeff

I am pretty new to this arena (including OpenGL itself). Your blog came to me as a Life Saver. Prety Good Work.
Thanks and one more thing. Keep it up.

barnaby gunning said...

line 216 of the project.pbxproj file [part of the ___PROJECTNAME___.xcodeproj bundle] still lists the "PRODUCT_NAME" as "GLGravity" ... I think this needs to be changed to "___PROJECTNAME___"

barnaby gunning said...

oh and by the way, thanks for your tutorial series and great work generally.

Jeff LaMarche said...

Barnaby:

Good catch, I'll fix that and get it reposted.

davidcann said...

Hi Jeff, I found that using this template with iPhone SDK 3.0 Beta 4 caused only a blank white screen to appear. I found that it was caused by the UIWindow's background color in the MainWindow.xib... changing it to be transparent fixed it.

Apple must have changed something, because it worked fine in Beta 3. It doesn't make sense, so I'm thinking this is probably an Apple bug.

Thanks for the template!

akash said...

i like ur website. thanks for this comment posting...
more templates http://www.itemplatez.com