Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 Re: Help Me ! » circle to 3d coordinates » 2005-11-07 23:12:58

erm, nevermind. the horrible performance I was talking about was due to a couple of problems with my algorithm and the method of refreshing the scene. rotating the entire scene is just fine.

#2 Help Me ! » circle to 3d coordinates » 2005-11-07 22:27:43

robjohns
Replies: 3

howdy,

I've been playing around with computer graphics after taking a course on it at uni. What I want to do is move a "camera" around an arbitary point ("origin") by a known distance... the method taught for this kind of thing was rotating the entire scene and leave the camera unchanged, but that's horribly inefficient for a scene with a high poly count...

The way I've been thinking to do this is to move the camera along an imaginary circle, always pointing at the origin. My attempts to figure this out myself have been pretty bad wink

So say the origin is at (0,0,0) (x,y,z) and the camera is (10, 10, 0). The y value will be constant (since it's the "up" axis) with new values for x and z simulating movement. I want the camera to move by, say, 5 degrees.

I can figure out where on the circle the camera has moved to (by finding the length of the arc), but how can I translate this back into 3d coordinates (with full 360 rotation)?

Cheers smile

Board footer

Powered by FluxBB