Basic VR Template

Customize this app
55
import logging
from gunicorn.app.base import BaseApplication
from app_init import create_initialized_flask_app

# Flask app creation should be done by create_initialized_flask_app to avoid circular dependency problems.
app = create_initialized_flask_app()

# Setup logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

class StandaloneApplication(BaseApplication):
    def __init__(self, app, options=None):
        self.application = app
        self.options = options or {}
        super().__init__()

    def load_config(self):
        # Apply configuration to Gunicorn
        for key, value in self.options.items():
            if key in self.cfg.settings and value is not None:
                self.cfg.set(key.lower(), value)

    def load(self):
Get full code

Basic VR Template

Created: | Last Updated:

Introduction to the Basic VR Template

Welcome to the Basic VR Template! This template provides a simple VR experience using A-Frame, a web framework for building virtual reality experiences. This template is perfect for creating basic VR applications and can be extended for more complex projects.

Getting Started

To get started with this template, click Start with this Template.

Testing the Template

Once you have started with the template, you can test the application by pressing the Test button. This will deploy the app and launch the Lazy CLI. The deployment process will set up the necessary environment and start the application.

Using the App

After the deployment is complete, you can access the VR experience through the provided link. The app includes the following features:

  • Platform: A simple platform represented by a green box.
  • Player Rig: A player rig that includes a camera and two hand controllers.
  • Lighting: Ambient and directional lighting to enhance the VR environment.
  • Sky: A sky element with a light blue color.

Navigating the VR Experience

  • Movement: Use the movement controls to navigate the platform.
  • Hand Controllers: The left and right hand controllers are represented by red and blue spheres, respectively.

Conclusion

You have now set up and tested the Basic VR Template. This template provides a simple VR experience that you can extend and customize for your own projects. Enjoy building your VR applications!

Technologies

Flask Flask
Python Python