Giter Site home page Giter Site logo

lewisling / macaqueblender Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phenomenal-cat/macaqueblender

0.0 2.0 0.0 480 KB

A Python library for parametric control of a 3D rigged macaque face model for visual and social neuroscience

Python 64.49% MATLAB 35.51%

macaqueblender's Introduction

A Python library for parametric control of a 3D rigged macaque face model for visual and social neuroscience

This repository contains Python code for automated control of a Blender (www.blender.org) file containing a fully rigged, realistic 3-dimensional Rhesus macaque avatar. The mesh was generated from a CT scan of a live anesthetized Rhesus macaque, and edited in collaboration with a professional CGI artist (Julien Duchemin). The code allows quick setup of viewing geometry to match the experimental context, parametric manipulation of body, head and gaze direction, facial expression, skin and fur appearance, environment variables, and offline rendering of images and animations using the Cycles engine. In the future the code will include the ability to continuously morph facial identity based on an empirically-defined PCA "face-space" based on a library of CT data, as well as game engine (Blender/ Unity) control for real-time closed-loop social neuroscience experiments.

The following parameters of the model can be varied continuously:

  • Body position and orientation (Cartesian coordinates relative to world origin)

  • Head orientation (spherical coordinates relative to body)

  • Gaze direction (spherical coordinates relative to head)

  • Eye vergence angle (determined automatically for gaze target distance)

  • Pupil dilation

  • Eye lid closure (i.e. blink)

  • Blend shapes for 4 stereotypical facial expression apexes:

    1. neutral
    2. open-mouthed threat (agressive)
    3. bared teeth display (submissive 'fear grimace')
    4. pursed-lips /coo vocalization (affiliative)
    5. yawn
  • Additional independent control of brow, ears, and jaw movement.

  • Fur length, density, color, texture map

  • Skin color, material reflectance (including sub-surface scattering), and texture

  • Lighting direction, intensity, color, and type

References

For preliminary neural data recorded from macaque inferotemporal cortex during viewing of these stimuli, please see the following Society for Neuroscience poster by Murphy & Leopold (2017).

macaqueblender's People

Contributors

phenomenal-cat avatar

Watchers

James Cloos avatar Azita MIND Service 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.