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] 4 5

Author Topic: Using OpenAL with the plugin  (Read 17668 times)

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Using OpenAL with the plugin
« Reply #30 on: December 12, 2005, 09:28:39 AM »

Any reason why you are using 1.0.2? I think maybe you should update to Ogre 1.0.6. Though, this may or may not solve your issue.

WHen did you check out the CEGUI demo of the theora player? if you recently grabbed CVS head from there than it requires CEGUI 0.4.0 (this weekend). If that is the case, you can check out the ogreaddons/videoplugin/CEGUI_TheoraDemo module with the branch name of "alpha" from cvs and it will be compatiable with the previous CEGUI versions.
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Using OpenAL with the plugin
« Reply #31 on: December 12, 2005, 09:37:31 AM »

Well, we already started our game quite a while ago with the 1.0.2, and we're running out of time very quickly, so changing now would be a huge waste of time if it's not needed. I updated my dll files to the CEGUI 0.4.1 version, and still it doesn't work. I would think that with this demo, the dll files that are with the demo would be the right ones, the ones that the original author used to compile this! Strange thing is, I can run the included exe, but if I want to modify it, and I try to compile it, I get that error.

Also, that CEGUI_TheoraDemo brings me back to the original problem, that we're using openal, not fmod. If someone could help me out with this, I would be extremely thankful, I'm really becoming desperate here...  :cry:
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Using OpenAL with the plugin
« Reply #32 on: December 12, 2005, 09:44:34 AM »

You need to update more then just dlls to be able tom compile... You need to make sure you are compiling against the same version of header files, import libs (.lib), and dlls. Any one of these off can result in unresolved externals at compile time or runtime. And, I have no idea about CEGUI 0.4.1 as I am still on 0.4.0. Nor have I looked at what dll's are included with the demo that I did not release.
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Using OpenAL with the plugin
« Reply #33 on: December 12, 2005, 09:56:34 AM »

Ah, I figured out how to solve it. Thanks for the help. Quick question about this demo though, is it possible to make the video fullscreen, play automatically, and when it runs to the end of the clip, continue on with something else? If it's possible, please just tell me the methods, or if it's a CEGUI thing, just tell me so, thanks!  :D
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Using OpenAL with the plugin
« Reply #34 on: December 12, 2005, 10:31:21 AM »

Fullscreen can be done with any type of fullscreen quad - an Ogre overlay or a CEGUI StaticImage, etc.

To play automatically you will have to do with your own code.

There is the Theora Movie Message info which tells you the status of the clip... from there you could stop the current movie and play something else. The CEGUI demo registers the listener and has a switch case that just displays some log info in the MovieLogic class.

Btw, it would be benificial if you could post what your solution was.
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Using OpenAL with the plugin
« Reply #35 on: December 12, 2005, 10:45:47 AM »

Thanks for the help. I just updated CEGUI, and Ogre to its newest version, and managed to save all my previous settings. Sorry for the confusion!  :oops:
Logged

M&M

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
    • http://www.blueprintgames.com
Using OpenAL with the plugin
« Reply #36 on: December 12, 2005, 10:49:47 AM »

can the movie also play on an ogre Material ? So I could attach it to an object ingame perhaps ? like a billboard, a tv...etc ?
Logged
url=http://www.blueprintgames.com/][/url]

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Using OpenAL with the plugin
« Reply #37 on: December 12, 2005, 10:56:07 AM »

Yes, the movie can be placed on absolutely anyting :D
It is in fact just a material. So, it can be on a overlay, any cegui item (button, window, etc), billboards, meshes, etc etc.
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Using OpenAL with the plugin
« Reply #38 on: December 12, 2005, 11:44:39 AM »

Still having a few problems, I would like it to play as soon as it's started, but so far I've had no sucess... I'm trying to edit this demo. Would you suggest I create a new method similar to the handlePlay method and then try and call that in the createScene? And it seems when I try and change the size of the video to make it fullscreen, the CEGUI space where the movie is played limits me from making it that size. Maybe I'm overlooking something, but do I have to change the DemoPlayer.xml, or is there an easier way about this? I'm a little new to CEGUI, but I'm pretty good with Ogre.

Also, when I try to just mMovieControl->playerMovie("movie.ogg");  it plays the sound, but not the video... I'm really confused here, I know I have to attach the texture and everything, but it doesn't seem to be working properly. Sorry for all these questions!  :oops:
Logged

Anonymous

  • Guest
Using OpenAL with the plugin
« Reply #39 on: December 12, 2005, 12:15:21 PM »

You can edit the CEGUI Window in the layout file if that is how you want to do it. You can have a StaticImage that is fullscreen - you can even attach a staticimage to the default window (root sheet) - it does not need to attached to a framewindow.

I am not positive of the code for Ogre overlays as I have not used overlays in a year or so.
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Using OpenAL with the plugin
« Reply #40 on: December 12, 2005, 01:13:09 PM »

How would you go about attaching the texture, or playing the movie on the StaticImage? I've been playing around with it for a while, and everything I've been trying seems to either be crashing it, not playing it at all, or playing the sound, and not the movie.  :?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Using OpenAL with the plugin
« Reply #41 on: December 12, 2005, 01:26:04 PM »

I have supplied the code for attaching the texture to a CEGUI StaticImage - that is what the CEGUI Theora Demo is all about :D

As for the code to attach it to everything else, well,. Ogre has setMaterial methods for many objects.. Just use those with the name of the video material. And, playing is exactly the same no matter what the material is attached to. I plan to maybe add a toggle switch in the CEGUI demo that shows the material on different objects, but havn't had time for that. But, it is really not that hard. Use this amterial the same as any other Ogre material - with the exception that you can play this one :)
Logged

M&M

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
    • http://www.blueprintgames.com
Using OpenAL with the plugin
« Reply #42 on: December 12, 2005, 01:31:00 PM »

Quote
or playing the sound, and not the movie

that sounds rather similar to my problem  :roll: . I'm glad I'm not alone here :)
Logged
url=http://www.blueprintgames.com/][/url]

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Using OpenAL with the plugin
« Reply #43 on: December 12, 2005, 01:40:23 PM »

Oh, now I see. The one thing that still confuses me though, is when I call playMovie in the createScene, it plays audio without the video... What has to come before the play video? Also, even though the movie is attached to a StaticImage, it is still confined to a CEGUI space, and I can't think of any way of resizing it without changing the DemoPlayer.xml.

I would love to just have a StaticImage that's full screen, and have the movie automatically play on that, but it seems like I can't make it play anywhere but the CEGUI setup that it has now, and making it automatically play only results in it playing the audio, not the video...

Would you have any advice? :?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Using OpenAL with the plugin
« Reply #44 on: December 12, 2005, 07:25:51 PM »

Well, if you are getting audio, you surely are getting video somewhere. This sounds remarkably similiar to  M&M's problem. You should keep an eye on that thread.

As for adjusting the size of a CEGUI image.. You can do it in code (I create the image in code in the CEGUI demo). The demo just creates the containing Window in the xml file. You can also resize any CEGUI widget/window in code. And as I said, This can be put on an Ogre overlay which is fullscreen.
Logged
Pages: 1 2 [3] 4 5