Noob reminder: check for malformed resources.cfg, else crash
I know this is a basic error but I'll put this out since we're all new at one time (and the forum would not let me delete this post
). Ensure that the resources.cfg is sane else createDefinedTexture may segfault without an error/log message. I was scratching my head for quite a while looking for a bad pointer in my code until I checked the cfg.
Huh, weird. does the demo app work?
which OS and and PC architecture?
Sorry, a premature posting. What I meant to say was that I have just begun to work with the ogrevideo plugin and have gotten everything to compile and install under linux except for the demo player which I did not bother with as I am not using CEGUI. I'm not sure if the crash is caused by my code, an invalid resource (or location), or by the plugin. It crashes at "createDefinedTexture". Any ideas anyone? TIA
well, could be your code, could be something on your OS. you're using Linux, right?
i suggest you try compiling the demo app, if that doesn't work, then the problem is in the library itself.
I think I have found the problem -- I am stupid
TheoraVideoManager* video_manager(new TheoraVideoManager(1));
OgreVideoManager* video_manager(new OgreVideoManager(1));
Harr Harr Harr [bitchslap!]
yes, TheoraVideoManager is libtheora's manager, and OgreVideoManager is ogre video plugin's. the second one handles material scripts etc while the first one controls playback and distribution of labor (decoding etc)
Well I guess I'm stupider than I thought, as it has the same error. Has anyone compiled the demo player against the latest CEGUI (0.7.1)? Because, it ain't compiling. Sorry, I haven't messed with Crazy Eddie since version 0.5.x -- I have since built my own UI directly in Ogre 1.6.4 (and no, it's not worth the effort
). Thanks for the help and sorry for being a pain.
I tried it against cegui 0.6.x
btw, I have also developed a simplistic gui system we're using for my company's iphone games, and yeah, it was worth it!
Cegui is cool, but it's so biiiiig!
Ok, I got the demo player running (but not really working). The Ogre window with an apparently working CEGUI screen with some widgets on the left hand side and a large empty square panel on the right. Basically, it works but the video does not show up? Any ideas? TIA.
Linux and OpenGL
does the slider on the bottom move?
and no, I have no idea, I'll have to look into it; it could either be that the video isn't decoding, which is unliekely because libtheoraplayer works fine under linux, or some ogre related bug, ie. pixel format.
Success!!! (Except, no audio yet
) The OgreVideoManager object was not getting "frameStarted" event. I called from within the DemoApp::frameStarted and that fixed it. Thanks for helping me out with this!