1 / 13

eMuse

eMuse is a language and 2D animation framework that allows screenplays to be written in a natural language syntax. It provides a simple and extensible environment for creating animations. The generated Java source code animates the screenplay using an animation framework. With eMuse, writers and directors can easily create and visualize their plays before they hit the stage.

eworthy
Download Presentation

eMuse

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. eMuse Mark Ayzenshtat Elena Filatova Kristina Holst Vlad Shchogolev “Rapid Screenplay Prototyping Language”

  2. Motivation • Screenplays can succeed on paper but fail on stage. • Screenplay is the natural blueprint or “source code” for a play. • Writers and directors couldn’t care less about loops, functions, scope, etc.

  3. Overview • eMuse is 2 things: • a language • screenplay-like syntax • allows more-or-less free-form English • a 2D animation framework • simple: stick figures with superimposed images • extensible: custom behaviors

  4. Source Structure • Title / Author • Definitions • Characters • Props • Settings • Each of these is typed (e.g. Romeo: LovesickTeenager) • Exposition • Dialogue • Actions

  5. Syntax • As close to the syntax of a play written in natural language as possible, e.g. • Authors’ names • All possible formats can be accepted Stephen A. Edwards, Sasha, etc • Action format might include any combination (all combinations are parsed by one rule) • Direct object • Preposition • Indirect object • Adverb Francisco (appears on stage), Bernardo (takes sword), Francisco (appears away quickly)

  6. Illegal Semantics • eMUSE has quite simple semantics • No scoping • All variable names must be unique Romeo: <Young noble guy> Romeo: <Old peasant> Juliet: (kisses Romeo)

  7. Semantics (cont’d) • eMUSE has quite simple semantics • Characters and Props mentioned in the actions should be defined Character Romeo: <Young noble guy> Prop Book: <The Dragon Book> Definitions Juliet: (hits Romeo with Book) Exposition

  8. Default eMuse Compiler Screenplay Java Compiler • Two halves: • Lexer, Parser, Semantic Checker • Back end: OutputGenerator • Just an API – an interface – lots of different implementations possible • Default Implementation: Java source code

  9. Java Output Generator • A Java Model API • Models classes, methods, modifiers, etc. as Java objects. • Not This: writeSource(“public class Foo {”);But This: Class c = new Class(“Foo”); c.addModifier(Modifier.kPublic); … sourceWriter.write(c); • Advantage: generated source is readable, consistent

  10. Java Output Generator (cont’d) • What does the generated Java source do when compiled and run? • Answer: Animates the screenplay using our Animation Framework

  11. Animator Design • Two basic entities derived from parse tree • Actions • Stage objects • Actions occur over discrete time intervals • Stage objects are organized in a class hierarchy

  12. Animator Design (cont’d) • Affine Transformation • Composition of matrix multiplicationsdefine transformation of local to global coordinate system. • used to construct scene graph in which individual objects can be manipulated from any node in the scene graph Global Local

  13. Actual Screenshot Dubya shares a serene moment with Prof. Edwards.

More Related