Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Theora Plugin Media  (Read 2284 times)

dermont

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 23
    • View Profile
Theora Plugin Media
« on: July 12, 2007, 11:07:38 PM »

I've just been updating the plugin for Ogre and Eihort on linux - using ptypes-2.1.1 and minor changes to the plugin. 

After updating the CEGUI_TheoraDemo for CEGUI0.5 and fudging the existing schemes the demo appears to run fine.   

Maybe this has been overlooked but the Tahoma font is still in the ogreaddons/videoplugin/CEGUI_TheoraDemo/bin/Media/gui/ repository:
http://www.ogre3d.org/phpBB2/viewtopic.php?t=18440&highlight=fonts
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: Theora Plugin Media
« Reply #1 on: July 15, 2007, 09:56:38 AM »

Thanks for the info, I'll see about removing the font. If you got it working with latest Eihort, I would love a patch though.
Logged

dermont

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 23
    • View Profile
Re: Theora Plugin Media
« Reply #2 on: July 16, 2007, 10:36:17 AM »

Sure, the patch has only been tested on Linux with OpenAL. The changes for FMOD trivial (same  as OpenAL) so there shouldn't be a problem. There are still some cosmetic changes to be done for the CEGUI demo e.g. border box on the debug layout.  I've zipped up my media directory 300 KB. Is it OK to upload a file that size to sourceforge. If not then  where should I send it?.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: Theora Plugin Media
« Reply #3 on: July 16, 2007, 07:43:54 PM »

300kb? That is pretty small. But, what does it contain? You can email me a file the small easily enough though. If you have the ability to generate a patch, using cvs diff, I would be able to apply your changes. Any new files, you could zip and send me.

As for OpenAL and Fmod changes. You updated to a recent OpenAL or something? As far as I know, there should be no changes neccessary for Fmod at least, since it uses an older version; however, maybe an update is needed. But, upgrading to FmodEx is unneeded, as the sound plugins are just examples to show how one can integrate the system with their own sound systems by simply rpoviding the proper methods.
Logged

dermont

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 23
    • View Profile
Re: Theora Plugin Media
« Reply #4 on: July 16, 2007, 11:40:34 PM »

I've already mailed to you. The patch file is a cvs diff on the code. The 300kb zip (actually tar.gz) is the compressed bin/Media directory as is (includes changes to Cegui plus ogre's bluehighway font etc). If this is still a problem I'll try cvs diff which includes the bin/Media dir and zip up any new files.   

The OpenAL and Fmod changes were trivial i.e. replacing PlatformManager::getSingleton().createTimer() with new Timer() and for OpenAL adding a define in OpenALSoundManager::start so that the SoundDevice only uses "DirectSound3D" on Windows.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: Theora Plugin Media
« Reply #5 on: July 19, 2007, 05:50:22 PM »

I did not yet receive your email. Can you re-email it to me at my main email: pjcast at yahoo.com. Thanks :)
Logged

dermont

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 23
    • View Profile
Re: Theora Plugin Media
« Reply #6 on: July 19, 2007, 07:46:11 PM »

Ok just resent. The original was sent to your main email address. I'm using yahoo mail so don't know why you didn't receive.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: Theora Plugin Media
« Reply #7 on: July 19, 2007, 07:49:54 PM »

Yes, really odd. I see the new email now. Though, it was in my junk folder this time :(

Anyway, thanks again, I'll definitely apply this so that the plugin is useful again. :)
Logged

dermont

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 23
    • View Profile
Re: Theora Plugin Media
« Reply #8 on: July 20, 2007, 06:15:29 AM »

Just tested the patch on Windows and a compile problem with alcOpenDevice OpenALSoundManager::start and (ALCubyte*). This looks like it should be (ALCchar*).
Code: [Select]
mSoundDevice = alcOpenDevice((ALCubyte*)"DirectSound3D");

Updating as follows the demo runs fine for OpenGL/Direct3D9 with openal / fmod3.75:
Code: [Select]
void OpenALSoundManager::start()
{
mSoundDevice = alcOpenDevice(NULL);
mSoundContext = alcCreateContext(mSoundDevice, NULL);
alcMakeContextCurrent( mSoundContext );
}
 
Also on windows the demo runs fine with ptypes-1.8.3, so looks like ptypes-2.1.1 is only needed for gcc4.x.x.
Logged