sidebar features
sidebar content

Go Back   Blender Artists Forums > Game Engine > Game Engine Resources

Reply
 
Thread Tools
ashsid ashsid is offline
Member
 
Join Date: Feb 2003
Location: Bratislava, Slovakia, Europe
Posts: 814
I have released the first version of video player plugin to GameBlender. It allows to play video files in Blender game. It can be run on WinXP, Blender 2.41 and Python 2.4. It's in early alpha stage, and contains almost no error handling.
I plan to release it under GPL because it uses some structures and functions from Blender codebase.
Try it and tell me your opinions and suggestions.

Last edited by ashsid; 10-Dec-07 at 18:18. Reason: change of hyperlink to page
#1   Old 18-Apr-06, 08:40   
Reply With Quote


Olm-Z's Avatar
Olm-Z Olm-Z is offline
Member
 
Join Date: Apr 2006
Location: Bxl - Be
Posts: 280
hello,

I'm very pleased to see that coming... I tried it but for myself, the video opens in a separate "active movie window" in place that being displayed on the surfaces in the 3d view... (winXP sp1 blender2.41)
#2   Old 18-Apr-06, 11:38   
Reply With Quote
ashsid ashsid is offline
Member
 
Join Date: Feb 2003
Location: Bratislava, Slovakia, Europe
Posts: 814
Oops, that's surprise for me. I think it means that TextureRenderer object wasn't added to DirectShow graph and video is rendered using standard video window. This must be caused by some unhandled error in my dll. Will look at it ASAP. BTW, what version of DirectX you have?

I forgot to mention that Xvid decoder is also required, if you want to replay bundled videos.
#3   Old 18-Apr-06, 12:12   
Reply With Quote
goldentaiji's Avatar
goldentaiji goldentaiji is offline
Member
 
Join Date: Jan 2004
Location: Virginia
Posts: 1,432
0_0 woah holy cow. This is really cool, I hope you continue this until it's perfect.

Hmm... would you be able to add in pause, stop, play particular time interval (1:00-1:30), etc? Would make the whole thing for game use very versatile.

Although would it be more efficient in the future (maybe have very little affect on the fps)? It's a really big fps hog. Even on my P4 2.53 GHz, GEFORCE 6600GT, I get 44 fps, and when the left most video activates it drops to like 14 fps.

Heh, but great work by the way. I can see many people wanting to use this type of feature.

Jason Lin
............................................
Blender3dTutor
http://blender3dtutor.com
Blender Aquarius
http://goldentaiji.googlepages.com/blenderaquarius-main

Last edited by goldentaiji; 18-Apr-06 at 14:21.
#4   Old 18-Apr-06, 14:13   
Reply With Quote
ashsid ashsid is offline
Member
 
