Code Monkey home page Code Monkey logo

characterdriven-blenderaddon's Introduction

Blender addon for driving character

The addon drives a 3D cartoon character by transferring SMPL's pose and global translation into the skeleton of the 3D character. Poses and global translation can be obtained from RGB images using ROMP or any SMPL-based 3D pose estimation model. If the estimation model outputs pose and global position at a high speed, then you can achieve the effect of driving 3D characters in real time in Blender.

Two Pipeline

From Video to Animation

image

Steps:

  1. Modify the path of results.npz in server.py and start server.py in the command line.
  2. Open Beta.blend or SMPL.blend and click on the triangle in the upper right corner.If a message is displayed in the lower left corner, the addon is running successfully. 图 2
  3. Go back to the Layout view and click on the small icon in the upper right to get the Texture. 图 1
  4. Press Ctrl+E to run the addon. At this time, the keyframe that is being transferred is displayed in the command line running server.py. 图 4
  5. Press the space in Blender to view the character animation.

If you want to use your own video, you need to use ROMP's video.sh to get a npz file.

The Webcam Drive Character in Real-Time

image

Steps:

  1. Connect the camera and run ROMP's webcam_blender.sh.
  2. The rest of the steps are the same as steps 2, 3 of From Video to Animation, where the 3D characters in Blender are driven in real time by pressing Ctrl+E.Press A to stop it.

Use Your Own 3D Character

If you are familiar with Blender and you want to use your own 3D characters, make sure that the skeleton is exactly the same as the SMPL's skeleton and that the bones are named the same as the bones of my 3D characters (of course, you can also change the bone names in the addon). All the 24 bones in SMPL need to be named the same. There is no need to change the name of the finger bones.

图 3

Use Your Own Background

If you need a video background in the demo, select Compositing in the top menu bar, click Open Clip in the Movie Clip, and select your video. It is best not to use video as a background when driving in real time to prevent animations from getting too stuck.

图 7

Acknowledgement

characterdriven-blenderaddon's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.