Presentation is loading. Please wait.

Presentation is loading. Please wait.

A Reusable Scripting Engine for Automating Cinematics and Cut-Scenes in Video Games M. McLaughlin and M. Katchabaw Department of Computer Science The University.

Similar presentations


Presentation on theme: "A Reusable Scripting Engine for Automating Cinematics and Cut-Scenes in Video Games M. McLaughlin and M. Katchabaw Department of Computer Science The University."— Presentation transcript:

1 A Reusable Scripting Engine for Automating Cinematics and Cut-Scenes in Video Games M. McLaughlin and M. Katchabaw Department of Computer Science The University of Western Ontario

2 Outline 1.Introduction 2.Story Scripting and Scripting Languages 3.Reusable Scripting Engine Design 4.Prototype Implementation 5.Results to Date 6.Concluding Remarks

3 Introduction Storytelling is widely recognized as an important element of modern video games For games that are dependent on their story elements, the level of quality required for their story at least equals the need for quality in graphics, audio, and other aspects of the games Consequently, it is important to ensure there are sufficient supports for storytellers to be able to effectively and efficiently tell their stories with games

4 Introduction The current state-of-the-art typically requires programming background or expertise to provide story elements to games – This is usually outside the realm of most storytellers As a result, implementing stories in games tends to require storytellers to rely on programmers – Can be costly, prohibitively so in some cases – Possibility of communication and programming errors – Potential loss of direct and total control of the story, affecting the creative process and overall story quality

5 Introduction To assist storytellers, tools and supports are necessary to allow them to tell their stories with minimal, if any, programming required – The storytellers are given a simple and natural way of expressing their story – Automation prepares this content for presentation within the game with little or no human intervention This is the intent of our current work, a Reusable Scripting Engine – Our current focus is on story content for cinematics or cut-scenes, as opposed to in-game story elements

6 Introduction Screen shot from Trauma Center: Under the Knife

7 Story Scripting and Scripting Languages To automate the presentation of story elements from a story, the original story needs to be scripted in such a way that it can be easily acted out on-screen – This scripting must identify characters, dialogue, stage directions, setting, and other elements common to traditional dramatic pieces – This scripting will also need to be precise and formal enough for it to be easily processed and understood by the software automating the presentation

8 Story Scripting and Scripting Languages Fortunately, the Text Encoding Initiative (TEI) has developed an XML-based specification for marking up all different kinds of texts, including dramatic pieces Since XML is not necessarily the most natural platform for storytellers writing stories, several tools have been developed according to TEI guidelines for importing existing works or writing them from scratch

9 Story Scripting and Scripting Languages In the end, we could not completely follow TEI guidelines, and had to derive something with some modifications and extensions – TEI guidelines are incredibly detailed and require information that does not quite make sense in our target application – Several elements in the TEI guidelines are not formal or precise enough yet for our purposes – We needed additional elements to link content and assets into story scripts For example, consider the following …

10 Story Scripting and Scripting Languages Vizzini … …

11 Story Scripting and Scripting Languages … Well, I- I could have sworn I saw something. No matter. First, let's drink. Me from my glass, and you from yours. You guessed wrong....

12 Reusable Scripting Engine Design Director Stage Manager Script Reader Authoring Tools Script User Display Storyteller Reusable Scripting Engine

13 Reusable Scripting Engine Design Director – Manages script reader and stage manager to oversee the entire production – Provides playback control to the user, which could be the application the engine is embedded in Script Reader – Reads in the script and processes it – Verifies correctness and completeness of script – Generates a collection of stage actions from the script, creating a performance, and gives this performance to the director

14 Reusable Scripting Engine Design Stage Manager – Responsible for generating the actual on-screen performance of the script – It receives its direction on what to do and how to do this from the director – It also reports back to the director on the status of the production

15 Prototype Implementation Based on this design, a prototype has been implemented for Microsoft Windows XP, written in C++ in Microsoft Visual Studio.Net XML processing was implemented using Microsoft’s XML libraries For visual rendering of the cinematic or cut-scene, Ogre3D was used – Allows both 2D and 3D support – Chosen to support easy integration with other on-going research projects at Western in this area

16 Results to Date So far, we have been able to stage some simple productions using our prototype – There is still the odd glitch here and there, but things generally work pretty well – Development is continuing … Integration into some of the other game projects under way at Western is currently in progress

17 Homer: Well, time to go to work. An Example from the Simpsons

18 Little do they know I’m ducking out early to take the Duff Brewery tour …

19 Roll in at nine, punch out at five, that’s the plan.

20 Heh heh heh … They don’t suspect a thing …

21

22 Well, off to the plant!

23 Then to the Duff Brewery …

24 Uh oh! Did I say that or just think it?

25 I’ve got to think of a lie fast!

26 Marge: Are you going to the Duff Brewery?

27 Homer: Ahhhh!

28

29 Concluding Remarks Storytelling is a very important aspect to modern video games Tools and supports are necessary to enable storytellers to directly produce story content for games, without requiring programming background and expertise Our Reusable Scripting Engine provides a step in this direction for cinematics and cut-scenes – Results to date have been quite promising

30 Concluding Remarks Directions for future work include the following: – Support for audio, including spoken dialogue, background music that changes, and sound effects – Support for animated characters and background elements and effects – 3D cinematics and cut-scenes (which would require the addition of new stage directions) – Support for dynamically generated story elements – Support for in-game storytelling sequences


Download ppt "A Reusable Scripting Engine for Automating Cinematics and Cut-Scenes in Video Games M. McLaughlin and M. Katchabaw Department of Computer Science The University."

Similar presentations


Ads by Google