Jump to content

[Reopened] Rendering Video Cutscenes


Shard
 Share

Recommended Posts

How do you guys render your cut-scene videos (in C++)

 

My teammate has been looking into using the library created by NeHebut the render quality is *horrible* (see attached image) and doesn't play any audio.

 

I've looked into some other libraries, like Bink Video but I find that my bank account is $6000 lacking.

 

Also, another thing that I'm thinking about is rendering to the window that the game is running in. For example, if we have a mission and a cut scene happens in the middle of a mission, it needs to be rendered to the same window. How would I go about doing that?

 

I know that Josh isn't a fan of cutscenes (I vaguely remember an old Leadwerks forum thread), however we are required by our school to include some sort of narrative in our games and Porche has already begun the creation of the cut scene which he will render to into avi or whatever format we need it in.

 

So, what do you guys use?

post-26-12743081451346_thumb.jpg

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Link to comment
Share on other sites

 

 

You sir are my hero. If I had 50 golden stars, you would get 51 of them.

Thank you for the speedy and accurate response. I owe you.

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Link to comment
Share on other sites

So got a new question: how do I use it?

 

I looked at this post: http://leadwerks.com/werkspace/index.php?/topic/741-video-playing-example/page__view__findpost__p__6579 to see if I could use it as an example but Visual Studio says that it can't find the .h files. And rightly so, they aren't in the download.

 

So how do I include the stuff so that I can actually use em?

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Link to comment
Share on other sites

I haven't tried but it may be you have not installed the Platform SDK which I think contains "GL/gl.h" ?

 

That includes fine. Its the #include "TheoraVideoManager.h" and #include "TheoraVideoFrame.h" that don't work because they don't exist.

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Link to comment
Share on other sites

What did google say about theora c++ library downloads then? I didn't check, but I would assume you need need to download theora to use theora, since it's not part of microsoft sdk. :angry:

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

What did google say about theora c++ library downloads then? I didn't check, but I would assume you need need to download theora to use theora, since it's not part of microsoft sdk. ;)

 

 

Well I was told to download Theora and I did. I placed it in the Leadwerks SDK Folder and included them. Now I get this warning:

warning C4251: 'TheoraVideoClip::mName' : class 'std::basic_string<_Elem,_Traits,_Ax>' needs to have dll-interface to be used by clients of class 'TheoraVideoClip'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]

 

 

Also, in LETheora.cpp, it can't locate

#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"

 

Also, how am I supposed to link things non statically anyways?

 

Could someone just explain the process of linking the library?

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Link to comment
Share on other sites

In visual studio you can go to project properties / c++ / code generation / runtime library - and set it to multithreaded (not the dll one) and it should statically link all linked libraries(if i remember correctly), but I don't suggest it..

 

To actually link a library you go under project properties / linker / input / additional dependencies ...

 

But I do it the lazy-man's way:

// you can link a lib in code like so , (may only work with visual studio)
#pragma comment(lib,"libtheoraplayer.lib")
...
// needed headers
#include "TheoraVideoManager.h"
#include "TheoraVideoFrame.h"
...

 

I hope this is what you meant? .. don't know about LETheora.cpp and lua stuff, I worked my way from the hello world example that came with libtheoraplayer...

Link to comment
Share on other sites

In visual studio you can go to project properties / c++ / code generation / runtime library - and set it to multithreaded (not the dll one) and it should statically link all linked libraries(if i remember correctly), but I don't suggest it..

 

To actually link a library you go under project properties / linker / input / additional dependencies ...

 

But I do it the lazy-man's way:

// you can link a lib in code like so , (may only work with visual studio)
#pragma comment(lib,"libtheoraplayer.lib")
...
// needed headers
#include "TheoraVideoManager.h"
#include "TheoraVideoFrame.h"
...

 

I hope this is what you meant? .. don't know about LETheora.cpp and lua stuff, I worked my way from the hello world example that came with libtheoraplayer...

 

 

Thanks, that worked perfect. The linking works fine.

Now if we could get this to work, we'd be set >,> http://leadwerks.com/werkspace/index.php?/topic/2080-letheora-crashing-at-create-clip/

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...