Join Date: Feb 2003
Location: Bratislava, Slovakia, Europe
Posts: 814
My current plan is:
1. Add error handling.
2. Extend API to allow: play video clip n-times or infinitely; pausing; playing specified interval of frames; after clip will stop, leave last frame of clip or restore original texture.
3. Performance improvements (btw on my Athlon 2500 it gives 20-25 fps while playing both videos - it's on screenshot).
#5   Old 18-Apr-06, 14:48   
Reply With Quote
glitchCORD~ glitchCORD~ is offline
Member
 
Join Date: Jul 2005
Location: London, UK
Posts: 172
this is awesome, just what ive been waiting for!

like everyone else im getting low performance when both clips are playing 7-8fps but with just the one theres hardly any dropout, its going at about 70fps thats on a p4 3.2ghz 1gb ram. i guess its a seperate area entirely but different blending modes [additive/subtractive/multiply/divide] would be a great feature for me [not sure bout anyone else though ]

also im getting a bug owhen activating use blender materials- thats on blender 2.42preview6 python 2.4 with an ati mobility 9600.

cheers and keep up the good work!

will
............................................
http://www.willhurt.net
#6   Old 18-Apr-06, 15:14   
Reply With Quote
Olm-Z's Avatar
Olm-Z Olm-Z is offline
Member
 
Join Date: Apr 2006
Location: Bxl - Be
Posts: 280
mm.. I reinstalled the directx9b and it didnt change ... I'm on a X700 ATI with Athlon64 3500+ ...
#7   Old 18-Apr-06, 15:25   
Reply With Quote
ashsid ashsid is offline
Member
 
Join Date: Feb 2003
Location: Bratislava, Slovakia, Europe
Posts: 814
Performance tip: most important performance hog seems to be scaling of video image sizes to power of 2 values. I have uploaded new version of demo, where video size is 256 x 128. Performance has been much improved by this change.

glitchCORD~ wrote:
Quote:
different blending modes [additive/subtractive/multiply/divide] would be a great feature
yes, that's right now beyond my focus - I'm just trying to allow video to do the same things as a standard texture does in GameBlender.

Blender Materials: Right now no support for them, this feature is on the end of my priority list, but of course it should not crash.

Olm-Z, I will add error logging to get description of your error.
#8   Old 18-Apr-06, 16:15   
Reply With Quote
hokuken_k's Avatar
hokuken_k hokuken_k is offline
Member
 
Join Date: Oct 2004
Location: Thailand
Posts: 33
WOW Extreme Exciting

On my computer , it run FAST !!!

Good work
#9   Old 18-Apr-06, 16:42   
Reply With Quote
pildanovak's Avatar
pildanovak pildanovak is offline
Member
 
Join Date: May 2004
Posts: 958
crashes for me, i have win xp home and radeon x600, python 2.4.3, crashes after hitting the trigger key
#10   Old 18-Apr-06, 17:01   
Reply With Quote
MeiaLua MeiaLua is offline
Member
 
Join Date: Jan 2006
Location: Mashing up a dancehall
Posts: 92
W O W !

didn't work for me first time, but it works now - at 100fps no less!! Fantastic Work, really!

Is it possible to make a plugin like this that just loads jpeg images and maps them in the same way? I may be wrong, but in blender there does not seem to be a way to load in new images while a game is running, unless its running in the the editor. I really need that function for a project, but I cant make anything as COOL as this video player!
#11   Old 18-Apr-06, 19:06   
Reply With Quote
marvo's Avatar
marvo marvo is offline
Member
 
Join Date: Aug 2005
Location: Pittsburgh PA USA
Posts: 722
yeah this is what i get....

............................................
.
#12   Old 18-Apr-06, 20:12   
Reply With Quote
MeiaLua MeiaLua is offline
Member
 
Join Date: Jan 2006
Location: Mashing up a dancehall
Posts: 92
You need to put the blendVideoTex.dll in your blender directory I think. If its working correctly, you should see the videos playing on the plane objects. It works perfectly on my system, and its really nice!
#13   Old 18-Apr-06, 20:31   
Reply With Quote
marvo's Avatar
marvo marvo is offline
Member
 
Join Date: Aug 2005
Location: Pittsburgh PA USA
Posts: 722
yeah its in there^
............................................
.
#14   Old 18-Apr-06, 21:13   
Reply With Quote
fireside's Avatar
fireside fireside is offline
Member
 
Join Date: Sep 2004
Posts: 1,442
I don't suppose you considered doing a cross platform solution for this?
#15   Old 18-Apr-06, 23:23   
Reply With Quote
blender_rox's Avatar
blender_rox blender_rox is offline
Member
 
Join Date: Dec 2004
Location: The USA (Florida).
Posts: 743
^^^ Ya, that would be nice, but it's not gonna happen... ^^^
............................................
http://www.vidyanow.net/ <-- The Latest and Greatest Game Website Around!
#16   Old 18-Apr-06, 23:44   
Reply With Quote
fireside's Avatar
fireside fireside is offline
Member
 
Join Date: Sep 2004
Posts: 1,442
I know mplayer does opengl output. I'll try not to get too down on Microsoft, but can we spell vendor lock? Wrong version, wrong whatever. Even if you have Windows it's update or die.

Last edited by fireside; 19-Apr-06 at 00:59.
#17   Old 19-Apr-06, 00:36   
Reply With Quote
GeneralJ's Avatar
GeneralJ GeneralJ is offline
Member
 
Join Date: May 2005
Posts: 46
Wow I like that, definatly keep going!
It runs very quick on my machine as you can see from this pic:
(My machines stats are in the picture.)
............................................
Blenderific!
#18   Old 19-Apr-06, 04:51   
Reply With Quote
pildanovak's Avatar
pildanovak pildanovak is offline
Member
 
Join Date: May 2004
Posts: 958
i managed to run it, but the movies play in separate windows...
#19   Old 19-Apr-06, 10:23   
Reply With Quote
goldentaiji's Avatar
goldentaiji goldentaiji is offline
Member
 
Join Date: Jan 2004
Location: Virginia
Posts: 1,432
Quote:
Originally Posted by ashsid
Performance tip: most important performance hog seems to be scaling of video image sizes to power of 2 values. I have uploaded new version of demo, where video size is 256 x 128. Performance has been much improved by this change.
Lol, a little modest about the speed boost are we...

Originally, I had...
Quote:
Originally Posted by goldentaiji
P4 2.53 GHz, GEFORCE 6600GT, I get 44 fps, and when the left most video activates it drops to like 14 fps.
Lol, now with all the video planes playing, I get 400+ fps.

I can't wait till the other features are added in making this complete. Heh, I'm just so excited about this feature.

Jason Lin
............................................
Blender3dTutor
http://blender3dtutor.com
Blender Aquarius
http://goldentaiji.googlepages.com/blenderaquarius-main
#20   Old 19-Apr-06, 11:56   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Video Tutorial Idea upgrdman News & Discussion 13 05-Jun-06 03:48
Help needed on Texture Baker built in script. ROUBAL Basics & Interface 3 26-Mar-05 19:48
Duplicating a texture? Bagration Basics & Interface 4 20-Mar-05 19:07
REQ: texture baker youngbatcat Python & Plugins 8 23-Jul-04 03:30
Video player. zoulou News & Discussion 3 10-Dec-03 18:09


All times are GMT. The time now is 18:17.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists