Shard Posted May 19, 2010 Share Posted May 19, 2010 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? Quote 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 More sharing options...
AggrorJorn Posted May 19, 2010 Share Posted May 19, 2010 http://leadwerks.com/werkspace/index.php?/topic/730-video-to-texture-via-libtheoraplayer/page__p__6458__hl__theora__fromsearch__1entry6458 http://leadwerks.com/werkspace/index.php?/files/file/89-letheorazip/ Quote Link to comment Share on other sites More sharing options...
Shard Posted May 19, 2010 Author Share Posted May 19, 2010 http://leadwerks.com/werkspace/index.php?/topic/730-video-to-texture-via-libtheoraplayer/page__p__6458__hl__theora__fromsearch__1entry6458 http://leadwerks.com/werkspace/index.php?/files/file/89-letheorazip/ 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. Quote 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 More sharing options...
AggrorJorn Posted May 20, 2010 Share Posted May 20, 2010 np. but it is actually Niosop you have to thank. He made this awesome thinoig. Quote Link to comment Share on other sites More sharing options...
Shard Posted May 21, 2010 Author Share Posted May 21, 2010 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? Quote 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 More sharing options...
ZioRed Posted May 21, 2010 Share Posted May 21, 2010 I haven't tried but it may be you have not installed the Platform SDK which I think contains "GL/gl.h" ? Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
Shard Posted May 21, 2010 Author Share Posted May 21, 2010 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. Quote 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 More sharing options...
Canardia Posted May 21, 2010 Share Posted May 21, 2010 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. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Shard Posted May 22, 2010 Author Share Posted May 22, 2010 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? Quote 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 More sharing options...
paramecij Posted May 24, 2010 Share Posted May 24, 2010 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... Quote Link to comment Share on other sites More sharing options...
Shard Posted May 31, 2010 Author Share Posted May 31, 2010 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/ Quote 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 More sharing options...
Recommended Posts
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.