Skip to content

Instantly share code, notes, and snippets.

@gfodor
Last active February 23, 2021 18:14
Show Gist options
  • Save gfodor/54df680698f4cc9721d6300547425273 to your computer and use it in GitHub Desktop.
Save gfodor/54df680698f4cc9721d6300547425273 to your computer and use it in GitHub Desktop.
Jel Director Mode
This is a quick overview of the (very slapped together) director tools in Jel.
The tools let you:
- Switch to an external object, like a duck, as the camera
- Move the camera along a linear track (either once, or repeatedly back and forth) by 'marking' two points in 3d space
- Track the avatar with the camera, or have the camera maintain it's proper orientation
Simple walk through (after adding query variable ?director=true below)
- Go to a world
- Spawn a duck with /
- Move the duck to the first position/orientation you want the camera
- Hover over the duck and press Q to mark the origin of the camera lerp
- (Optional) move the duck to the second point you want the camera to move to
- Hover over the duck and press E to mark the end point. Duck will start lerping. If you set "director_loop=true` it will move back and forth.
- If the lerp looks reasonable, hover over the duck and hit T to switch the camera to view the duck
Query variables, added to the URL after ? to use director mode:
director=true enables director mode, which adds new input controls
director_loop=true will cause the camera position to loop back and forth between your two endpoints
otherwise you have to call `SYSTEMS.directorSystem.restart()` in the console to begin the camera lerp again (5s delay). Not looping is good if you are doing a shot where the camera comes to rest after an initial pan in. (But if your take is no good, you have to call the restart routine)
director_track_me=true will cause the lerping object's camera view to always point at your avatar
director_hide_self=true will cause the camera to hide your avatar so you can take environmental shots etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment