I have tested most of the libraries available for processing able to render video files, but i never was happy. Either it became slow, unstable or just crashing. I wanted something better, so i went looking into JMF (Java Media Framework).
During my research i came across this Pirelenito’s website with a great example on using FOBS+JMF, exactly what i needed. So i downloaded it and started working on it, putting into it a bit of myself.
So here it is, a first pre-beta version of a library capable of rendering movie files (with sound) with Java/Processing without much effort.
NOTE! I’m still having problems with a couple of codecs like DivX, Xvid, H264. It crashes on me when rendering some of these, but it works just fine for Mpeg4, PhotoJPEG, Cinepak. It isn’t perfect, but if you be careful and use the right format/codec it will go smooth. Meanwhile i will be working on a better version.
I have played with 3d stereoscopic in the past but never got to make someting good. This is still not the time sorry, but… i think its worth the post and the time. So what do we have here ?
The technique used is called ‘off-axis frustum’ a.k.a the “right way”, courtesy of Paul Bourke. If you want to read more about it you should pay a visit to his website.
2 images are rendered from 2 different point of views, creating two images with some little differences between them. The off-axis frustum means the point of view might not lie on the perpendicular line to the ‘view-area’. These 2 images are then sent to a simple shader that takes the R channel from the left-eye buffer, the GB channels from the right-eye buffer and then mixes it into a single stereo image. This is the color glasses compositing method, but it sure is possible to just send both images down the two adapters of your videocard and get the same 3d feeling (with colors) using an Head-Mounted Display or a multi-projector system of some kind.
____________________________________________________________________ Mri3ds v1.2 has been released
* Wrapper data structures moved into the library.
* V3dsScene is now part of the library. Look at the examples on how to load a .3ds scene.
ObjImp v1.1 has been released.
* Wrapper data structures moved into the library.
* ObjImpScene is now part of the library. Look at the examples on how to load a .obj scene.
Deep is a demo created by me and Filipe “ps” Cruz. Following it’s subtle success and a few requests, i thought it would be useful to make it’s source code public. Hope you enjoy it, and make sure you watch the demo.
It should be easy to get it rolling, but if you get problems, read the “readme.txt” file and make sure you have installed the dependencies. Once that is done, open the project and run it. Don’t forget to let me know if you liked it. Have fun.