Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Coping with Theora  (Read 2366 times)

0 Members and 1 Guest are viewing this topic.

Catacomber

  • Supporter
  • Frequent poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Female
  • Posts: 443
  • I love mice.
    • View Profile
    • Catacomber.com
Coping with Theora
« on: June 06, 2009, 04:15:56 AM »

I use a lot of Theora videos and I had the same problem people have had of the split second reversal to whatever the background of the scene was before you move to the next scene after the video plays and that is very jarring. 

I solved that by doing what Metamorphium suggested in one post --- have a background scene that is a screenshot of part of the video that makes sense before you move to the next screen.  I did that actually before I saw his post when I was searching through the forum for something else.  :  ) 

But I have found a nice modification imho---by having the background scene be one thing before the video plays and then changing the background scene to what you want it to display after the video plays.  So now I can have an opening background with a pic and text, play the video and switch the background for a graphically compatible scene that makes a nice segue to the next scene:

Code: WME Script
  1.  
  2. #include "scripts\base.inc"
  3.  
  4. actor.Active = false;
  5. InventoryHidden = true;
  6. hud.Active = false;
  7. hud.Visible = false;
  8.  
  9. Sleep(5000);
  10.  
  11. Game.PlayTheora("Video\storm2.ogv");   
  12.  
  13. var b = Scene.GetNode("background");
  14. b.SetSprite("scenes\Storm\Afterstorm.jpg");
  15.  
  16. Sleep(100);
  17.  
  18. Game.ChangeScene("scenes\Vacation_House\Vacation_House.scene")
  19.  
  20.  

Having switched the image of the background I could even add a few particle matters or something to spice it up before you switch to the next scene.  :  )
« Last Edit: June 06, 2009, 04:26:03 AM by Catacomber »
Logged
http://www.catacomber.com/
Code: WME Script
  1. Mnemonic is wonderful.
  2.  
 

Page created in 0.05 seconds with 21 queries.