I’m a front-end web dev and complete novice at 3D platforms. I’m trying to create a simple proof of concept to show my management that we can use models from third parties such as TurboSquid to create an interactive web interface that allows customers to change the colors of some of the model surfaces. I’ve been able to download a free car model from TS (free duesen bayern mystar 190 3d model) and export it to Blender 2.79 as a Babylon.JS file. I’m succeeding in importing that model in Babylon and changing the color for part of the model, at least, with code like this:
let material = task.loadedMeshes[0].material = new BABYLON.StandardMaterial(‘mat’, scene);
material.emissiveColor = BABYLON.Color3.Red();
While I realize that I need to get at least some basic Babylon.JS skills under my belt (and am spending this
Sunday afternoon getting started), the sooner that I can show my team a decent demo, the sooner that I’ll be able to devote some work hours to it. I had the impression from the TurboSquid listing that this model came with several naturalistic skins (textures? materials?). I was hoping that I could get a quick win by adding code to just change the color of some of those surfaces.
At this point, I’m just hoping that someone can tell me if there is a step that I missed which is preventing those skins from displaying. I’m wondering if maybe it’s just that the file format that I imported into Blender (OBJ) doesn’t support that, or if Blender just can’t export them to the Babylon file format.
This is actually the first time that I’ve posted a question to a forum. I have read that the Babylon community is amazing. I’m amazed that a platform as powerful and as supported as BabylonJS is open source. I applaud this amazing thing that you all have built, and I thank you in advance for any guidance that you can give!