Outputting An MPO File

Blitz3D Forums/Blitz3D Programming/Outputting An MPO File

AvestheFox(Posted 2011) [#1]
MPO = Multi Picture Output

The file pretty much combines two images together to be viewed in 3D, and its the file system that 3D devices (such as the Nintendo 3DS and other 3D viewing handhelds) use to showcase simple 3D pictures.

I'm working on a project where people can develop their own 3D avatars, and I want to implement a feature that would allow that avatar to pose in a 3D setting and the program would take a snapshot, outputting an MPO file for that person to view on his 3D viewing device, or exchange with others so that they can view on theirs.

So, I'm wondering... could this possibly be done in Blitz 3D? All I need to do is combine the two rendered images (both for the left and right eye) and output it somehow.

Thoughts?


Yasha(Posted 2011) [#2]
The simple answer is yes, because if you know the file specification you can output anything with WriteBytes.

This may be useful: http://www.cipa.jp/english/hyoujunka/kikaku/pdf/DC-007_E.pdf

This page also looks helpful, apparently having helpful tools: http://www.stereoscopynews.com/download/software/654-mpo-toolbox.html

It looks like the MPO system is actually some way of combining JPGs..? So probably the easiest way to do it from within Blitz3D is to get hold of a FreeImage DLL (so you can output JPG, because this is probably the hardest part) and putting the rest together on top of this may not be particularly hard by comparison.


AvestheFox(Posted 2011) [#3]
Thanks, I'll definitely give it a look :)