Skip to content

Heaust-ops/babylonview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Babylon View

A blender addon that lets you view your babylonjs scenes in blender.

I'd love for you to try this out and give me your thoughts :)

Babylonjs discussion thread: https://forum.babylonjs.com/t/a-blender-addon-for-babylonjs-scene-viewing/57580.

How to install

Step 1: Download this repo as zip.

You can do this by clicking on the green Code button on this page, and then clicking on Download Zip

How to download repo as zip

Step 2: Install the zip as an addon.

To install an addon, open up blender and go to: Edit > Preferences > Add-ons > Install

How to install a blender addon

Now go to your Downloads folder, select the file named "babylonview-main.zip" and click on Install Add-on

Select the downloaded addon to install

Step 3: Enabling the addon.

That's is the addon is installed!

Now to enable it, search for "babylonjs view" in your addons, click on the checkbox and you're done!

Enabling the installed addon

and that's it! you have the addon integrated :)

How to use

Step 1: Open your views sidebar.

Hit the "n" key on your keyboard to open the views sidebar, you'll see a new "Babylon.js View" tab on it, click on it.

Babylon.js View sidebar in the views sidebar

Step 2: Start the server.

Once you're in the "Babylon.js View" tab, you should see a button that says "Start Server", click on it.

How to start the server

Congrats! you have the addon turned on now :)

Notification that the server has started

Step 3: Open up the babylonjs view in your browser.

Open up your browser (Google Chrome, Mozilla Firefox, Edge... etc) and type localhost:8001 in your url bar and hit the Enter key

babylon view opened up in a browser

It may take a while if your scene is large, please be patient, but your blender scene should now load up in your browser using babylonjs!

You'll also see 3 buttons at the bottom.

Use the "glb sync" button to sync your babylonjs scene whenever you make changes in blender so they reflect in your browser.

This is quite slow as it does a full gltf export/import.

If you want something faster and more realtime, click on the "realtime sync" button and that'll turn on the realtime sync mode, any changes you do in blender will be instantly reflected in your browser.

The "babylonjs inspector" button opens up the Babylonjs Inspector for you to inspect your scene.

Workflows

Glb Sync

If you're just occasionally glancing at your browser window, it might be a good idea to use the "glb sync" button to update the scene whenever you occasionally need to.

This because the Glb Sync mode is more stable and gaurantees (as of right now) complete translation of your scene, whereas the realtime mode might introduce inconsistencies over time, and waste precious resources computing.

Here's how one might use this workflow.

glb.sync.workflow.mp4

Realtime Sync

If the model you're working with is large, glb sync may take a lot of time. or you might want to more actively monitor your changes, for example when focusing on getting things right in babylonjs.

here's how you might use the Realtime workflow.

realtime.sync.workflow.mp4

Mustang Showcase

Here's how this free mustang scene from blenderkit looks :)

mustang.showcase.mp4

Bug Reporting

If you face any issues with this addon, feel free to post it on the issues section of this repository.

It would help if you included these details in your issue report,

  • what you issue is!
  • what you were expecting.
  • how you encountered the issue.
  • steps to reliably reproduce the issue.

and that's kind of it!

If you'd like addon to do extra stuff, have more features, please submit your feature request as an issue too!

In that case please provide these details,

  • What feature do you want!
  • Why you want it.
  • How much of an impact this would make for you and your experience.

That's it.


Have fun!

About

A blender addon that let's you view your blender scene immediately in babylonjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors