Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Pages: 1 2 [3]

Author Topic: Ogre3D TheoraPlugin  (Read 14484 times)

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Ogre3D TheoraPlugin
« Reply #30 on: November 15, 2005, 01:00:15 PM »

Awesome  :D

And good luck with finding the problem.. I am still around, but alas, have not been able to devote anytime to the theora plugin as of late. I have pretty much decided to stop development on this plugin besides the occasional Ogre compatiability update, and any minor bug fixes.

Though, I will always (as long as my site is up.. and until my next Video Lib) be here to answer questions. I do have plans to (a) create a new video lib that has many more ogg streaming features and is more stable or (b) creating a new video lib based off some other royalty free videoc codec (Dirac maybe). In either case, the lib will not be dependent on Ogre.
Logged

neubsi

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 9
    • View Profile
Ogre3D TheoraPlugin
« Reply #31 on: March 23, 2006, 06:51:02 AM »

Hi Guys,

maybe you can help;)

Compiling of the Plugin works, but can´t load it in the ogre engine:
I have put the Plugin=Plugin_TheoraVideoSystem.dll setting into the plugins.cfg and try to load a mpg movie.

but in the logfile it says:

Vorbis Headers: 0 Theora Headers : 0
16:46:14: D3D9 : ***** Dimensions altered by the render system
16:46:14: D3D9 : ***** Source image dimensions : 0x0
16:46:14: D3D9 : ***** Texture dimensions : 1x1
16:46:14: Texture: test.mpg: Loading 1 faces(PF_B8G8R8,0x0x1) with 0 generated mipmaps from Image. Internal format is PF_X8R8G8B8,1x1x1.
16:46:14: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 5
Function: D3D9HardwarePixelBuffer::blitFromMemory
Description: D3DXLoadSurfaceFromMemory failed.
File: ..\src\OgreD3D9HardwarePixelBuffer.cpp
Line: 309
Stack unwinding: <<beginning of stack>>

i tried with many formats, avi(xvid), ogm, mpg1,... but allways the same error
it seems the plugin can´t read the source format correctly, dunno why, t think i´m missing something...

thx a lot
Neubsi
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Ogre3D TheoraPlugin
« Reply #32 on: March 23, 2006, 08:30:16 AM »

Sorry, the theora plugin only suuports Ogg Theora/Vorbis files. You can google the ffmpeg2theora tool which uses ffmpeg to convert most all formats to theora. You can also checkout the cheer.ogg file from my downloads section.

Mpeg has patent issues, which is why I moved to using theora for the plugin.
Logged

neubsi

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 9
    • View Profile
Ogre3D TheoraPlugin
« Reply #33 on: March 29, 2006, 12:36:40 AM »

i see, just ogg;) no problem!

good! loading works now, but texture is completly black... it seems i´m to dumb for this, hahahaha

what ogre version will work with this plugin, cause i can´t compile the theoravideoguidemo?
i use 1.3.0 from cvs, but seem to miss some ogre header files...

thx again for your help
neubsi
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Ogre3D TheoraPlugin
« Reply #34 on: March 29, 2006, 09:21:52 AM »

Hmm, black screen means you are probably not calling the update each frame. Is this the CEGUI Theora Demo?

It should work with any Ogre version 1.0.0 and Dagon. What exactly are the errors? Something might have changed last minute that I missed. I will check out the plugin tomorrow on my updated Ogre/linux install.
Logged

neubsi

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 9
    • View Profile
Ogre3D TheoraPlugin
« Reply #35 on: April 06, 2006, 09:24:08 AM »

Quote from: "pjcast"
Hmm, black screen means you are probably not calling the update each frame. Is this the CEGUI Theora Demo?

It should work with any Ogre version 1.0.0 and Dagon. What exactly are the errors? Something might have changed last minute that I missed. I will check out the plugin tomorrow on my updated Ogre/linux install.


Hi pjast

thx for your help, i miss some header files, like:
#include "OgreCursorGuiElement.h"
#include "OgreBorderButtonGuiElement.h"
#include "OgreListGuiElement.h"
#include "OgreListChanger.h"
#include "OgreEventProcessor.h"
#include "OgreStringResource.h"

they are not included in the latest ogre from the cvs...
it seems they use another gui now...

greetz
neubsi
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Ogre3D TheoraPlugin
« Reply #36 on: April 06, 2006, 09:40:07 AM »

Yes, that demo is way out of date (pre Ogre v1.0). Use the CEGUITheora_Demo - I plan on removing or updating that demo, but alas, do not have the time.
Logged

neubsi

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 9
    • View Profile
Ogre3D TheoraPlugin
« Reply #37 on: April 07, 2006, 07:36:53 AM »

Quote from: "pjcast"
Yes, that demo is way out of date (pre Ogre v1.0). Use the CEGUITheora_Demo - I plan on removing or updating that demo, but alas, do not have the time.


Ok, tried that, but the whole screen is black, only the mouse cursor is shown..tried it with ogre 1.2 and ogre 1.3 from cvs, both times the same thing.

no errors in the logfile...

any suggestions?

thx
neubsi
Logged

neubsi

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 9
    • View Profile
Ogre3D TheoraPlugin
« Reply #38 on: April 07, 2006, 08:36:16 AM »

oh, found the problem, was a missing dll;)

thx a lot for your help!

greetz
neubsi
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Ogre3D TheoraPlugin
« Reply #39 on: April 07, 2006, 10:45:00 AM »

:partyman:
Logged

neubsi

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 9
    • View Profile
Ogre3D TheoraPlugin
« Reply #40 on: April 17, 2006, 08:27:50 AM »

Hi pjcast,

it´s me again;)

the plugin works great so far, the only thing i can´t get working is the looping, when i set it with "mClip->changePlayMode( TextureEffectPlay_Looping );" for my texture, it plays the video only 1 time...

do you know anything?

thx a lot!
neubsi
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Ogre3D TheoraPlugin
« Reply #41 on: April 17, 2006, 08:40:43 AM »

Yeah, sorry, looping is not directly implemented.

You can do two things:
First register a message listener, and listen for the event which signals the end of playback.
Then:
1) Delete movie and recreate it..
or
2) Enable seeking on the movie when creting it, then when the end of movie is signaled, seek back to 0. Seeking to zero probably has the least distortion from any other seek, and will avoid the creation/destruction of memory (which might lead to fragmentation for a short clip). - Although, seeking is experimental and may give you some issues.

If you manage to get seeking working (stabaly) please, send me a patch :) Some issues I know about, sometimes seeking will not cause movie to continue playing (the end was already reached, just need to verify state of bool's).
Logged

neubsi

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 9
    • View Profile
Ogre3D TheoraPlugin
« Reply #42 on: April 17, 2006, 09:43:51 AM »

the seeking option sounds great!

thx a lot!

neubsi
Logged
Pages: 1 2 [3]