Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Circle Formula

Author
Message
Pyro_guy
20
Years of Service
User Offline
Joined: 10th Oct 2003
Location: England
Posted: 22nd Jan 2004 22:28
Could anyone help me out here?

I'm trying to put together a rotating camera system that will act like this:
When the user holds down the left/right key on the keyboard, the camera will rotate in a circle around an object. The object will be able to move so the center of the 'camera circle' must be adjustable.

I figure I need some kind of formula that will draw a circle of 'r' radius around points 'x' and 'y'

hope thats clear enough

Thanks in advance

Screw the rules...what can i blow up?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Jan 2004 22:35
This is how you do it.

The first way uses the 'easy' functions provided only by DBPro. The second uses the 'standard' way using sin and cos.



For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk
Lord Helmet
21
Years of Service
User Offline
Joined: 30th May 2003
Location:
Posted: 22nd Jan 2004 22:36
Turn Camera Left()
Turn Camera Right()
both turn the camera around in circles, hit f1 for instructions on how to use the commands

I think it was rotate camera Y() that rotated it around its y axis in degrees.
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 22nd Jan 2004 22:59 Edited at: 22nd Jan 2004 23:01
redundant info deleted

Mentor.

System spec : Pentium 3.0Ghz, 512MB DDR, 2x160Gb HD (using icewave hd coolers ), DVD RW/CD RW (all modes), multimedia front panel, 6 way surround sound, ATI radeon 9800Pro 128mb.
Pyro_guy
20
Years of Service
User Offline
Joined: 10th Oct 2003
Location: England
Posted: 22nd Jan 2004 23:04
Thanks Mentor, thats just what i needed

perhaps if i used the word 'orbiting' it would have made it clearer

Screw the rules...what can i blow up?
Pyro_guy
20
Years of Service
User Offline
Joined: 10th Oct 2003
Location: England
Posted: 22nd Jan 2004 23:06
NOOOOO! Mentor could you post that again??? Thats almost exactly what i needed!!!

Screw the rules...what can i blow up?
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Jan 2004 09:42
IanM's does exactly what you're asking for.

"eureka" - Archimedes

Login to post a reply

Server time is: 2024-09-21 18:33:42
Your offset time is: 2024-09-21 18:33:42