Moodle Plugin| 3D viewer GLTF

Re: Moodle Plugin| 3D viewer GLTF

by Mark Johnson -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Bryan, If your "viewer" is written in Javascript, than the more general question of "How to I add Javascript to my Moodle page?" should apply here. Moodle uses requireJS to load Javascript as AMD modules. The developer documentation should explain how to define your code as an AMD module (if it isn't already), and how to include this in your page.

Moodle 3.8 onwards will support native es6 modules, but I believe the current method will continue to work.