Niosop Posted January 9, 2010 Share Posted January 9, 2010 Well, it took me two days and the final result was like 12 lines of code, so I feel pretty dumb. But, I learned a lot and found the AWESOME libtheoraplayer library, so I'm happy. Doing this brought up some issues, like not having the ability to load vorbis sound data from an ogg theora+vorbis file, and the lack of features to help with syncing sound to video. But all in all it is actually REALLY easy to do and performs very well. You can see a short demo here: Performance is excellent. Due to libtheoraplayer being multithreaded, I actually get almost no impact to framerate because of the decoding process, although this only helps on a multicore system with a free core to do the decoding. Minimum I saw was 80FPS for that scene when not using FRAPS. Just rendering the video to a surface alone was giving me about 250FPS. I'm thinking about writing a shader to do the Y'CbCr->RGB conversion, but with it being on a separate thread it might actually hurt performance on multicore machines. Will try it out sometime and let you guys know. The video playing is Elephant's Dream, the house is by GIMPY73. 4 Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
Josh Posted January 9, 2010 Share Posted January 9, 2010 This is amazing. You even used the average pixel color to control the light color. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Paul Thomas Posted January 9, 2010 Share Posted January 9, 2010 That is awesome man. Great job. Quote Link to comment Share on other sites More sharing options...
Laurens Posted January 9, 2010 Share Posted January 9, 2010 I'm stunned, that is truly amazing! Great job Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted January 9, 2010 Share Posted January 9, 2010 Now that's impressive and two days well spent, nice job Niosop Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Pixel Perfect Posted January 9, 2010 Share Posted January 9, 2010 Very nice demo, well done! That guy seriously needs to stop watching television though and seek medical attention Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++ Link to comment Share on other sites More sharing options...
flachdrache Posted January 9, 2010 Share Posted January 9, 2010 flawless victory Quote AMD 64 X2 Dual 5k - 4GB - XFX GForce9800GT - nv196.21 - WinXP Sp3 zBrush4R2 - Silo2Pro - Unwrap3DPro - Gile - MaPZone2.5 Xxploration FPS in progress ... Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 9, 2010 Share Posted January 9, 2010 awesome! It looks realy good. Perhaps you can add some fluctuation to the light? This adds more realism to it. Take for example the code from the firepit.lua. Quote Link to comment Share on other sites More sharing options...
Canardia Posted January 9, 2010 Share Posted January 9, 2010 Wow cool! I love how the brightness of the TV screen works as a light too, but a colored like Josh said would add a huge realism and should be quite easy to do too. 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...
Niosop Posted January 9, 2010 Author Share Posted January 9, 2010 Actually it is colored. The video is crappy quality but there's a point light right in front of the screen. Every loop it takes the average color of the screen and changes the point light to that color. Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
Rick Posted January 9, 2010 Share Posted January 9, 2010 Very cool. Now how do we do it Quote Link to comment Share on other sites More sharing options...
Niosop Posted January 9, 2010 Author Share Posted January 9, 2010 Will post code today Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
Jordan Posted January 9, 2010 Share Posted January 9, 2010 Looks great. And the light is a nice touch, seems very realistic. 1 Quote Link to comment Share on other sites More sharing options...
wailingmonkey Posted January 9, 2010 Share Posted January 9, 2010 that friggin rocks...nice work, Niosop! Quote Vista Ultimate SP1 64bit | Q6600 2.40 GHZ | 8GB RAM | 320MB Nvidia 8800GTS Link to comment Share on other sites More sharing options...
TylerH Posted January 10, 2010 Share Posted January 10, 2010 It would be cool if we actually had some source code to look at... Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Canardia Posted January 10, 2010 Share Posted January 10, 2010 It would be cool if we actually had some source code to look at... We have: http://leadwerks.com/werkspace/index.php?/topic/741-video-playing-example/page__view__findpost__p__6579 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...
TylerH Posted January 10, 2010 Share Posted January 10, 2010 Oh , sweet. My praise to Niosop Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
omid3098 Posted January 10, 2010 Share Posted January 10, 2010 great job! Quote Omid Saadat OD Arts Blog AMD Phenom II X4 940 - Geforce 8800GTS - 4GB RAM - XP x86 AMD 6000+ - Geforce 9800 GT - 2GB RAM - XP x86 (Home pc) Intel Core i7 - Geforce 310M - 4GB Ram - Win7 x64 (Laptop) Link to comment Share on other sites More sharing options...
L B Posted January 10, 2010 Share Posted January 10, 2010 This is amazing. You even used the average pixel color to control the light color. Beat me to it. Quote Link to comment Share on other sites More sharing options...
Qbound Posted January 11, 2010 Share Posted January 11, 2010 awesome job Quote Windows Vista 64 / Win7 64 | 12GB DDR3 1600 | I7 965 | 2 * 280GTX sli | 2 * 300GB Raptor | 2 * 1.5TB Link to comment Share on other sites More sharing options...
GIMPY73 Posted January 13, 2010 Share Posted January 13, 2010 GobSmacked Fantastic Niosop Thanks Gimpy73 Quote http://www.fallingpixel.com/mac10-3d-model/26203 (MAC-10) http://www.fallingpixel.com/glock17-3d-model/26471 (Glock-17) http://www.youtube.com/user/MRGIMPY73 Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted January 14, 2010 Share Posted January 14, 2010 Thats fantastic.. Very nice. Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD 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.