larnya
30-07-2010 12:01:11
I like this plugin, but I can't find any file on sourceforge page.
Anybody can offer a zip file to download?
Thanks.
Kreso
30-07-2010 12:15:30
download the source code from the SVN repository. sourceforge page -> Develop
larnya
30-07-2010 13:23:47
download the source code from the SVN repository. sourceforge page -> Develop
Well, I got many files from svn, but I don't know how to start.
I've tried to compile the sln under trunk folder, of cource fail, and I don't know which include folder should be added.
That seems complex.
Kreso
30-07-2010 14:06:52
read the forums, that question has been answered many times.
in short, compile ogg,vorbis and theora, then libtheoraplayer then ogrevideo_plugin
larnya
30-07-2010 14:13:29
read the forums, that question has been answered many times.
in short, compile ogg,vorbis and theora, then libtheoraplayer then ogrevideo_plugin
OK, I find related contents in wiki, and I'm trying now.
Thank you Kreso.
larnya
31-07-2010 04:14:01
Excuse me for one more quesion, please.
I copied every thing needed into Ogre to launch my program.
Here is my material script:
material SimpleVideo
{
technique
{
pass
{
texture_unit
{
texture_source ogg_video
{
filename konqi.ogg
precache 16
play_mode play
}
}
}
}
}
then I added a plane in the createScene function:
mSceneMgr->setAmbientLight(Ogre::ColourValue(0.5, 0.5, 0.5));
Ogre::Light* l = mSceneMgr->createLight("MainLight");
l->setPosition(20,80,50);
Ogre::Entity* ent = mSceneMgr->createEntity("myplane", Ogre::SceneManager::PT_PLANE);
Ogre::SceneNode* node = mSceneMgr->getRootSceneNode()->createChildSceneNode();
node->setPosition(0, 0, 0);
node->scale(0.25, 0.25, 0.25);
node->attachObject(ent);
ent->setMaterialName("SimpleVideo");
I've copied konqi.ogg into media folder and added a location record in resource_d.cfg.
The program can be launched, but I can see nothing on the gray plane.
I tried to get the vedio clip by material name, and controled it by play() function.
Then I knew I should call setTimer before that.
So I appended some code like this:
Ogre::TheoraVideoManager* vMgr = Ogre::TheoraVideoManager::getSingletonPtr();
Ogre::TheoraVideoClip* clip = vMgr->getVideoClipByMaterialName("SimpleVideo");
Ogre::TheoraTimer timer();
clip->setTimer(&timer);
clip->play();
Then the IDE told me wrong.
I'm really puzzled right now.
Any advice will be appreciated. Thanks.
Kreso
31-07-2010 12:25:17
yup. video creation from material files is broken. please use the Demo_Simple as a reference how to use the library. also, make sure you can get that demo program to run first
larnya
31-07-2010 13:33:58
I'm sorry, I just wrote a wrong loacation record into resource.cfg.
I correct it , and now it works.
However, only animation, no audio. Do I need other plugins to play the audio??
This plugin is powerful, so I need to know more.
Which version of SVN is the latest one? new_code_design?
Kreso
31-07-2010 14:26:13
the trunk/ folder has the latest version.
I haven't had much time to work on the plugin so some features are still missing. Audio is working in my backend library, libtheoraplayer, and there is a demo in that repository. You could use the OpenAL audio interface I wrote for that project to play audio in ogre. haven't tried it though..
larnya
31-07-2010 14:51:21
Well, this plugin is already very cool. I'm looking forward to your update.
Thanks for your good job.
Good luck man.