3D Rad - Free 3D game maker - Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Coming soon: software updates

Author Topic: Enhanced orbit cam  (Read 409 times)

jestermon

  • 3D Rad Guru
  • *****
  • Posts: 1341
Enhanced orbit cam
« on: July 18, 2010, 01:35:57 AM »
ENHANCED ORBIT CAM
Based on a previous orbit cam algorithm posted by chebob69.

Controls

LEFT, RIGHT = Rotate left, right
UP, DOWn    = Rotate up, down
PgUp, PgDn  = Zoom in, out
Home End   = Pan up, down
< key, > key      = Pan left, right
INS         = Move forward

How it works.. Making use of specially placed bones in the z_vp00 skinmesh, the resulting directional vector is used to facilitate left, right, and forward calculations.

To install, simply unzip the archive to your 3DRad_Res directory. The file contains the project and a single skinmesh

« Last Edit: July 18, 2010, 07:36:10 PM by jestermon »
Logged

Bootnut

  • 3D Rad Guru
  • *****
  • Posts: 628
Re: Enhanced orbit cam
« Reply #1 on: July 18, 2010, 09:50:10 AM »
really cool! it seems to twist just before it rotates for me, is this by design?
Logged

jestermon

  • 3D Rad Guru
  • *****
  • Posts: 1341
Re: Enhanced orbit cam
« Reply #2 on: July 18, 2010, 09:58:26 AM »
really cool! it seems to twist just before it rotates for me, is this by design?
The little "lag" before the rotation is due to the camera correcting itself with Rad's built in Lookat functionality. No way to get rid of that, unless one uses a different, more complex calculation, without using the default "lookat"
Logged

Logmyster

  • 3D Rad Guru
  • *****
  • Posts: 683
Re: Enhanced orbit cam
« Reply #3 on: July 18, 2010, 11:06:59 AM »
awesome
Logged
lol I iz juzt 'appy coz Iz c-c-'an write em' scriptz now.
Donations so far $20 USD
Using 6.48 and 7.01

chebob69

  • 3D Rad Guru
  • *****
  • Posts: 1091
    • WWW
Re: Enhanced orbit cam
« Reply #4 on: July 18, 2010, 06:59:54 PM »
Cool.

I did a similar one a long while back which was based on cylindrical polars. Your script's a lot different though so I'm guessing you didn't copy me.
Logged
TexGen - an open source terrain texture generator.
http://www.3drad.com/forum/index.php?topic=4128.0

jestermon

  • 3D Rad Guru
  • *****
  • Posts: 1341
Re: Enhanced orbit cam
« Reply #5 on: July 18, 2010, 07:33:20 PM »
Cool.

I did a similar one a long while back which was based on cylindrical polars. Your script's a lot different though so I'm guessing you didn't copy me.
I used the polars part from another script, so it probably is yours then. That's why I aked who the author was.. I'll add the required credits, as I always do when using "borrowed" code. Thanks chebob69.
Logged

jestermon

  • 3D Rad Guru
  • *****
  • Posts: 1341
Re: Enhanced orbit cam
« Reply #6 on: July 25, 2010, 06:14:04 PM »
Enhance OrbitCam – Fixes and additions

1..The “lag” during rotations has been removed. The Camera is no longer linked to the target that used Rad's built-in “lookat” functionality. This has been replaced by a scripted  “lookat”.
2.. z_vp00 Vector Pointer mesh has been altered – Will not work on previous version.
3.. Backward movement has been added to the camera
4..The Left and Right rotation keys have been swapped, to allow for better flight simulation

Controls

PgUp key – Zoom In
PgDn key – Zoom Out
Home key – Pan Up
End key – Pan Down
Insert key – Move Forwards
Delete key – Move Backwards  <--- New
Left key – Rotate Left
Right key – Rotate Right
Up key – Rotate Up
Down key – Rotate Down
< key – Pan Left
> key – Pan Right
Left + Insert – Forwards + Left (Flight simulation)
Right + Insert – Forwards _ Right (Flight simulation)

Logged

facujk101

  • Jr. Member
  • **
  • Posts: 56
    • WWW
Re: Enhanced orbit cam
« Reply #7 on: July 28, 2010, 08:35:21 AM »
very cool

shadmar

  • 3D Rad Guru
  • *****
  • Posts: 1710
Re: Enhanced orbit cam
« Reply #8 on: July 29, 2010, 03:56:07 PM »
Nice little jewel. :)
Logged
  • Import your art using RadImp v0.9
  • Using v6.50/7.03b (get it now by donating here)
  • Rig: Dell XPS 1530M, G8600M GT 256mb, Win7-x64, 4GB.