The AR learning app is an educational app that uses Augmented Reality technology. It provides an interactive learning experience for students.
The app allows users to learn about different animals or plants by placing them in a virtual world, where they can interact with them and learn more about their characteristics. The app uses augmented reality technology to overlay 3D virtual objects onto real-world images and videos. Students can use the app to learn about science topics through experiments, including chemical reactions and the effects of gravity on objects and similar many other concepts.
AR is a new technology that is being adopted by many developers and businesses. We have seen many examples of AR applications that have been developed. This AR learning application is built using the A-Frame framework. This app will help you learn how to create an augmented reality app using A-Frame and VSCODE, etc.
Please see below a sample solution kit to jumpstart your solution on the AR Learning Kit. To use this kit to build your own solution, scroll down to the Kit Deployment Instructions sections.
Deployment Information
The library added in this section is primarily used to create this Immersive AR Learning project. The entire solution is available as a package to download from the source code repository.
For Windows OS,
- Download, extract and double-click the kit installer file to install the kit. Do ensure to extract the zip file before running it.
- When you're prompted during the installation of the kit, press Y to launch the app automatically, and this one will open the application in a browser with a URL address referring to folder structure. E.g. :(c:/temp/index.html)
- But for 3d images that are put inside the application to work, you should deploy the application in your local webserver only.
- To run the application in a local environment, You can create a local HTTP server with Python by using the command "python -m http.server 8000," or you can deploy this in any other web server also.
- If you plan to use a Python-based web server and Python is not available on your machine, install Python. On that page, go down to find relevantly installable. For Windows OS, "Windows installer (64-bit) / Windows installer (32-bit)" is recommended depending on your system.
- Run the application in your local webserver.
- Now, the application can be accessed using http://localhost:8000Note: use the port where your web server is running.
Click on the button below to download the solution and follow the deployment instructions to begin set-up. This 1-click kit has all the required dependencies and resources you may need to build your AR Learning App.
Instruction to run:
Follow below instructions to run the solution:
- Locate and open the respective extracted zip file.
- Open the command prompt and start your local HTTP server with Python by using the command "python -m http.server 8000," or you can deploy this in any other web server also.
- Use the "G" marker, i.e., available in the assets folder. Show the marker to the application, and then see the 3d image in the browser. (can use the print-out-based marker or marker can be downloaded in your mobile and can also show the same).
- The application currently has 15 models. Refer the same under < a-assets > in the "index.html" file. You can replace any of the 3d models with your own model.
- Use left arrow and right arrow available on the screen to experience the models. Zoom in option is also available in the application.
For changing the images for your topics,
Create your own 3d images related to the themes that you would like to explain with AR features.
1. To add your 3d models, follow below procedure:
- The 3d models should be in the format of ".gltf"
- If your 3d model contains a single file, then place the same directly in the assets folder i.e., available under the "AR-Alphabets-master" folder otherwise if your 3d model contains multiple files, then create a folder with the respective name inside assets and place the files in the folder.
- Then go to the "index.html" file and update the src attribute accordingly Example :- src="assets/3d-model-name.gltf" or src="assets/your-folder-name/3d-model-name.gltf"
- To place your 3d model, some more helpful comments are available under < a-assets > in "index.html" file. Note:- To experience your 3d models, you should run the application on your local web server mode only. For information about creating the 3d models, kindly refer to the Creation of 3d Model Repository section.
2. You can change the size of the 3d models by adjusting the scale values in "main.js" (eg:-scale: "0.2 0.2 0.2")
3. You can also change the voice assistant corresponding to the 3d image by changing the description name in "main.js" (eg:-description: "Earth")
4. Once changes are done, make sure to restart the application for the changes to be effective.
5. Now, you will experience your theme with AR in your Environment!
6. For more details or clarification please refer this Link
Creation of 3d Model Repository
1. You can create your own 3d models by using open source IDE like unity3d, Blender, AutoCAD or you can get 3d models from open source websites given below
Note:- Kindly check the license of the 3d models before using them.
2. Make sure that 3d models should be in the form of ".gltf" format, if not so kindly change them to the respective format. You can refer to the below links to convert your 3d models in the ".gltf" format.
Troubleshooting
- While running batch file, if you encounter Windows protection alert, select More info --> Run anyway
- During kit installer, if you encounter a Windows security alert , click Allow
For a detailed tutorial on installing & executing the solution as well as learning resources including training & certification opportunities, please visit the OpenWeaver Community
Development Environment
Visual studio code IDE is used for this development. It becomes easy to modify the code and the configuration with Visual studio code.
AR Libraries
A-Frame is an open-source web framework used for building Augmented reality (AR) experiences. In the spirit of open-source software development, jQuery plays a vital role in community code contribution.
The below library could be used to create jQuery scripts and respective models.
aframeby aframevr
:a: Web framework for building virtual reality experiences.
aframeby aframevr
JavaScript 15445 Version:v1.4.2 License: Permissive (MIT)
Kit Solution Source
AR-Alphabetsby prashant-andani
Augmented Reality on Web (Web AR) for Kids to learn Alphabets with fun. AR on all Mobile Devices
AR-Alphabetsby prashant-andani
JavaScript 101 Version:Current License: Permissive (MIT)
Support
If you need help using this kit, you may reach us at the OpenWeaver Community.