FoFiX v3.1xx development thread

Discussion particular to FoFiX, its development, and themes
Forum rules
C++ code is tasty.
raphaelr
Member
Posts: 104
Joined: December 23rd, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby raphaelr » Mon Aug 17, 2009 11:58 am

Tabris_ wrote:Here i'm getting this:

Code: Select all

<snip>
ImportError: No module named OpenGL.GL

=> http://code.google.com/p/fofix/wiki/Req ... rceModules

Looks like you are missing PyOpenGL.
Image
Custom Song: Beatsteaks - As I Please (Only Guitar @ Amazing)
Before asking for help, try doing a barrel roll.
Tabris_
Member
Posts: 3
Joined: August 16th, 2009
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby Tabris_ » Mon Aug 17, 2009 2:52 pm

Installed PyOpenGL and it's not working yet.

Running Windows 7 RTM 64bits
I forget. LETS ROCK!
User avatar
jfosheezy
Member
Posts: 920
Joined: June 22nd, 2008
Location: The deepest pits of hell
Reputation: 1

Re: FoFiX v3.1xx development thread

Postby jfosheezy » Mon Aug 17, 2009 3:46 pm

hey now that we have video support we should try to make it so that we have intro vids
and if we have intro vids we can put splash screens at the game as a cheap (kinda) way to add splash screens
ImageImage
Image
Image
Image
Image
FoFiX Dev/Mod Squad
User avatar
jstump91
Member
Posts: 837
Joined: September 21st, 2008
Location: Baltimore, MD (US)
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby jstump91 » Mon Aug 17, 2009 11:50 pm

Tabris_ wrote:Installed PyOpenGL and it's not working yet.

Running Windows 7 RTM 64bits


We'll need a logfile, as the forum rules very clearly say. They also very clearly say not to bother us with "No module named [...]" errors unless you are 100% sure you followed the wiki to the letter.

There is no excuse for not reading at least the bullet-point summary of the forum rules before posting anything in this forum.
jstump91, a.k.a. john.stumpo, a.k.a. stump
jstump.com | stump's blog | FoFiX development | My own code
Can't find a Windows build of the Python module you need? Try my mediafire!
Don't say "Python can't do [insert task here]." Python can do anything with the right modules - said modules may just not have been written yet.
"Python - why settle for snake oil when you can have the whole snake?" --Mark Jackson
Did you search before you posted? Did you read the rules for the subforum you are posting in?
The Photoshop Wizard
User avatar
kristijan_mkd
Member
Posts: 945
Joined: August 27th, 2008
Location: Zzz
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby kristijan_mkd » Tue Aug 18, 2009 6:32 am

Glad to see evilynux and akedrou working on the project again, i hope all coders will be back working on it with full speed from september on. I'm little busy with music and stuff but i'll be back soon with some new themes and sh!t. :biggrin:

P.S About video support, as i see we can use .mp4, there is kind of video tester and it isn't usable in game yet? :wink:
Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: FoFiX v3.1xx development thread

Postby death_au » Tue Aug 18, 2009 6:51 am

There's the VideoPlayerTest.py (but I don't know the specifics on how to use it). You should be able to play any kinds of video in that your installation of gstreamer (and plugins) support.
evilynux
Member
Posts: 382
Joined: July 2nd, 2008
Location: Montréal, Canada
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby evilynux » Tue Aug 18, 2009 8:14 am

@KiD, death_au and other potential "power users": The basic usage of VideoPlayerTest.py is quite simple.
The hard part (on Windows) is to get/install a recent (at least >= 0.10) version of gstreamer. While on most GNU/Linux distributions it's a matter of installing stock packages, on Windows you might have to compile it yourself (ouch).

Otherwise, once you've tackle that...
1) Modify VideoPlayerTest.py to make it play your video (see the comments on top, change vidSource and vidSize; for now you'll need to specify the video resolution (vidSize)*).
2) Execute: "python VideoPlayerTest.py".

There's no clean exit for now, you'll have to use Ctrl+c (you might have to press it many times).

And yes, it'll play any format/codec as long as you have the gstreamer plugin for it, please see the official list.

* I've code in the pipeline to auto detect the video resolution. I'll test it further and probably commit it today. vidSize won't be needed anymore.

Edit: As promised, video resolution is now autodetected. vidSize is no more.
max26199
Member
Posts: 36
Joined: January 2nd, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby max26199 » Tue Aug 18, 2009 10:48 am

I did the following steps to install GStreamer on Windows (7 x64), Python 2.6

1) Install GTK+ and Freetype
http://www.gtk.org/download-windows.html#StableRelease
-download the gtk+-bundle
http://ftp.gnome.org/pub/gnome/binaries ... _win32.zip
-extract it to your Programs location (eg C:\Program Files (x86)\gtk)
-download the Freetype binarys
http://ftp.gnome.org/pub/gnome/binaries ... -2.3.6.zip
- extract to the same gtk location

