Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: How to add video  (Read 4439 times)

0 Members and 1 Guest are viewing this topic.

kitaramies94

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
    • View Profile
How to add video
« on: December 30, 2009, 06:09:34 PM »

Hi. I'd like to add intro video to my game but I don't know how.

I read this page http://docs.dead-code.org/wme/inside_theora.html about theora but when it comes to game objects I don't know what to do. I don't know anything about game objects...

What should I do?
Logged

Xenogia

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 14
  • FMV Adventure Developer
    • View Profile
Re: How to add video
« Reply #1 on: December 30, 2009, 11:29:40 PM »

Depends on what you want to do.

If it is a cut scene you can use the following.

Code: [Select]
Game.PlayTheora ("\videos\blah.ogv")

Check out the help file that comes with Wintermute and do a search for PlayTheora and it will come up with all the extra parameters that you can add also.
Logged

kitaramies94

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
    • View Profile
Re: How to add video
« Reply #2 on: December 31, 2009, 09:40:55 AM »

and where should I add this Game.PlayTheora ("\videos\blah.ogv")
Logged

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
Re: How to add video
« Reply #3 on: January 01, 2010, 02:19:06 PM »

You would issue it as an instruction in a script.

Let's say you had an object in your scene, say a book, and this was shown as a graphic in a node called 'book'. Then let's say you also had a video of the book opening, called 'BookOpening.ogg'

Then attached to the 'book' node, you might have a script 'book.script'. Inside that script would be what would happen if your player clicked on the book:

on "LeftClick"
  {
  Game.PlayTheora("BookOpening.ogg");
  }

When the player clicked on the book, your video would run, and your player wouldn't be able to do anything else until it had completed.

It's all well described in the docs.

Cheers
Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
Re: How to add video
« Reply #4 on: January 01, 2010, 09:12:42 PM »

As regards an intro video, we did it in 'Rhiannon' by setting a startup scene and putting the PlayTheora instruction as the first in the startup scene's scene_init.script
Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com

kitaramies94

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
    • View Profile
Re: How to add video
« Reply #5 on: January 02, 2010, 05:52:08 PM »

How do you convert avi to ogv?
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: How to add video
« Reply #6 on: January 02, 2010, 06:08:50 PM »

Logged
fl*p
 

Page created in 0.051 seconds with 21 queries.