Difference between revisions of "Puppetry Setup"

From Second Life Wiki
Jump to navigation Jump to search
(Change TP target in Castelet region to more useful location.)
(Add a bunch more useful info. (TODO: Tidy up!))
Line 1: Line 1:
[[Category:Puppetry]]
[[Category:Puppetry]]
{{TOC}}
{{KBwarning| The Puppetry system is still in a pre-release state, and as such the instructions will change. Be careful that the guide you follow is up-to-date with the current Puppetry viewer.]}}
{{KBwarning| The Puppetry system is still in a pre-release state, and as such the instructions will change. Be careful that the guide you follow is up-to-date with the current Puppetry viewer.]}}


As it stands right now, the puppetry viewer isn't that easy to set up for the average user. This page will hopefully help people find resources to allow them to get the puppetry system running on their computer.
As it stands right now, the puppetry viewer isn't that easy to set up for the average user. This page will hopefully help people find resources to allow them to get the puppetry system running on their computer.
'''This guide should be followed in a linear fashion for the easiest setup experience - also see [[#Guides|Guides]] for more info'''.


<b>This article valid as of {{REVISIONDAY}}/{{REVISIONMONTH1}}/{{REVISIONYEAR}}</b> (dmy).
<b>This article valid as of {{REVISIONDAY}}/{{REVISIONMONTH1}}/{{REVISIONYEAR}}</b> (dmy).


