We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Blogs

Blender to WebGL in 4 Simple Steps

This guide is aimed at Blender artists who seek for a quick way to publish their 3D models on the Web and have no time to read lengthy manuals. For this reason, only essential steps are mentioned for a streamlined Blender-to-WebGL workflow.

Blender and WebGL logos

Summary

  • Download and install Verge3D add-on for Blender
  • Create a new WebGL project
  • Add your models to the project and export
  • Publish on the Web

What’s WebGL?

WebGL is a feature which allows you to render interactive 3D graphics straight in modern web browsers without the need to download anything or use any third-party plug-ins. This is a quite low-level technology that requires programming. Luckily, various WebGL toolkits exist to make your life easier.

One of them is Verge3D, a framework that features realistic graphics, codeless approach to creating interactivity, efficient web-friendly format for loading assets, and what’s the most important… it works on top of Blender!

Step 1. Getting started

Download and install Verge3D. For Windows, installation is just “next next finish”, for macOS/Linux the required steps are a bit different.

Verge3D installation

Open Blender and go to “Preferences…” by selecting the corresponding option in the “File” menu.

Blender preferences

Go to the “Add-ons” tab. Find and enable the Verge3D addon, then close the preferences window.

Activating Blender addon

Installation complete!

By the way, from now on you have a really great feature called “Sneak Peek”. By clicking the corresponding button you will perform an export to a temporary folder and immediately show your scene in a new browser tab. Use this for quick tests when creating new projects is not feasible.

Button to preview Blender scene in WebGL

Step 2. Creating a new WebGL project

The App Manager as a web-based tool which opens up in the browser when you click the “App Manager” button.

App Manager button

Time to create a new project! Just press on the icon located on the left toolbar.

Icon to create new WebGL app

Here you can enter a project name (My Awesome App will also work) and click “Create App”. You can safely leave the other options as is.

Create New App dialog

After you created a project, return to the main screen of the App Manager – your project should be listed there. Now you can proceed with your app in several directions: simply running it, authoring the graphics, creating interactive scenarios and eventually, publishing.

Running WebGL app via App Manager

You can run your app any time by clicking the Verge3D icons, either the blue or the green one. The blue icon launches an app in its final form, with its Puzzles scenario and the programming code (if present). On the contrary, the green icon only opens the exported scene.

Step 3. Adding Blender assets and exporting

Clicking on the Blender icon opens up the main .blend file for your application. You can simply edit this file or replace it by your own asset entirely.

Running Blender asset via App Manager

Exporting can be performed from the File > Export menu in Blender. You can export your scene file right to the root of the application folder, in WebGL-friendly format called glTF.

Export Blender scene to glTF
Global Illumination demo which comes with Verge3D

After successful export, launch your app by clicking the blue Verge3D logo icon in the App Manager.

Step 4. Publishing

You’ve created a web application and probably you’d like the billions of Internet users to come and check it out. If you own a website, this won’t be a problem – simply upload the entire folder with your application to your server (for example, via FTP).
But what if you haven’t had the chance to become a web master? Actually, there is a button for that in the App Manager (one with the “Upwards Arrow” icon). Clicking that button will upload your app to the Verge3D Network, a cloud-based storage and CDN hosted on Amazon servers.

Icon to upload WebGL application
Dialog with links to the uploaded WebGL application

What’s next

In this guide we used Verge3D as a fancy web exporter, which “just” generates live WebGL views running in the browser. But you can do much, much more! With Puzzles, the powerful yet entertaining scripting environment which comes with Verge3D, you no longer have to be a programmer to do… programming. Try it out!

Run visual programming editor

This is just a brief overview of Verge3D workflow with many topics possibly left undiscussed. Check out the Beginner’s Guide to learn about more exciting features of this framework.

Update 2022-10-19

Update installation guide and screenshots. Reflect Verge3D’s newest features.

Update 2019-02-19

Updated text and images to reflect recent developments.

By Alexander Kovelenov

Soft8Soft Tech Chief

Leave a Reply

Related Posts