Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: WMV to TV3DTexture v0.1  (Read 3203 times)
beyonder
Moderator
Community Member
*****
Posts: 445


« on: July 23, 2009, 04:14:31 PM »

This file is depricated. Please go here to get the new version which includes sound and the ability to play any movie, just not WMVs.

http://www.truevision3d.com/forums/announcements/tv3dmovie_v10_movie_to_texture_with_sound-t20593.0.html

Hello.

Wanted to share this little gem. It will play a Windows Media movie (WMV) on any texture.



Its written as a MFC DLL and uses Windows Media Format 11 SDK to compile. There's really  no other way to do it. Should run on Vista, might need the WMSDK11 distributable for xp (I think.) : WMFDist11-WindowsXP-X86-ENU.exe

Here is all the source including a VB.Net project, a VB6 project, and of course the DLL itself... which come in under 200k.

Feel free to use it in any or all your projects. In fact, if there is a C++ officionado here, I would really appreciate him going thru the code and optimizing and tightening any loose screws. I'm definately not a C++ expert.  Tongue  (I can't belive I got it to work!)

http://orionintelligence.com/WMV_TV3D.zip

Looks like FPS is an issue with big sized movies. However, small movies... 256X256 pixels and such seem to do ok. Works well for background TVs and small animated textures.

I also have an AVI version of the DLL... but its not ready yet.

Let me know it works out for you.

ciao


EDIT: I didnt have time to update the code... but I found a major FPS issue: If you load the texture from memory with the correct width and height it will give you a %50 percent speed up.

Texture = TextureFactory.LoadTexture(TVGlobals.GetDataSourceFromMemory(GetImageHandle, GetImageSize), "textureName", GetMovieWidth, GetMovieHeight, , False)


« Last Edit: February 13, 2011, 10:35:08 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
beyonder
Moderator
Community Member
*****
Posts: 445


« Reply #1 on: July 23, 2009, 07:22:37 PM »

You know... I tried putting the render loop calls to the dll in a timer with 1ms interval.

I'm getting 1000 FPS now! It works because the frames are only being updated 30 times a seconds... so you don't need to call it that many times.

Anyway... works great in VB6 timer. Not in Vb.Net! It crawls! So wierd... And the fact that the texture is being swapped in a timer worries me. Maybe I will try an interval setting using accurate time in my do loop next.
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
beyonder
Moderator
Community Member
*****
Posts: 445


« Reply #2 on: July 23, 2009, 08:02:37 PM »



Look at the change in FPS! I updated the download to reflect the changes. I couldnt see any hicupping either! I went with a do loop interval.



  Cheesy

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
SylvainTV
Administrator
Community Member
*****
Posts: 4944


WWW
« Reply #3 on: July 24, 2009, 06:26:39 AM »

Nice, looks like you made a replacement for the small video dll i had made before !
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 !
beyonder
Moderator
Community Member
*****
Posts: 445


« Reply #4 on: July 24, 2009, 04:53:02 PM »

Thanks!  Smiley

Is yours still available? I'm sure its better than  mine... no, I know it.  Grin

Umm... one thing. I'm getting a slow down in FPS in Vista. It will work great 1500FPS and then it will go down to 25FPS and then it will speed up again after a few seconds. XP works great tho. Its probably some memory issue... or leak. Although I made pretty sure. If you have any ideas let me know...

thx

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
asia
Customers
Community Member
*****
Posts: 182


« Reply #5 on: September 23, 2009, 07:20:47 AM »

I did download the zip file but in the VB6 example the module1.bas is missing. Could you add the missing module so the example can be compiled?
Thanks
Fabio
Logged

Fabio Musmeci
ENEA
CR Casaccia
Via Anguillarese 301
00060 Rome
Italy
musmeci@enea.it
+39 3333934898
Learning to live better on a smaller footprint..
beyonder
Moderator
Community Member
*****
Posts: 445


« Reply #6 on: September 23, 2009, 07:28:09 AM »

Oops, you're right! Done.

FYI, if you find a way to enhnace this DLL, please do so and report back.

Thanks.

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
asia
Customers
Community Member
*****
Posts: 182


« Reply #7 on: September 23, 2009, 08:07:08 AM »

Unbelivable! If you compile the VB6 project and run out of the environment everything is alright. If you try to run in the VB enviroment you get error 49 (error in the calling convention).
Try yourself!
Logged

Fabio Musmeci
ENEA
CR Casaccia
Via Anguillarese 301
00060 Rome
Italy
musmeci@enea.it
+39 3333934898
Learning to live better on a smaller footprint..
beyonder
Moderator
Community Member
*****
Posts: 445


« Reply #8 on: September 23, 2009, 12:39:45 PM »

Oh that's normal... it will happen with any DLL that isn't registered. And no, this isn't a DLL that needs registering.  Smiley
« Last Edit: September 23, 2009, 12:42:50 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
Markabi
Community Member
*
Posts: 5

when you have clear image, you have the TureVision


WWW
« Reply #9 on: February 05, 2010, 01:45:52 PM »

thanks beyonder for your tool,
it give the 3d-world new kind of animations,..
Logged

when you have clear picture, you have the TureVision3D..
petrus
Customers
Community Member
*****
Posts: 115


« Reply #10 on: February 24, 2010, 07:50:22 AM »

what the...
Where did this come from?
Logged
petrus
Customers
Community Member
*****
Posts: 115


« Reply #11 on: March 05, 2010, 06:44:03 AM »

Ok sorry for the bump. Grin
I want to ask if you can play sound with the video. I can probably load it into an audio instance using microsoft.directx.audiovideoplayback and play it with the video?
Logged
3DTV
Community Member
*
Posts: 2


« Reply #12 on: January 04, 2011, 04:58:20 AM »

Hi!I can't run this example in C++. Could you give me the example in c++?
Thanks
Logged
beyonder
Moderator
Community Member
*****
Posts: 445


« Reply #13 on: January 04, 2011, 12:01:27 PM »

Couldn't really help you there... I haven't touched TV3D/C++ for a long time.

But, the DLL itself is in C++. Maybe you can include the project into your code. Might just be able to grab the image dc straight.
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
3DTV
Community Member
*
Posts: 2


« Reply #14 on: January 05, 2011, 08:54:42 PM »

Couldn't really help you there... I haven't touched TV3D/C++ for a long time.

But, the DLL itself is in C++. Maybe you can include the project into your code. Might just be able to grab the image dc straight.
Thanks for your answer. I will try it one more time.
Logged
Pages: [1]
  Print  
 
Jump to:  

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