Difference between revisions of "Puppetry Setup"

From Second Life Wiki
Jump to navigation Jump to search
(Add internal link to Puppetry UG.)
(Update links to reflect move to Github)
 
Line 21: Line 21:


{{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.}}
{{KBwarning|Python versions above 3.10 are unsupported at this time due to dependencies (Mediapipe)}}


* Microsoft Visual Studio ([https://visualstudio.microsoft.com/downloads/#visual-studio-community-2022 Full install], and [https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022 VS C++ build tools])
* Microsoft Visual Studio ([https://visualstudio.microsoft.com/downloads/#visual-studio-community-2022 Full install], and [https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022 VS C++ build tools])
Line 35: Line 37:


{{KBtip|If you don't understand one guide, try another!}}
{{KBtip|If you don't understand one guide, try another!}}
 
*<b>[https://github.com/secondlife/leap/blob/main/puppetry/README.md Linden Lab Official Guide]</b>
*<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]
*[https://gist.github.com/FelixWolf/364e8f598717537eabdd790d2369181a Chaser Zaks' guide]
*<sup>[https://bitbucket.org/lindenlab/leap/src/main/puppetry/README.md Old LL Official Guide]</sup>


= Plugins =
= Plugins =
Line 49: Line 51:
'''LEAP Plugin:''' webcam_puppetry.py
'''LEAP Plugin:''' webcam_puppetry.py


'''Link:''' [https://bitbucket.org/lindenlab/leap/src/main/puppetry/webcam/ LEAP Repo.]
'''Link:''' [https://github.com/secondlife/leap/tree/main/puppetry/webcam LEAP Repo.]


=== Requirements ===
=== Requirements ===
Line 69: Line 71:


=== Requirements ===
=== Requirements ===
* Blender
* [https://www.blender.org/ Blender]
* llBase (Pypi)
* [https://github.com/secondlife/python-llbase llBase] [https://pypi.org/project/llbase/ (Pypi)]


=== Caveats ===
=== Caveats ===

Latest revision as of 16:34, 22 December 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 22/12/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: Python versions above 3.10 are unsupported at this time due to dependencies (Mediapipe)
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

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: