Hi there,
i´m working on a project where i need to create more then 150 single GLB files…
I´m working with 3D max 2021
Using the babylon exporter the glb file that come out looks fine…
But…I need it on a black background…the exported glb file has always awhite background…
no matter what settings for background colour…Environment etc etc are.
Even when i load it into any GLB editor to change that it always stays white
I need the GLB files for usage in a "shopify " shop page…
You have skybox? Transparent canvas? It’s hard to say without seeing it in action. If you could setup the playground, or share the GLB file it would be helpful.
since i´m not into programming it a bit hard to understand…
I did try that setting several ways…in teh tree.js editor and also doing that setting in zhe babylon.js viewer.
I´m not sure though wether these “programms” save these setting when exporting ( saving) the glb file again…so if not…in what “progarmm” can i do this setting and it will be saved when saving as a glb file again…
The thing with the skybox…i tried it with or without…no visible difference…
There is no way to export it from 3dmax with a black background…there are setting for the skybox in the exporter…but somehow nothing happens
where can i upload the glb file for yu to have a look at it?
I am not sure to understand what you are trying to achieve anymore. At first I thought you wanted to get rid of the white background, but the model you shared does not have one so it should be all good ?
the 3d viewer takes a bit to load…its work in progress…and lots of textures etc to be loaded…
at teh moment it works best with chrome…and a graphic card with lets say at least 8GB
Why not using babylon for the viewer ? and you could set the background via code.
Otherwise you would need to create a cube far enough but not to far where the face are facing inward with a black unlit material, and a camera in the box. Also you need to make sure the viewer supports unlit and camera extension.
ok…i did try that as well…but since i´m not into programming at all…i did have real problems working with
that progarmm…i didn´t even get my glb file loaded …
i tried it with the babylon viewer…there are settings for the background as well but i´m not sure wether
these settings are saved when exporting the glb file again…it looked the same as before
So the viewer is not going to save the bg color when you export as a glb file again. You can save the playground scene to snippet server for example that will save that.