I reworked the ArtRoom, which I revived, and re-baked and exported it from Blender to BabylonJS, to the glTF (.glb) file format specifically from Blender.
I mainly added plates to put my photography on. I also tried to put a dedicated environment into the scene, but somehow the .babylon file is broken after exporting it. What I did is drag and drop the Blender export onto the BabyonJS sandbox and saved it as BabylonJS and glTF. But for some reason the environment did not come across.
But since I set all objects to “unlit”, this doesn’t really matter that much.
Update April 16. This above is a heavily optimized version. A bit more moody, smaller textures and reduced figures polycount more manually. Basically the file went from 96 MB to 2 MB. Workflow seems stable.
I export from Blender using the built in glTF exporter, import that into the BabylonJS Sandbox, tweak a few things and export it from there. A very big help in all my work going to JPG is Greg Benz’s WebSharp PRO. Highly recommend adding this to your workflow as well!
Create your own environment (still unsolved)
So, technically, to create an environment go here.
drag and drop a hdr image
save the env
drag and drop the saved .env scene onto a sandbox scene
But as said above, somehow the exported scene is broken. It cannot be re-imported to the BabylonJS sandbox…
Next step would be to code it up and make the images clickable.
I have always looked for possibilities to display 3D content on the web. Many authoring software packages or plugins came and died. Now there’s a new initiative that looks very promising. Modern, sexy (yes, I still use that description, sue me!), easy, flexible and just cool.
It’s called BabylonJS and you can find all information about it at their website.
It’s then very convenient to load the exported scene into the BabylonJS sandbox where textures can be loaded or replaced and the materials can be tweaked. Plus there’s a lot more settings that can be set. Like how far down the user can tilt the camera, or add a dedicated environment and much more. And the Java capabilities of the Framework the sky is the limit 🙂
Also there’s a WordPress plugin to display your models on your website, stored local or in the cloud! Actually there is two plugins. More about them here.
Example; ArtRoom 2022 (revived)
I revived a project I did with Vera Liechti many years ago. We entered an exhibition contest and wanted to present Vera’s oil paintings interactively. Meaning we built in a stereo camera (something like a kinect) and the visitors could interact with the artwork by moving their body. The visitor could then step on a button and the version of Vera’s painting would have been printed and the visitor could take that print home. Here’s the PDF we submitted. Unfortunately we were not accepted. We had a working prototype. Here’s the previz data from then now reworked in Blender and exported to Babylon JS.
While getting nice results with the built-in baking in Blender, There’s no way to denoise the renders while rendering. That’s not a biggie, as the compositor can easily be used to denoise the results.
But the baking is sorta cumbersome and very manual. So I was looking for a solution that would automate this a bit. First I tried this GitHub project called “Lightmapper“. But even after hours of testing, running various Blender versions etc. I simply did not get any images out of it. It rendered for 0.0 or 0.01 seconds and nothing. I am sure I missed something, but as it looks like a cool solution. Give it a try! Projects like those are not priceless because they’re free, but many times they combine the best of many commercial tools. But there’s always the “which version of host app to run with which version of the code” problem. Which is not the case with commercial products.
So I found the apparently most well known Blender baking tool called “Baketool“. Bought it, installed it, played with it, consulted their documentation and watched a video or two and I was up and running and it rendered images in no time.
While there’s more than “Baketools” and the Github project “Lightmapper”, I am happy with my purchase of “Blendtools”. I found my list here. Give it whirl, you might find something that suits you.
Side note: I added a point light for more illumination than just from the neon tubes with an emissive material. And also a spot light to bake the figure.
The process is very easy with this addon.
Create a new Job
Decide the baking mode (Individual or Atlas & Target)
Setup mode, save path, Image format and render device
UV settings (Good at default)
Then add the object you want to bake
Choose the render passes
Created a job called “ArtRoom-2022_REGULAR”
Chose to bake individual surfaces to texture
Enabled “Expert” because it has more options
Set path, chose PNG and CPU (with my 1060 there’s not much difference to CPU…)
Added all the meshes I want to bake
Setup AO and Diffuse pass to be rendered (more samples on AO for less noisiness)