Jump to content

  • Log In with Google      Sign In   
  • Create Account


camera problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Suspense   Members   -  Reputation: 449

Like
0Likes
Like

Posted 06 May 2013 - 04:37 PM

Hi everyone, I'm working on a 3D globe on Android, and it works great except for a camera problem I haven't been able to figure out yet.  I'm rotating the camera around the globe in a timer:

 

double time = (System.currentTimeMillis() & 0x0000ffff) / 1000.0;

camera.eye = new Vector3D(Math.sin(time), Math.cos(time), 0);

 

I expect the camera to orbit at a constant distance from the globe.  Instead, it seems to wobble back and forth a bit.  Also, there's some clipping that comes in and out on either side of the globe as it rotates.  Check this video:

http://www.filedropper.com/globe

 

I'm hoping that someone has seen this kind of newbie mistake before and can give me some idea where my problem is.  Any ideas?



Sponsor:

#2 Suspense   Members   -  Reputation: 449

Like
0Likes
Like

Posted 07 May 2013 - 10:39 AM

Never mind.  It was a problem with my matrix multiply function.  Nothing to see here, move along.  -_-






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS