Home

Awesome

Blender Exporter to A-Frame VR

This Blender add-on allows you to model your scene in Blender and export it to an A-Frame VR project with a single click. The generated sources can be modified manually according to your project needs and can use a baking process to use baked Lightmaps.

This is an open source project under MIT terms, so feel free to email me or ask for a pull request, or just offer me a coffe!

<p align="center"> <img src="https://github.com/silverslade/aframe_blender_exporter/raw/master/images/aframe_exporter_0_0_9.png"> </p>

Features

Changelog & todo

See here for the updated changelog.

Main Configuration

This Addon manages the following settings (all of them switchable inside the UI):

Contents

Installation

How to use this A-Frame Blender Exporter

<p align="center"> <img src="https://github.com/silverslade/aframe_blender_exporter/raw/master/images/main-window.png"> </p>

How to view the 3D scene

How to execute the A-Frame 3D scene from Blender

How to execute the A-Frame 3D scene standalone

Several possibilities for running a local web server to test or delivery your WebVR page:

For further instructions, see the official project page.

Main UI configuration

Main Ui for the current version 0.0.10. For a better usability, the add-on is divided into 6 main panels:

A-Frame Panel

<p align="center"> <img src="https://github.com/silverslade/aframe_blender_exporter/raw/master/images/aframe_panel_0_0_7.png"> </p>
PropertyDescriptionDefault Value
A-FrameA-Frame Version1.2.0
Show StatsShow the A-Frame stats window. For debug purpose.False
Show JoystickShow a icon controller to move playerFalse
Enable VR Controllers (HTC, Quest)Enable Controllers for further inteactionsFalse
Cube Env MapFor skybox reflections (but not objects reflections). To get objects reflections also, enable the Camera Cube EnvFalse
Camera Cube Envwith objects reflectionsFalse
Show Enviroment SkyActivate a default skyboxFalse
Enable BackgroundCamera cube env with background skyFalse
Pathdirectory path for the equirectangular sky/env/
Extwith objects reflectionsjpg
Cast ShadowsFor dynamic lights and shadows.False

Renderer Panel

<p align="center"> <img src="https://github.com/silverslade/aframe_blender_exporter/raw/master/images/renderer_panel_0_0_7.png"> </p>
PropertyDescriptionDefault Value
AntialiasingA-Frame's Scene SettingTrue
Color ManagementA-Frame's Scene SettingTrue
Physically Correct LightsA-Frame's Scene SettingTrue

Player Panel

<p align="center"> <img src="https://github.com/silverslade/aframe_blender_exporter/raw/master/images/player_panel_0_0_7.png"> </p>
PropertyDescriptionDefault Value
Enable RaycastActivate a raycast for interactions. You can set length and interval valuesFalse
Raycast LengthSet the Length of the raycast. Shorter or turned off is for better performance4.0
Raycast IntervalSet the polling interval in msec. Higher is for better performance2000.0
Player HeightSet the Height of the main camera1.70
Player SpeedSet the Speed of the player0.1

Interactive/Action Panel

<p align="center"> <img src="https://github.com/silverslade/aframe_blender_exporter/raw/master/images/interactive_panel_0_0_7.png"> </p>
PropertyDescriptionDefault Value
Add CubemapEnable the reflections for the selected object
Add Rotation on ZEnable rotation animation on Z axis for the selected object
Add Toggle Imagesset 2 images toggling with click on the selected object (plane mesh)
Add Link WebEnable html link when clicking on the selected object
Add Videoset a mp4 video for the selected object (plane mesh)

Exporter Panel

<p align="center"> <img src="https://github.com/silverslade/aframe_blender_exporter/raw/master/images/export_panel_0_0_7.png"> </p>
PropertyDescriptionDefault Value
NameProject name. It's the target directory where your project will be created.aframe-prj
Export ToTarget Directory where the Name Directory will be createdC:/temp/
Clear Assets DirectoryTo remove old 3d models from the main assets dir

Credits

Contributors

Third Party Components

This Addon Uses the following 3rd Party Software (or their integration/modification):

Help

If you like the project and want to help, these are the main activities:

In this case, drop me a line.

License

The MIT License (MIT)

Copyright (c) 2023 Alessandro Schillaci

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.