Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Resetting Movie  (Read 1795 times)

M&M

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
    • http://www.blueprintgames.com
Resetting Movie
« on: December 14, 2005, 02:38:10 PM »

In the cegui demo, you seem to destroy the whole movie and recreate it to reset it. Isn't there a more subtle way ? Like reseting the material only perhaps ?
Logged
url=http://www.blueprintgames.com/][/url]

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Resetting Movie
« Reply #1 on: December 14, 2005, 06:16:15 PM »

The reason I destroy everything in the CEGUI demo is really the easiest way to do it with the current plugin. Mostly, because the process of creating a new movie means that the texture unit is recreated as different movies have different sizes, so it is impossible to reuse the texture unit.

If you, by reseting, mean to do a loop of the asme clip, the best way is also to just recreate it... If all the bugs were worked out of the seeking API, I would say that would be the best way to just seek to 0 time. However, there are some current problems with distortions and playback randomly stopping when seeking backwards that need to be fixed first.
Logged

M&M

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
    • http://www.blueprintgames.com
Resetting Movie
« Reply #2 on: December 15, 2005, 07:57:34 PM »

alright then, I suppose I'll do it that way instead.
Logged
url=http://www.blueprintgames.com/][/url]