removed useless _ folders
This commit is contained in:
@@ -0,0 +1,368 @@
|
||||
// :CATEGORY:Camera
|
||||
// :NAME:Pose_Ball_camera_Control
|
||||
// :AUTHOR:Ferd Frederix
|
||||
// :CREATED:2012-03-10 23:41:43.637
|
||||
// :EDITED:2013-09-18 15:39:00
|
||||
// :ID:642
|
||||
// :NUM:872
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Pose_Ball_camera_Control
|
||||
// :CODE:
|
||||
//Original idea by Linden Lab's Dan Linden
|
||||
|
||||
// Mods by Ferd Frederix
|
||||
|
||||
|
||||
|
||||
key agent;
|
||||
|
||||
|
||||
|
||||
integer CHANNEL; // dialog channel
|
||||
|
||||
list MENU_MAIN = ["Default", "Overhead Cam", "Spin Cam", "Spaz Cam", "Drop Cam",
|
||||
|
||||
"Worm Cam", "Top Cam","Cam ON", "Cam OFF"]; // the main menu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
integer on = FALSE;
|
||||
|
||||
|
||||
|
||||
integer spaz = 0;
|
||||
|
||||
take_camera_control(key agent)
|
||||
|
||||
{
|
||||
|
||||
llRequestPermissions(agent, PERMISSION_CONTROL_CAMERA);
|
||||
|
||||
llSetCameraParams([CAMERA_ACTIVE, 1]); // 1 is active, 0 is inactive
|
||||
|
||||
on = TRUE;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
release_camera_control(key agent)
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
llSetCameraParams([CAMERA_ACTIVE, 0]); // 1 is active, 0 is inactive
|
||||
|
||||
llReleaseCamera(agent);
|
||||
|
||||
on = FALSE;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
focus_on_me()
|
||||
|
||||
{
|
||||
|
||||
vector here = llGetPos();
|
||||
|
||||
llSetCameraParams([
|
||||
|
||||
CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
|
||||
|
||||
CAMERA_BEHINDNESS_ANGLE, 0.0, // (0 to 180) degrees
|
||||
|
||||
CAMERA_BEHINDNESS_LAG, 0.0, // (0 to 3) seconds
|
||||
|
||||
CAMERA_DISTANCE, 0.0, // ( 0.5 to 10) meters
|
||||
|
||||
CAMERA_FOCUS, here, // region relative position
|
||||
|
||||
CAMERA_FOCUS_LAG, 0.0 , // (0 to 3) seconds
|
||||
|
||||
CAMERA_FOCUS_LOCKED, TRUE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_FOCUS_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
// CAMERA_PITCH, 80.0, // (-45 to 80) degrees
|
||||
|
||||
CAMERA_POSITION, here + <4.0,4.0,4.0>, // region relative position
|
||||
|
||||
CAMERA_POSITION_LAG, 0.0, // (0 to 3) seconds
|
||||
|
||||
CAMERA_POSITION_LOCKED, TRUE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_POSITION_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
CAMERA_FOCUS_OFFSET, ZERO_VECTOR // <-10,-10,-10> to <10,10,10> meters
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
default_cam()
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
llClearCameraParams(); // reset camera to default
|
||||
|
||||
llSetCameraParams([CAMERA_ACTIVE, 1]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
driving_cam()
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
default_cam();
|
||||
|
||||
llSetCameraParams([
|
||||
|
||||
CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
|
||||
|
||||
CAMERA_BEHINDNESS_ANGLE, 45.0, // (0 to 180) degrees
|
||||
|
||||
CAMERA_BEHINDNESS_LAG, 0.5, // (0 to 3) seconds
|
||||
|
||||
CAMERA_DISTANCE, 8.0, // ( 0.5 to 10) meters
|
||||
|
||||
//CAMERA_FOCUS, <0.0,0.0,5.0>, // region relative position
|
||||
|
||||
CAMERA_FOCUS_LAG, 0.05 , // (0 to 3) seconds
|
||||
|
||||
CAMERA_FOCUS_LOCKED, FALSE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_FOCUS_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
CAMERA_PITCH, 20.0, // (-45 to 80) degrees
|
||||
|
||||
//CAMERA_POSITION, <0.0,0.0,0.0>, // region relative position
|
||||
|
||||
CAMERA_POSITION_LAG, 0.1, // (0 to 3) seconds
|
||||
|
||||
CAMERA_POSITION_LOCKED, FALSE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_POSITION_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
CAMERA_FOCUS_OFFSET, <3.0,0.0,2.0> // <-10,-10,-10> to <10,10,10> meters
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
side_cam()
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
llClearCameraParams(); // reset camera to default
|
||||
|
||||
llSetCameraParams([
|
||||
|
||||
CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
|
||||
|
||||
CAMERA_BEHINDNESS_ANGLE, 0.0, // (0 to 180) degrees
|
||||
|
||||
CAMERA_BEHINDNESS_LAG, 0.0, // (0 to 3) seconds
|
||||
|
||||
CAMERA_DISTANCE, 0.0, // ( 0.5 to 10) meters
|
||||
|
||||
//CAMERA_FOCUS, <0.0,0.0,5.0>, // region relative position
|
||||
|
||||
CAMERA_FOCUS_LAG, 0.0 , // (0 to 3) seconds
|
||||
|
||||
// CAMERA_FOCUS_LOCKED, FALSE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_FOCUS_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
// CAMERA_PITCH, 80.0, // (-45 to 80) degrees
|
||||
|
||||
//CAMERA_POSITION, <0.0,0.0,0.0>, // region relative position
|
||||
|
||||
CAMERA_POSITION_LAG, 0.0, // (0 to 3) seconds
|
||||
|
||||
// CAMERA_POSITION_LOCKED, FALSE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_POSITION_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
CAMERA_FOCUS_OFFSET, <0.0,6.0,0.0> // <-10,-10,-10> to <10,10,10> meters
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
rearview_cam()
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
llSetCameraParams([
|
||||
|
||||
CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
|
||||
|
||||
CAMERA_BEHINDNESS_ANGLE, 180.0, // (0 to 180) degrees
|
||||
|
||||
CAMERA_BEHINDNESS_LAG, 0.0, // (0 to 3) seconds
|
||||
|
||||
// CAMERA_DISTANCE, 10.0, // ( 0.5 to 10) meters
|
||||
|
||||
//CAMERA_FOCUS, <0.0,0.0,5.0>, // region relative position
|
||||
|
||||
CAMERA_FOCUS_LAG, 3.0 , // (0 to 3) seconds
|
||||
|
||||
// CAMERA_FOCUS_LOCKED, FALSE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_FOCUS_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
// CAMERA_PITCH, 80.0, // (-45 to 80) degrees
|
||||
|
||||
//CAMERA_POSITION, <0.0,0.0,0.0>, // region relative position
|
||||
|
||||
// CAMERA_POSITION_LAG, 0.0, // (0 to 3) seconds
|
||||
|
||||
// CAMERA_POSITION_LOCKED, FALSE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_POSITION_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
CAMERA_FOCUS_OFFSET, <5.0,2.0,-2.0> // <-10,-10,-10> to <10,10,10> meters
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
overhead_cam()
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
default_cam();
|
||||
|
||||
llSetCameraParams([
|
||||
|
||||
CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
|
||||
|
||||
CAMERA_BEHINDNESS_ANGLE, 180.0, // (0 to 180) degrees
|
||||
|
||||
CAMERA_BEHINDNESS_LAG, 0.5, // (0 to 3) seconds
|
||||
|
||||
CAMERA_DISTANCE, 10.0, // ( 0.5 to 10) meters
|
||||
|
||||
//CAMERA_FOCUS, <0.0,0.0,5.0>, // region relative position
|
||||
|
||||
CAMERA_FOCUS_LAG, 0.05 , // (0 to 3) seconds
|
||||
|
||||
CAMERA_FOCUS_LOCKED, FALSE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_FOCUS_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
CAMERA_PITCH, 80.0, // (-45 to 80) degrees
|
||||
|
||||
//CAMERA_POSITION, <0.0,0.0,0.0>, // region relative position
|
||||
|
||||
CAMERA_POSITION_LAG, 0.0, // (0 to 3) seconds
|
||||
|
||||
CAMERA_POSITION_LOCKED, FALSE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_POSITION_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
CAMERA_FOCUS_OFFSET, <0.0,0.0,0.0> // <-10,-10,-10> to <10,10,10> meters
|
||||
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
drop_camera_5_seconds()
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
llSetCameraParams([
|
||||
|
||||
CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
|
||||
|
||||
CAMERA_BEHINDNESS_ANGLE, 0.0, // (0 to 180) degrees
|
||||
|
||||
CAMERA_BEHINDNESS_LAG, 0.5, // (0 to 3) seconds
|
||||
|
||||
CAMERA_DISTANCE, 3.0, // ( 0.5 to 10) meters
|
||||
|
||||
//CAMERA_FOCUS, <0.0,0.0,5.0>, // region relative position
|
||||
|
||||
CAMERA_FOCUS_LAG, 2.0, // (0 to 3) seconds
|
||||
|
||||
CAMERA_FOCUS_LOCKED, FALSE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_FOCUS_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
CAMERA_PITCH, 0.0, // (-45 to 80) degrees
|
||||
|
||||
//CAMERA_POSITION, <0.0,0.0,0.0>, // region relative position
|
||||
|
||||
CAMERA_POSITION_LAG, 0.05, // (0 to 3) seconds
|
||||
|
||||
CAMERA_POSITION_LOCKED, TRUE, // (TRUE or FALSE)
|
||||
|
||||
CAMERA_POSITION_THRESHOLD, 0.0, // (0 to 4) meters
|
||||
|
||||
CAMERA_FOCUS_OFFSET, <0.0,0.0,0.0> // <-10,-10,-10> to <10,10,10> meters
|
||||
|
||||
]);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
worm_cam()
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
llSetCameraParams([
|
||||
|
||||
CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
|
||||
|
||||
CAMERA_BEHINDNESS_ANGLE, 180.0, // (0 to 180) degrees
|
||||
|
||||
CAMERA_BEHINDNESS_LAG, 0.0, // (0 to 3) seconds
|
||||
|
||||
CAMERA_DISTANCE, 8.0, // ( 0.5 to 10) meters
|
||||
|
||||
//CAMERA_FOCUS, <0.0,0.0,5.0>, // region relative position
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="Pose_Ball_camera_Control" guid="D8BFA660-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D8BFA73B-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Pose_Ball_camera_Control_1.lsl" guid="D8BFE40D-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user