-
Notifications
You must be signed in to change notification settings - Fork 0
FMV playback code --Testing needed, especially on MACS! #64
Comments
Buginator changed status from |
Buginator changed owner from `` to |
florian@... commented Movie (sound) plays but I just see a white square. This is because my OpenGL does not support GL_ARB_texture_non_power_of_two which would be required to for showing a 320x240 texture. I'll attach a patched ogg.c (extremely shit quick and dirty solution) to get it working... |
Buginator commented Thanks for testing Florian. Here is a update for non NPOT cards... hope it works. :) If I may ask, what kind of hardware do you got anyway? I assume intel 945 chipset or something like that? |
Buginator commented I forgot to say, that hitting the main menu ** 'view intro**' button is the best thing to use to see the videos so far. Unless you want to play SP game a bit. |
florian@... commented Actually I've got a mobile ATI, this is what lspci says: I think GL_ARB_texture_non_power_of_two is purely a software issue, not a hardware issue and I am using the free software ATI driver. If I feel motivated enough I may try and look into the mesa drivers and DRI at some point to find out. |
Buginator uploaded file |
Buginator commented Updated once again to trunk, and this time, added FMVs to the intel screen. For now, after you download the sequences, rename the Cam1/, Cam2/ Cam3/ folders to cam1, cam2, cam3. Please report back any issues you may have. (Plan is to have everything in squences in lowercase when patch is finally done. Some scripts will need to be change, to be lowercase, and have the correct .ogg extension as well.) |
pabs3@... commented Works nicely here (Debian GNU/Linux, Intel GPU). Only issue is that the resolution of the FMVs is fairly low. I'd suggest that in the long term, the FMVs will need to be replaced by something higher resolution. |
pabs3@... commented Some other things: When switching windows, pausing the video isn't instant, takes about a second for the sound to stop. Probably should strip Eidos and any other trademarks from the FMVs, unless the relicensing stuff gave you permission to use them. |
pabs3@... commented One other thing: it would be nice if warzone checked for the FMVs and skipped them and or remove relevant menu items when not present; some folks aren't going to want to download 160Mb of video to play warzone. The intro video item should probably go to the top of the menu. |
pabs3@... commented One more thing; when an intel item automatically starts, afterwards it drops into the intel screen, I think it might be better to return to the game. |
dmx commented Seems to break on Xcode, but perhaps its something to do with the Theora dependency. Not sure how to get the theora dependency working. |
Buginator uploaded file |
Giel uploaded file Improvements against attachment:FMV5c.patch |
Giel uploaded file Improvements against attachment:FMV5d.patch |
Giel uploaded file The result of applying attachment:improve-FMV5c.patch to attachment:FMV5c.patch and attachment:improve-FMV5d.patch to attachment:FMV5d.patch |
Giel uploaded file Improvements against attachment:FMV5e.patch |
Giel uploaded file The result of applying attachment:improve-FMV5e.patch to attachment:FMV5e.patch |
Giel commented Change log attachment:improve-FMV5c.patch:
Change log attachment:improve-FMV5d.patch:
Change log attachment:improve-FMV5e.patch:
|
Buginator commented The sequences have all been converted now, and are available on GNA. Do we want to convert everything in that archive to lower case? Right now, only the directories Cam1, Cam2, and Cam3 need to be converted to cam1, cam2, and cam3, and it will play all the videos fine. We do need to rename all the *.rpl to *.ogg though, and get rid of that hack in the codebase. This change adds a Cut scene (FMV) size menu option. Choices are fullscreen or native. For native, it just centers it on the screen. We still need mac testing though. |
Buginator uploaded file adds FMV size option in menu |
Buginator commented revert FMV5g.patch, I didn't see the old stuff before. This one has 3 options, Fullscreen, 1x and 2x. |
Buginator uploaded file |
Giel uploaded file Improvements against attachment:FMV5f.patch |
Giel uploaded file Improvements against attachment:FMV5h.patch |
Giel uploaded file The result of applying attachment:improve-FMV5f.patch to attachment:FMV5f.patch and attachment:improve-FMV5h.patch to attachment:FMV5h.patch |
Giel commented Changelog attachment:improve-FMV5f.patch:
Changelog attachment:improve-FMV5h.patch:
|
Giel commented NOTE: Some things that still need fixing
|
EvilGuru changed milestone from |
Giel commented Changelog attachment:improve-FMV6b.patch:
|
Giel uploaded file Improvements against attachment:FMV6c.patch |
Giel uploaded file The result of applying attachment:improve-FMV6c.patch to attachment:FMV6c.patch |
Giel commented Changelog attachment:improve-FMV6c.patch:
|
Giel uploaded file Improvements against attachment:FMV6d.patch |
Giel uploaded file The result of applying attachment:improve-FMV6d.patch to attachment:FMV6d.patch |
Giel commented Changelog attachment:improve-FMV6d.patch:
|
Giel commented The Theora/Vorbis decoding code still needs a lot of clean up, but that can happen in the repository. I consider attachment:FMV6e.patch ready for committing. |
Buginator commented Fix seq_StartFullScreenVideo() to handle intel vids correctly, since seq_StartBufVideo() was removed. Other than that, looks good on this end. Note, I didn't have time to test on linux. If all works well for you, feel free to commit patch 6f. sidenote, the bool ForceRes maybe better named as something else. the miniFMV6f is just the changes I made since patch 6e, and FMV6f is everything including 6e. |
Buginator uploaded file everything in FMV6e + my fixes for intel screen |
Buginator uploaded file just the changes since FMV6e |
Giel uploaded file Improvements against attachment:FMV6f.patch |
Giel uploaded file The result of applying attachment:improve-FMV6f.patch to attachment:FMV6f.patch |
Giel commented Changelog attachment:improve-FMV6f.patch:
NOTE: We have a licensing issue with function
|
Buginator commented Replying to [comment:28 Giel]:
A few things, I removed the do_timer_wait(), with no adverse side effects. If we opt to leave in the sleep, I did find that in liboggplay's glut-player.c example, ( http://trac.annodex.net/browser/liboggplay/trunk/src/examples/glut-player.c?rev=3685#L242 I then inlined the code, so it looks like:
There is no change from before, I never hit the sleep call... I say nuke it, and if we have issues, then we can come back to this, and do the workaround. |
Giel commented I can confirm that that code never gets executed. I should have thought of that earlier actually as I've already examined that piece of code for this:
Was a problem with using sleep(3) and passing it milli-seconds on non-Windows systems. Even though sleep(3) has seconds-resolution. Thus I suggest the same as you do: just dump the do_timer_wait function entirely... If no one objects I think we should commit this tomorrow. |
Giel uploaded file Improvements against attachment:FMV6g.patch |
Giel uploaded file The result of applying attachment:improve-FMV6g.patch to attachment:FMV6g.patch |
Giel changed status from |
Giel changed owner from |
Giel changed status from |
Giel changed resolution from `` to |
Giel commented Applied in [6119]. |
DevUrandom changed component from |
DevUrandom changed blocking which not transferred by tractive |
DevUrandom changed blockedby which not transferred by tractive |
Buginator removed milestone (was |
Buginator commented Milestone 2.2 deleted |
Per Inge Mathisen <per.mathisen@...> commented In Warzone2100/warzone2100@af90044:
|
resolution_fixed
type_patch (an actual patch, not a request for one)
| by BuginatorWould like people to test this.
It now works on windows & linux. I can't test macs.
I am not using liboggplay, liboggz, or libfishsound.
This is pure libogg & libtheora.
(note, don't comment on code style--I know it is a mess, I only fixed the problem(s) with gerard's patch--which looks to be mostly from theora's sample code)
I am in the process of cleaning it up, but the functionality should be the same.
This is only the playback code for the full screen FMVs, the other parts of warzone still need to be fixed, since someone seems to have ripped out the code that it used before.
Please download http://download.gna.org/warzone/videos/sequences_ogg.zip and unzip it to /base
(so it will be \data\base\sequences/.ogg )
Or it will not work (duh!).
Note, do not do 'make install', I haven't added sequences/ to the zip process yet.
Just run warzone via gdb ./src/warzone2100
Issue migrated from trac:64 at 2022-04-15 17:41:33 -0700
The text was updated successfully, but these errors were encountered: