Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: TV3DMovie V1.02 - Movie to Texture with Sound  (Read 3656 times)
beyonder
Moderator
Community Member
*****
Posts: 461


« on: February 13, 2011, 10:33:41 PM »



http://www.youtube.com/watch?v=uYZwqS4jn3E


Here is a full solution to putting a movie on a texture. It even has audio plus volume and stereo balance controls.

The archive includes a Vb6, Vb.Net, and C# demos of it working. I used VS2008 to compile all my work. I also included the source to the TV3DMovie.DLL. That's written in MFC and you will need Windows SDK 6 to compile as it uses DirectShow.

Because it uses DirectShow it will play almost any movie on your computer.  Tongue

This effectively replaces my WMV to Texture dll I wrote some months back.

Version 1.0
Release

Version 1.01
Added "IsMovieOver" function. This lets your app know that the movie has ended.

Version 1.02
Recoded it as an ActiveX DLL. A lot easier to use. Samples have also been updated. Don't forget to register the DLL.  Tongue

Download
http://orionintelligence.com/Tv3DMovie.zip



That's it! Have fun.  Cheesy

« Last Edit: February 18, 2011, 02:44:02 AM by beyonder » Logged

"And what I saw scared me to the depths of my miserable soul. It was true, it was all a sham, it ain't real." - The Thirteenth Floor
PaulTheAxeman
Community Member
*
Posts: 37


« Reply #1 on: February 14, 2011, 04:23:31 AM »

Wow, this is great stuff. I'll have fun trying this. Thanks for sharing. It's always nice seeing new stuff added for use by the community. Just hope I can provide stuff in the future.
Logged
beyonder
Moderator
Community Member
*****
Posts: 461


« Reply #2 on: February 14, 2011, 06:11:20 AM »

No problem Paul! glad to help.

I updated the file. It's now even more convinient to use. It's now an ATL COM Dll. Sample projects have also been updated. It's way better as an ActiveX... a lot more tidy anyway.  Smiley

You'll have to register the DLL before the samples will work of course.
« Last Edit: February 14, 2011, 06:14:15 AM by beyonder » Logged

"And what I saw scared me to the depths of my miserable soul. It was true, it was all a sham, it ain't real." - The Thirteenth Floor
arnienet
Customers
Community Member
*****
Posts: 263


WWW
« Reply #3 on: February 14, 2011, 06:31:21 PM »

Thanks also indeed, although I don't need it atm, I'm sure I would in the future at some point, so thanks for sharing your hard work, and saving us all hours of research and development (and debugging!).
Logged

Total Dev time = 50% to code, 50% to test, 50% to find errors, 50% to fix, that's why it takes twice as long.

Dawn World MMO
Lenn
Customers
Community Member
*****
Posts: 876

+/-


« Reply #4 on: February 15, 2011, 11:42:54 AM »

Thanks, I will probably need this soon. Smiley

How is it better compare to your WMV to texture dll? Any significant reasons why you made this and moved away from WMV?
Logged

TV3D 6.5 Community Docs - Read, use and please contribute!
beyonder
Moderator
Community Member
*****
Posts: 461


« Reply #5 on: February 15, 2011, 03:43:54 PM »

Yay!

Well this one has sound. This one can read WMVs *and* AVIs. This one is an ActiveX - not a DLL you have to call explicitly. Oh... did I mention it has sound and volume and balance conttrols?  Cheesy I would use this one. Tongue
« Last Edit: February 15, 2011, 03:49:35 PM by beyonder » Logged

"And what I saw scared me to the depths of my miserable soul. It was true, it was all a sham, it ain't real." - The Thirteenth Floor
AriusEso
Customers
Community Member
*****
Posts: 940

Esoteric


« Reply #6 on: March 28, 2011, 11:35:45 AM »

Beyonder, do you have any plans to update this so it doesn't use the deprecated SampleGrabber interface?

I'm having trouble following your DLL source correctly because I don't have the required headers( MS seems to no longer support/offer them ).
Logged

-...-

beyonder
Moderator
Community Member
*****
Posts: 461


« Reply #7 on: March 28, 2011, 12:40:29 PM »

Use Windows SDK 6. Not sure why SampleGrabber wasn't included but you'll find a lot of people complaining about it and using SDK 6 because of it. Ogre3D Moive2Texture uses the same thing. You could always create your own DirectShow filter using Windows SDK 7. Ugh right? That's why I used SampleGrabber. If you come up with another solution let us know. I don't see any problem tho using SampleGrabber. Laters.

« Last Edit: March 29, 2011, 04:57:29 AM by beyonder » Logged

"And what I saw scared me to the depths of my miserable soul. It was true, it was all a sham, it ain't real." - The Thirteenth Floor
AriusEso
Customers
Community Member
*****
Posts: 940

Esoteric


« Reply #8 on: March 28, 2011, 12:52:44 PM »

Use Windows SDK 6. Not sure why SampleGrabber wasn't included but you'll find a lot of people complaining about it and using SDK 6 because of it. Ogre3D Moive2Texture uses the same thing. You could always create your own DirectShow filter using Windows SDK 7. Ugh right? That's why I used SampleGrabber. If you come up with another solution let us know. I don't see any problem tho using SampleGrabber tho. Laters.



I'll give that a go. Thanks. Smiley
Logged

-...-

SylvainTV
Administrator
Community Member
*****
Posts: 4946


WWW
« Reply #9 on: May 01, 2011, 06:42:08 AM »

That's great.. No need anymore for a official TV video thingy then :p
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
tedlin01
Customers
Community Member
*****
Posts: 143


WWW
« Reply #10 on: June 30, 2011, 04:13:09 AM »

Anyone know how to get this to work with c++?
Logged

Mithrandir
Community Member
*
Posts: 325


« Reply #11 on: June 30, 2011, 04:45:47 AM »

Check out this post instead:
http://www.truevision3d.com/forums/tv3d_sdk_65/vlc_wrapper-t20765.0.html;msg140752#msg140752

That library has the same functionality, but it's based on VLC and it's written in managed c++. It will be straight forward to rewrite it to unmanaged c++ if that's what you are using.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks