Jump to content

RC Vehicle Cam Tracker

You are about to reply to a thread that has been inactive for 792 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

There are a couple of ways to go about this project depending on how you want it to work.

If you are wanting it to be completely remote controlled where you're just watching and controlling then you would have a structure similar to this

    -Main Controller Script
    -Cam Follower Script

[RC Helicopter]
    -Control Receiver Script

The Main Controller would handle inputs from user and then translate them accordingly to the Control Receiver
The input would be either movement controls which would be passed through llRegionSayTo() directly to the object by its UUID
The Control Receiver would listen in on a negative channel and parse data it receives and then apply the movement you wish to the object

The Cam Follower would take user camera controls (PERMISSION_CONTROL_CAMERA|PERMISSION_TRACK_CAMERA) and then on a timer() if object is around and user is still wanting the camera to follow then it would update camera position with llSetCameraParams()

Assuming you want to have it so others can watch as someone else controls the helicopter it would be similar to the above except you would most likely just move the controls all directly into [RC Helicopter] and you would just create a Cam Follower Script hud where people can select the object they want to follow by its UUID, exactly like the above scenario except its just detached from control and requires input of the UUID.

Some noteworthy comments about the code:
-Don't forget to use llClearCameraParams(); when done handling camera,
-you will most likely be using a lot of llGetCameraRot(); and llGetCameraPos();
-For the controller the Main Controller would be the one that takes permissions and inputs, the Controller Receiver will only receive listen() events from the channel specified
-If you're planning to have more than one RC in an area you will want to make sure that the llListen's are not the same for each, have them generate from a function which takes into account some sort of uniqueness


Link to post
Share on other sites

The primary bummer is there is no automatic scripted camera tracking of objects or agents other than the camera owner and/or whatever they sit on.

You will have to set and clear camera params rapidly and that leaves you with a choppy mess.

There are several feature requests for giving us essentially camera control reform, things like scripted camera resetting, scripted camera focus with local pos/rot offsets, scripted entering/leaving mouselook(without the need to sit on an object), camera "rail" binding, etc.

Maybe one day, LL will invest in improving it, but I'm not holding my breath.

Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 792 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...