Closed levlups closed 5 years ago
Hi, this is more a Babylon.js question, so the forums there might be able to help. If the colors are coming out dull, my guess would be that the issue is lighting? You could try changing the materials emmissive / diffuse / specular colors - e.g. setting the emissive color to white should make the mesh draw at full brightness even if no light is affecting it.
material.emissiveColor = BABYLON.Color3.White()
it didnt do anything let me show you the issue ,and ill post the issue on babylonjs forum , Im just asking you Andy because you are a more experience babtlonjs user than me I started using babylonjs a week ago because of noa engine , I was a threejs guy
by the way Andy would you know how to load an .obj file or .glb gltf ,I have been trying for a week never worked
Sorry, on Babylon I understand the internals but I really don't know anything about high-level stuff like reading in object formats.
However in my experience the easy way to get answers on babylon stuff is to try your code in the playground. If you can reproduce your issue there, just hit the save button and then post that link to the Babylon forum, and then the pros there can very easily see what you did and how to fix it.
I added this code to add custom mesh form png , from the index.html file , it works but the colors are not replicated exactly and the colors are super dull anybody see a mistake in my code
function supermesh(){
var supermesh = BABYLON.Mesh.MergeMeshes(mesharrays,true);
}