people playing: 49, servers online: 14, games played: 139,720,797 Top Player: Cicada3301

  Toribash Community » Toribash » Mods » Lua scripts
Register FAQ General Rules Community
Reply
 
Thread Tools Display Modes
Old Feb 4, 2008   #1
FNugget
Toribash Legend
 
5th Dan Black Belt
Join Date: Dec 2007
Posts: 3,133



[REL]Free Roam Camera: FreeCam
See also expert version: ExpertCam

v3 and v3b

WASD and Shift WS work normally, allowing you to go almost completely vertical.
IJKL pan the camera, Shift IK raises and lowers the camera.

Version 3 introduces automatic camera control path making.
Q captures a key frame, Shift Q removes all keyframes.
E toggles automation mode. Press once to enter, press again to exit.
U controls air friction/springiness. The higher it is, the more it is constrained to the path. The lesser, the more it tends to bounce. U increases, Shift U decreases.
O controls acceleration gain. The higher it is, the faster it tries to approach the next key frame. The lower, the slower it approaches. O increases, Shift O decreases.

To fully understand how to take command of the auto path, you need to know how it works. The further the next point is, the faster it accelerates, adding velocity. Air friction cuts this speed by a certain percentage. Certain values and paths will tend to cause the camera to overshoot and swing past the keyframe. Useful at some points, not so much in others. PLAN ACCORDINGLY. Also, this only applies to the camera, not it's look point. The look point runs on a basic tween, moving directly/linear from one keyframes location to another.

In some cases, the acceleration controlled camera does not work (e.g. smooth and long panning). In this case, use v3b, where both camera and look point are controlled by a basic tween.

If you still don't get the sequence of how to use the auto pathing. I made a tutorial.
http://www.youtube.com/watch?v=1FhXFQsCOwQ

============================================

Change Log
v1_0: Panning Only
v1_1: Added up/down. Beware shift A,D.
v1_2: More stable.
v1_3: Airplane Flight Mode. DOES NOT replace v1_2.
v2: Complete control, except maximum/minimum pitch.
v2_1: Complete control.
v3: Complete AND automated control.
Attached Files
File Type: lua FreeCamv2_1.lua (2.6 KB, 446 views)
File Type: lua FreeCamv3.lua (5.4 KB, 229 views)
File Type: lua FreeCamv3b.lua (4.7 KB, 612 views)

Last edited by FNugget; Feb 7, 2014 at 08:01 PM..
FNugget is offline   Reply With Quote
Old Feb 4, 2008   #2
Pirate_old
I LIKE DICKS
 
Modest Belt
Join Date: Aug 2007
Posts: 4,687



omg...you can look anywhere you want?
Pirate_old is offline   Reply With Quote
Old Feb 4, 2008   #3
Frunk
ub3r
 
5th Dan Black Belt
Join Date: May 2007
Posts: 2,974



very nice
there is still a center however it does not move and camera feels much different.
[sigpic][/sigpic]
From a looong time ago:
[21:56]<Blam>ManBreakfast: Frunk wants to know why you banned him from IRC
[21:56]<ManBreakfast>oh, fuck
[21:56]=-=Mode #toribash -b Frunk!*Frankie'sip by ManBreakfast
Frunk is offline   Reply With Quote
Old Feb 4, 2008   #4
toritori9
Forumite
 
7th Dan Black Belt
Join Date: Nov 2007
Posts: 2,228



Superb! Though it is hard to use at first.
+rep
@pirate: yes
I'm the Juggernaut, Bitch!

http://toritori9.on.toribash.com
toritori9 is offline   Reply With Quote
Old Feb 5, 2008   #5
Beeh
Senior Member
 
7th Dan Black Belt
Join Date: Jul 2007
Posts: 1,177



what about up and down? can you make up and down? also, this is very nice. Jam will probably make a video using this.
Meow, I am quite a cat these days.
Even though no one knows me, I know more about them than they know of me.
Beeh is offline   Reply With Quote
Old Feb 5, 2008   #6
FNugget
Toribash Legend
 
5th Dan Black Belt
Join Date: Dec 2007
Posts: 3,133



v1_1

Extra troubleshooting: if your panning gets off axis, note which way is "forward pan" then press Shift A or D to align yourself to forward, then tap shift. It should re-align you.

Last edited by FNugget; Feb 5, 2008 at 05:32 AM..
FNugget is offline   Reply With Quote
Old Feb 5, 2008   #7
uncopyrightable
Senior Member
 
7th Dan Black Belt
Join Date: Oct 2007
Posts: 616



Thanks :]

EDIT: Won't load...
http://forum.toribash.com/showthread.php?t=29504
http://forum.toribash.com/showthread.php?t=110356
uncopyrightable is offline   Reply With Quote
Old Feb 5, 2008   #8
FNugget
Toribash Legend
 
5th Dan Black Belt
Join Date: Dec 2007
Posts: 3,133



O friggin A.
I know what it is. Only works with v3.1, since it has the camera hook.

Last edited by FNugget; Feb 5, 2008 at 10:37 PM..
FNugget is offline   Reply With Quote
Old Feb 13, 2008   #9
pancake
Member
 
3rd Dan Black Belt
Join Date: Aug 2007
Posts: 77



WHAT ARE THE KEYS FOR UP AND DOWN?
pancake is offline   Reply With Quote
Old Feb 13, 2008   #10
Tonakai
DONUT HYPE
 
Moskainen Belt
Join Date: Jul 2007
Posts: 6,653
Clan: NO



Originally Posted by pancake View Post
WHAT ARE THE KEYS FOR UP AND DOWN?

Originally Posted by FNugget View Post
Shift I,K will move the look at up and down.

http://www.youfail.org/
Tonakai is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:14 AM.




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
ragdoll fighting game physics fighting game ragdoll fighting physics funmotion joints martial arts karate pc mac free game turn based game