- add the bin directory to the PATH (System Properties - Advanced - Environment Variables)
- run: pkg-config --cflags gtk+-2.0
- tests if it works: gtk-demo

2) Install PyGObject
http://pygtk.org/downloads.html
http://ftp.gnome.org/pub/GNOME/binaries ... -py2.6.exe

3) Install GStreamer
http://www.gstreamer-winbuild.ylatuya.e ... d=download
http://forja.rediris.es/frs/download.ph ... elease.exe

4) Install GStreamer Python bindings
http://forja.rediris.es/frs/download.ph ... thon26.exe
- If Python does not find the gst package, do this:
go to C:\Python26\Lib\site-packages
create a new file: pygst.pth
with the text "gst-0.10"


But unfortunately, i only get a window with a black screen and no video playing - no errors either
(the only file which worked is a wmv file, but it lagged very much)
evilynux
Member
Posts: 382
Joined: July 2nd, 2008
Location: Montréal, Canada
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby evilynux » Tue Aug 18, 2009 10:55 am

@max26199: At least there seems to be hope for Windows.
Among the GStreamer plugins there's the good, the bad and the ugly.
wmv is part of gst-plugins-ugly... usually it means that you may encounter issues.

Otherwise, I've made some modifications. Could you please try r1808?
max26199
Member
Posts: 36
Joined: January 2nd, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby max26199 » Tue Aug 18, 2009 11:49 am

thx evilynux, r1808 recognizes the video width correctly ;)
but i don't really get, how to switch between these 3 different playing-modes?

anyway: GStreamer seems to be working, playing videos like this works:
gst-launch-0.10.exe playbin uri=file:///D:\vidh.avi
Dr. Professor Logic
User avatar
Lysdestic
Member
Posts: 2939
Joined: December 14th, 2007
Reputation: 7
Contact:

Re: FoFiX v3.1xx development thread

Postby Lysdestic » Tue Aug 18, 2009 12:27 pm

evilbobthebob wrote: :glare: Yes, I know that Lysdestic, but it's not really the best solution...


Fair enough. But I must say, even as an alpha-tester, if there is an issue that is broken, and you have done everything you can do to troubleshoot and report it, the only option left is a roll back, until it is fixed.

It is simply part of the alpha-testing 'game'.
Wait what
User avatar
evilbobthebob
Member
Posts: 1011
Joined: August 25th, 2008
Location: UK
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby evilbobthebob » Tue Aug 18, 2009 12:31 pm

Well, it was fixed in a revision that was released soon after I became aware of the error. It doesn't matter now; I should have reverted.
All my songs | My Hero Project: A Hero
The Smart Way to Ask Questions
Image

Spoiler:ummmmm hey guys
you suck because I said so
I know everything about art guys
what you make is worthless because you use photos
allow me to bash you and not prove I hold any talent of my own guys
guys guys guys
look at me
I need attention

evilynux
Member
Posts: 382
Joined: July 2nd, 2008
Location: Montréal, Canada
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby evilynux » Tue Aug 18, 2009 2:12 pm

max26199 wrote:thx evilynux, r1808 recognizes the video width correctly ;)
but i don't really get, how to switch between these 3 different playing-modes?

anyway: GStreamer seems to be working, playing videos like this works:
gst-launch-0.10.exe playbin uri=file:///D:\vidh.avi


Great!
About switching between "playing modes", actually those are unit tests.
It'll go thru all 3 test cases by itself, you just have to wait until the end of the video.
So i suggest you either find yourself a small video or comment out the other 2 test cases you don't want.
The test cases are testVideoPlayerLayer, testVideoPlayerSlave and testVideoPlayerSlaveShowOff .

The third one "shows" the power of having the frames as OpenGL textures that can be applied to any polygon (or pygame/SDL Surfaces if you will).
User avatar
Mafiu
Member
Posts: 87
Joined: December 7th, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby Mafiu » Tue Aug 18, 2009 5:05 pm

The game looks great with the VideoBackGround, but my FPS drop like 20fps.
I forget. LETS ROCK!
User avatar
jfosheezy
Member
Posts: 920
Joined: June 22nd, 2008
Location: The deepest pits of hell
Reputation: 1

Re: FoFiX v3.1xx development thread

Postby jfosheezy » Tue Aug 18, 2009 5:40 pm

ok i have rev 1808 and i am good at computers so you arent talking to a noob
but i cant get the videos to work


onmouseout="this.style.cursor='default'" alt="" />



ImageImage
Image
Image
Image
Image



Return to “FoFiX”

Who is online

Users browsing this forum: No registered users and 40 guests