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 / camera rotation around a fixed object -help!

Author
Message
Shaky Badger
17
Years of Service
User Offline
Joined: 18th Nov 2007
Location:
Posted: 19th Nov 2007 03:21
title pretty much says it all, i'm trying to get my camera to rotate around an object (sphere) but i was hoping that there was an easy way to do this and i cant seem to figure it out. I was trying to move the camera based on the mouse, for example click and drag and it will rotate around the sphere, so far all it seems to want to do for me is just click and drag and then pan around the scene. Are there any commands that will help me in this endevour? any sort of pivot on an object or what? thanks for any suggestions on where to start.

badgering since 1986
vorconan
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Wales
Posted: 19th Nov 2007 20:36 Edited at: 19th Nov 2007 20:43
Here goes:



Not sure how to make the mouseclick() = 1 zoom in yet, you may have to use the main rotate code twice for each mouseclick, I'll try it and see.

EDIT - Yeah, thought so. Here's an updated bit of code, you can now rotate around the object with the right mouse button and zoom in with the left.





revenant chaos
Valued Member
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 22nd Nov 2007 14:44
or you could do it this way

Login to post a reply

Server time is: 2024-11-25 09:52:15
Your offset time is: 2024-11-25 09:52:15