= Viewers =
= Viewers =
First things first, we'll need to download a Puppetry-enabled viewer. Below lists currently-known Puppetry-compatible viewers.
*<b>[https://releasenotes.secondlife.com/viewer.html Linden Lab Official Viewer (Second Life Project Puppetry branch)]</b>
*<b>[https://releasenotes.secondlife.com/viewer.html Linden Lab Official Viewer (Second Life Project Puppetry branch)]</b>
*[https://github.com/Kadah/phoenix-firestorm_puppertry_exp Firestorm Test viewer (self-compile)]
*[https://github.com/Kadah/phoenix-firestorm_puppertry_exp Firestorm Test viewer (self-compile)]


= Guides =  
= Dependencies =
*<b>[https://bitbucket.org/lindenlab/leap/src/main/puppetry/README.md Linden Lab Official Guide]</b>
Before we continue, we'll need to download and install a couple of additional things that the Puppetry viewer relies on.
*[https://gist.github.com/FelixWolf/364e8f598717537eabdd790d2369181a Chaser Zaks' guide]


= Dependencies =
{{KBcaution|These dependencies assume that you are running Windows on your machine. Dependencies will be different if you use MacOS or Linux.}}
{{KBcaution|These dependencies assume that you are running Windows on your machine. Dependencies will be different if you use MacOS or Linux.}}


Line 24: Line 29:
(Optional)
(Optional)
* [https://git-scm.com/download/win GIT runtime]
* [https://git-scm.com/download/win GIT runtime]
= Guides =
Okay! Now we're getting somewhere. The following guides will instruct you on how to build the LEAP framework that the Puppetry viewer relies on.
{{KBtip|If you don't understand one guide, try another!}}
*<b>[https://bitbucket.org/lindenlab/leap/src/main/puppetry/README.md Linden Lab Official Guide]</b>
*[https://gist.github.com/FelixWolf/364e8f598717537eabdd790d2369181a Chaser Zaks' guide]
= Plugins =
Great! So we've got the LEAP framework installed. Now we need a plugin to interface with LEAP to control Puppetry!
== Webcam Puppetry ==
'''Author:''' Linden Lab
'''Description:''' Use your webcam to translate your movements in real life into Second Life!
'''LEAP Plugin:''' webcam_puppetry.py
'''Link:''' [https://bitbucket.org/lindenlab/leap/src/main/puppetry/webcam/ LEAP Repo.]
=== Requirements ===
* An OpenCV-compatible webcam. ''(Most are, but there are some exceptions)''
=== Caveats ===
* OBS Virtual Camera never initializes. (This is an [https://github.com/opencv/opencv/issues/19746 OpenCV bug]).
* Slower webcams may fail to initialize in time, causing the plugin to close with a failure. (This is a bug - can be worked around by changing <code>Line 51</code> in <code>camera.py</code> from <code>self.device = cv2.VideoCapture(self.capture_id)</code> to <code>self.device = cv2.VideoCapture(self.capture_id, cv2.CAP_DSHOW)</code> )
* The default framerate of Webcam Puppetry is a maximum of '''10 fps'''. This can be changed by modifying <code>Line 104</code> in <code>webcam_puppetry.py</code> from <code>UPDATE_PERIOD = 0.1</code> to <code>UPDATE_PERIOD = 0.04</code>. This will change the Puppetry framerate to be a maximum of '''25 fps'''.
== Blender SL Puppetry ==
'''Author:''' Chaser Zaks
'''Description:''' Animate your avatar by manipulating a Blender armature!
'''LEAP Plugin:''' puppetstream.py
'''Link:''' [https://github.com/FelixWolf/blender-sl-puppetry Github Repo.]
=== Requirements ===
* Blender
* llBase (Pypi)
=== Caveats ===
* None known.


= Puppetry-enabled locations =
= Puppetry-enabled locations =

Revision as of 17:16, 1 September 2022


KBwarning.png Warning: The Puppetry system is still in a pre-release state, and as such the instructions will change. Be careful that the guide you follow is up-to-date with the current Puppetry viewer.]

As it stands right now, the puppetry viewer isn't that easy to set up for the average user. This page will hopefully help people find resources to allow them to get the puppetry system running on their computer.

This guide should be followed in a linear fashion for the easiest setup experience - also see Guides for more info.

This article valid as of 1/9/2022 (dmy).

Viewers

First things first, we'll need to download a Puppetry-enabled viewer. Below lists currently-known Puppetry-compatible viewers.

Dependencies

Before we continue, we'll need to download and install a couple of additional things that the Puppetry viewer relies on.

KBcaution.png Important: These dependencies assume that you are running Windows on your machine. Dependencies will be different if you use MacOS or Linux.
KBwarning.png Warning: While a Python runtime is available from the Microsoft Store, this version is incompatible with the Puppetry viewer. Only use the version from the Python website (linked above).

(Optional)


Guides

Okay! Now we're getting somewhere. The following guides will instruct you on how to build the LEAP framework that the Puppetry viewer relies on.

KBtip2.png Tip: If you don't understand one guide, try another!

Plugins

Great! So we've got the LEAP framework installed. Now we need a plugin to interface with LEAP to control Puppetry!

Webcam Puppetry

Author: Linden Lab

Description: Use your webcam to translate your movements in real life into Second Life!

LEAP Plugin: webcam_puppetry.py

Link: LEAP Repo.

Requirements

  • An OpenCV-compatible webcam. (Most are, but there are some exceptions)

Caveats

  • OBS Virtual Camera never initializes. (This is an OpenCV bug).
  • Slower webcams may fail to initialize in time, causing the plugin to close with a failure. (This is a bug - can be worked around by changing Line 51 in camera.py from self.device = cv2.VideoCapture(self.capture_id) to self.device = cv2.VideoCapture(self.capture_id, cv2.CAP_DSHOW) )
  • The default framerate of Webcam Puppetry is a maximum of 10 fps. This can be changed by modifying Line 104 in webcam_puppetry.py from UPDATE_PERIOD = 0.1 to UPDATE_PERIOD = 0.04. This will change the Puppetry framerate to be a maximum of 25 fps.

Blender SL Puppetry

Author: Chaser Zaks

Description: Animate your avatar by manipulating a Blender armature!

LEAP Plugin: puppetstream.py

Link: Github Repo.

Requirements

  • Blender
  • llBase (Pypi)

Caveats

  • None known.

Puppetry-enabled locations

Once you're set up, you'll want somewhere to test!

Currently, only a few regions on the Beta grid (Aditi) have puppetry enabled: