The XML3D Module provides a simple and easy way to integrate the XML3D models and applications into Drupal. The current 7.x-1.x version allows to simply enter the XML3D code into a Long Text field that has the XML3D Input Field formatter. The content will then be displayed on the page in the form of an iframe having the same size as the XML3D application.
The current version of the module supports content without any external links (either code or images). Thus, the module folder contains an example directory with two sample files: css_transforms.txt and rubik_cube.txt. You can just copy the content of these files and insert it into you field.
The Project Page: http://drupal.org/node/1959792
The Git Clone Link: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/vkosenko/1959792.git xml3d_integration
Comments
Comment #1
SamChez commentedThere was an error when attempting to install it locally. You'll need to change the default branch of your repository according to this article: https://help.github.com/articles/error-remote-head-refers-to-nonexistent....
Comment #1.0
vkosenko commentedThe Git Clone Link has been corrected
Comment #2
vkosenko commentedThe git clone link has been corrected.
Some other bugs mainly concerning the formatting rules have been fixed as well.
The remaining warnings (http://ventral.org/pareview/httpgitdrupalorgsandboxvkosenko1959792git-7x-1x) belong to the example files that are intended to be used for testing purposes only.
Comment #3
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
chason commented@vkosenko - very cool module. This is the first I've seen of XML3d technology, looks exciting. A lot of possibilities.
Manual Review:
I installed the module and libraries, created a content type with a Long Text field and applied the XML3d Input Field formatter to the display. Then pasted in all the contents from rubik_cube.txt but do not see any output. Is there something that I should look for that's causing it not to display? Perhaps adding some error logging to the module might help debug?
Your code looks clean. Nothing stands out as needing additional work as far as structure and syntax is concerned.
Comment #5
vkosenko commented@chason: thank you very much for your review and comments!
In case if the module does not work for you, please check the following:
1) check your browser: Firefox and Chrome are the only browsers supported at the moment. See detailed description on how to install the module at: http://drupal.cocomore.com/blog/xml3d-and-drupal. I'd recommend you to go there and check if the example there works in your browser (the example is at the bottom of the page)
2) check your 'Recent log messages' if there are any errors or warnings of 'XML3D' type. Most of errors are logged there now.
@chason: if it still doesn't work for you, please, let me know (indicating the browser, system, drupal versions). Thank you!
Comment #6
chason commentedSuccess! I reloaded the page and the 3d cube appeared. I don't see any calls to watchdog() in your code so I'm not sure if/how errors would appear in 'Recent log message.' However, the functionality the module exposes is working as intended.
Comment #7
d34dman commentedHi,
I really like the excellent code documentation and README.txt. But i am sorry to report that your module lacks the Drupal Experience. (From a developer's perspective your module is awesomely documented i believe, but that is just my opinion ).
Suggestion 1
Thanks for the comprehensive README.txt my installation procedure went on smoothly. but I think its more appropriate to put the contributed modules in
contribfolder rather thancustomfolder.Suggestion 2
Also it would be a very nice of the module to display a drupal_set_message() regarding the need to download and install xml3d files ( and link to download them would be more awesome ).
Another place i checked for missing files report was 'admin/reports/status'. Even though i had intentionally forgot to download the required js libraries, it didn't show up there. So another suggestion of mine is to implement a hook_requirements($phase)
Something like the follow could be included in xml3d.install file.
Please note that I have not tested the above code, it just for showing you how many possible status messages could be there so that drupal user ( admin ) could take appropriate decision. Please edit it to suite your module's need as you are much better aware of what your module's requirements are than I am.
Post installation experience.
Even though i was quite alarmed with lots of garbage text for few seconds but it was soon washed away with an awesome 3d experience (it would be awesome if it could be removed somehow ).
Loved it
, it was awesome and thanks for the cool example of
rubik_cube_interactive.PS: Am not sure if i should pull it down from RTBC since these suggestions are only meant to enhance Drupal experience. Hopefully somebody having better experience in dealing with such stuff can take a proper decision.
Comment #8
vkosenko commented@chason and @D34dMan : thanks a lot for your reviews and valuable comments!
The watchdog() function is used to log errors and warnings in the xml3d.module (at the end of the file).
The folder tree is now updated and the 'custom' folder changed to 'contrib'.
The hook_requirements($phase) hook has been added in order to reflect the current state of the module on the 'Status Report' page. In case if the library files are not installed, a corresponding error message will appear on the list of the Status Report page with some more detailed information in the 'Recent log messages'.
Comment #9
d34dman commentedPlease note that below is my personal opinion.
@vkosenko i understand it may be a little inconvenient for you, but i strongly suggest that you try for a Review bonus and get the git admin's review. I have came across this post while participating in that program. By doing so i believe i have learned a lot about various standards and responsibilities that are expected from a maintainer. Also it helped me get through the process in just about less than two weeks.
I very much look forward for your contribution to become a full project.
Comment #10
klausiSorry for the delay, but you have not listed any reviews of other project applications in your issue summary as strongly recommended in the application documentation.
manual review:
Comment #11
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application (see also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #11.0
PA robot commentedThe git clone link updated