Support for a New Media file type (X3D) in commons:
Related Bug : https://bugzilla.wikimedia.org/show_bug.cgi?id=1790
OBH, Palash Niwas,
IIIT Hyderabad, Gachibowli - 500032
Mobile Number: +919985341596
Email ID : email@example.com , firstname.lastname@example.org
- Jack feels that the NASA ISS model available at the NASA web page should be available to the entire community. However, there is no support for a format that would allow Jack to show this model to the people in its full glory.
- Albert just discovers some discrepancy in the molecular DNA model he was studying. He feels the best way to publish his views and finds is by involving the community. However, the best case he believes is if people don't have to visualize his theory but rather it be presented to them in a self explanatory 3D model. If only there was support for a format that would allow him to upload the model from his PC on to the commons database.
For the above cases we need support for a format that is open source, freely available and well documented. Furthermore, even if the user is using a different software, the format supported by the commons should be popular enough so that most 3D softwares can output in that format. We also need to be able to check for the contents inside the file for security and other purposes and thus the format must be such that this is possible. Finally, we need a format that has appropriate fall back methods in case some browser does not support it.
The Commons is a database of millions of media files with support for many formats. However, There have been requests for the support of several file types that are currently unavailable. One pretty common request was for X3D file type that is used to support and represent 3D computer graphics. For this project I want to focus on being able to implement the support for this file. The main objective of my project shall be to incorporate this format into the supported file types available for the commons. To make these files supportable on the commons is not the only challenge of the project. These files have to be dealt with in a way such that their content can be validated by Wikimedia to ensure that it is well formed and does not contain any type of malware/trojan content or potential cross site scripting (XSS) vulnerabilities. The implementation that would be used to support these file formats has to be made in a manner that it is supported by maximum (at least the popular ones) browsers and there are appropriate fall back procedures for ones that don't support them. I have taken up x3d due to the following reasons,
- Is open source and well documented. (http://x3dom.org/docs/dev/)
- Is quite popular and one of the supported output formats of many 3D softwares.
- x3d files can be checked for meta data and other contents making the checking process easy.
- Has appropriate fall back methods i.e using webGL and flash.
- Support for x3d files has been a popular request among the commons community (for which this project is proposed)
Possible Mentors : Bryan Davis
- A complete solution that would enable wikimedia to support X3D files on the commons and allow users to upload the same.
- Fixing and updating the raster image generator application to be able to sustain a viable solution with the help of only freely licensed and open source third party plugins.
- Security measures against improperly formed files and checks for malware or trojan content in the file.
- Fall back procedures for browsers that cannot incorporate the developed solution.
Further if time permits,
- Add support for COLLADA file type. It is possible that after the work done on x3d, working on COLLADA might be trivial and on similar lines. In this case, support for the second file type shall also be implemented.
- 21 st April – 18 th May : Get familiar with the community, code base. Establish all communication mediums required for the project.
- 19 th May – 29 th May : Get started with the project. First aim is to enable validation process for this category of files. Ensure proper formation of file and check all contents. May need to upgrade previous verifier or build a new one on similar lines as the previous one.
- 31 st May – 10 th June: Now, need to extract the meta data from the files. We will need this data later on for the rendering process.
- 12 th June – 22 nd June: Use MediaWiki's previous method of representing files that is by creating thumbnails. For this we need to be able to generate a high quality raster image in reasonable time without the use of any third party plug ins.
- 24 th June – 1 st July: Improve the code developed so far to completely incorporate the X3D files. Mid Term Evaluations in between.
- 2 nd July – 15 th July: Create thumbnails from the generated raster images. Embed these into the media wiki page. Integration period.
As shown in the timeline, I have divided this project into several phases. The work mentioned in each time bracket shall be my milestones. I have given very short breaks in between every two time brackets. This may be also used for documentation of the work along with rest. I prefer to work in nights. Since I live in India (UTC + 5:30) it might mean some other time for my mentors. My typical work timings would be 1200 hrs - 1700 hrs and 2200 hrs - 0400 hrs. This is my preference, however, I would be flexible to change my schedule if needed.
To communicate with my mentors I am open to all mediums. I have a decent connection at my home and shall be available at whatever communication method fits my mentor. I would prefer regular video chats as I feel it provides best coordination. Apart from that I shall be a regular at the IRC as I feel the best help I can get would be from the community itself. Mails are obviously an option when nothing else works. I plan to update my mentors with every update in my project and get feedback at the related IRC channels after completion of each milestone.
Hi! I am Umang. I am a 2 nd year student at IIIT-H doing my Bachelors in Computer Science Engineering. It is one of the best universities in India for Computer Science. I have been a regular user of Linux and am comfortable with it. I heard of this program from a friend of mine who has been a past applicant. During this time, the project shall be my sole focus and first priority as the duration of the project lies directly in my summer break from college. Also, this is the only project that I am applying for this year. I feel this project shall solve a long lasting problem (9 years I guess) faced by many people in the community. Also, I believe with all the technology available one should be able to express his views in whatever way best describes his find. Not being able to represent computer graphics properly definitely is a flaw and should be fixed.