Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Move along line of sight?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move along line of sight?




On Apr 2, 2009, at 11:00 PM, Richard S. Wright Jr. wrote:

If the rotation is working based on the accelerometer, I'd say your pretty much there. Why your not moving forward may depend on the rest of your code... What do you draw after the ApplyCameraTransform(), and what is your projection set up as.... I hope not an orthographic one.... No foreshortening, and it would look like you are not getting closer to anything because everything would stay the same size as long as it isn't clipped. You need to use glFrustum, or some type of gluPerspective replacement. Do you have my GLFrustum class? This works on the iPhone too.


Yes, I am using frustrum.

I got it working now! Not sure why, but when I set it to move using values from my drag it worked - not sure why just using 20 (for testing) did not work.


Thank you very, very much for your help!


Best,

Jeshua Lacock
Founder/Programmer
3DTOPO Incorporated
<http://3DTOPO.com>
Phone: 877.240.1364

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Move along line of sight? (From: Jeshua Lacock <email@hidden>)
 >Re: Move along line of sight? (From: "Richard S. Wright Jr." <email@hidden>)
 >Re: Move along line of sight? (From: Jeshua Lacock <email@hidden>)
 >Re: Move along line of sight? (From: "Richard S. Wright Jr." <email@hidden>)
 >Re: Move along line of sight? (From: Jeshua Lacock <email@hidden>)
 >Re: Move along line of sight? (From: "Richard S. Wright Jr." <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.