Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-19-2009, 08:25 PM   #42 (permalink)
mauriceatron
Tutorial Author
 
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 29
mauriceatron is on a distinguished road
Default

Quote:
Originally Posted by gravity View Post
Maurice, - Thanks a lot for the excellent tutorials! If I ever make it big with an app, I'll be sure to donate for your dedication!

For tutorial 8 (labeled 7), I noticed what I think is an error. You say the normal vector is perpendicular to the plane which the vertices make up:

Shouldn't the normal vector point in the opposite direction here? The vertices are going in a clockwise direction, 0 -> 1 -> 2 and by the right-hand rule, the normal should be opposite.
Hi gravity,

Perhaps, don't really remember what I was trying to achieve there as that diagram is a bit pointless except that it shows that the normal is perpendicular to a primitive's face. Also, that's a surface normal.

Nah, that section isn't my best work (not that I have any particularly good work). I'll re-write that bit.

Oh, and to answer your question, the normal is the cross product of two of the polygon's edges. That's what gives you the direction, not the right hand rule.

Simon

Last edited by mauriceatron; 06-20-2009 at 08:01 AM. Reason: Fixed stoopid mistake introduced with last "edit"
mauriceatron is offline   Reply With Quote
 

» Advertisements
» Online Users: 430
16 members and 414 guests
baja_yu, buggen, evilmatt10, givensur, Mnashmi, networ, pabloruiz55, pochuang, QuantumDoja, Sami Gh, scubadivingfool, Speed, teebee74, TheStalker, thestojkovic, za1407
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,636
Threads: 94,101
Posts: 402,819
Top Poster: BrianSlick (7,990)
Welcome to our newest member, samdanielblr
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:39 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.