Game Development Community

Theora movies useability.

by Backman · in Torque Game Builder · 10/07/2009 (4:08 pm) · 2 replies

Hey all, I'm working on some schnazzy animated backgrounds and by some freak accident I've managed to make something I actually quite like.

Since they weren't done in TGB I was thinking I'd take all the different particles and bg's, seperate out all the elements yadayadayada.. but it'll be impossible to get the same results cause of TGB limitations (we still can't get particles to orient to their own individual path.. right?) as well as a lot more work to just get 70% there.

Anyway.. my only option as far as I know is to encode a movie using the Theora codec, which I've never even heard of before using TGB.

Does anyone use this option to play big bg movies? They'll be 10-20 secs, sort of in the way the lumines backgrounds are used. I'm developing for PC first so they'll be quite big to cover all possible screen resolutions, and should be able to get played at 25-30fps.

I'm doubting this would be a recommended option but had to ask. :)

Thanks.

#1
10/07/2009 (4:33 pm)
I've never worked with Theora, so hopefully somebody can help you there.

But as for particles orienting to their own individual path, I have got that working, assuming that you are creating the particle in script. I've just done the following:
%e = new t2dParticleEffect() { sceneGraph = PromotionSceneGraph; };
  %e.loadEffect( "~/data/particles/Firework0.eff" );
  %e.getEmitterObject(0).setAlignKeepAligned( true );  // The key to your question.
  %e.setPosition( %x, %y );
  %e.setLayer( 10 );
  %e.playEffect();
#2
10/07/2009 (7:53 pm)
Thanks William, I've never heard of that function although I did do some extensive hair pulling when I looked into this. All I could find was how to align to the emitter etc. Thanks again, will try that as soon as I get a moment!