Creating a Cinematic
Creating a Cinematic
Creating a Cinematic
Creating a Cinematic
Creating a Cinematic
Creating a Cinematic Creating a Cinematic Creating a Cinematic Creating a Cinematic Creating a Cinematic Creating a Cinematic Creating a Cinematic Creating a Cinematic
Creating a Cinematic Creating a Cinematic
Creating a Cinematic
Go Back  Xtreme Visual Basic Talk > > > Creating a Cinematic


Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2011, 10:39 PM
SomeGuy1 SomeGuy1 is offline
Newcomer
 
Join Date: Nov 2010
Posts: 10
Default Creating a Cinematic


So i want to put a Cinematic before my game starts.
I would like this to happen before any forms load and automatically in full screen.

After doing some research on google i could only find a way to put a windows media player in my project where the person would have to manually choose the video and play it. But of course that wouldnt be like a Cinematic, so any ideas on how i could do this.

Thanks
Reply With Quote
  #2  
Old 01-16-2011, 12:55 AM
Frog's Avatar
Frog Frog is offline
Freshman
 
Join Date: Aug 2003
Location: Australia
Posts: 47
Default

Check out "Microsoft.DirectX.AudioVideoPlayback"
You can play it in picturebox etc, and start automatically. Easy to use
Reply With Quote
  #3  
Old 01-16-2011, 02:51 AM
SomeGuy1 SomeGuy1 is offline
Newcomer
 
Join Date: Nov 2010
Posts: 10
Default

can you quickly tell me how i can do that, i searched it up in google and came up with tutorials to do it in C#.
Also in visual basic, when i type microsoft. the only options it gives me to type after that are Csharp, visual basic, sql server and win32.

If possible can you do a quick example please and thankyou.
Reply With Quote
  #4  
Old 01-16-2011, 01:54 PM
Frog's Avatar
Frog Frog is offline
Freshman
 
Join Date: Aug 2003
Location: Australia
Posts: 47
Default

Ok
Code:
Code:
Imports Microsoft.DirectX.AudioVideoPlayback
Public Class Form1
    ' add reference to Microsoft.DirectX.AudioVideoPlayback in .net reference window
    Dim myMovie As Video
    Dim fName As String
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        fName = (Application.StartupPath & "\oovie.avi")
        playVid()
    End Sub
 

    Sub playVid()
        myMovie = New Video(fName)
        myMovie.Owner = PictureBox1
        myMovie.Play()
    End Sub
End Class
note: if video starts too soon, you may need a delay timer
To create reference:
1: Hit ctrl-alt-L ,right click top item and select properties
2:Select add reference
3:In the net tab scroll down to Microsoft.DirectX.AudioVideoPlayback and click OK
4:in fName = (Application.StartupPath & "\oovie.avi"), change oovie.avi to the name of your video. Make sure the video resides in same folder as exe(bin\debug folder)
5:On the top menu click build and build your project
NOTE:
6:Click debug - you will get an error about loader locker and project will not run
7:To overcome this, open bin\debug folder and run the exe from there - (you can still keep visual studio open)
Use a timer to do whatever after video has played
Reply With Quote
  #5  
Old 01-16-2011, 02:16 PM
SomeGuy1 SomeGuy1 is offline
Newcomer
 
Join Date: Nov 2010
Posts: 10
Default

Thank you very much
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Creating a Cinematic
Creating a Cinematic
Creating a Cinematic Creating a Cinematic
Creating a Cinematic
Creating a Cinematic
Creating a Cinematic Creating a Cinematic Creating a Cinematic Creating a Cinematic Creating a Cinematic Creating a Cinematic Creating a Cinematic
Creating a Cinematic
Creating a Cinematic
 
Creating a Cinematic
Creating a Cinematic
 
-->