lingkernyurk.

Members
  • Content Count

    9
  • Joined

  • Last visited

  1. Hi. Thinks for reading my question. I am first on babylon.js I am developing viewer can load obj on babylon.js How to set backfaceculling of loaded obj file in babylon.js? My viewer showed backfaceculling state. Therefore I did work as follow. mesh = loader.addMeshTask("bane", "", "Assets/"+ type +"/", id + ".obj"); mesh.onSuccess = function (task) { allMesh = task.loadedMeshes; for(i=0; i<task.loadedMeshes.length;i++) { submesh = allMesh[i]; submesh.material.backFaceCulling = false; ... } but it didn't work rightly. http://localhost/shedbuilder/sheds/ also. To set hasAlpha didn't work. submesh.material.diffuseTexture.hasAlpha = true; please help me. I uploaded my obj file. myfile.rar Best regards.
  2. Hi. Deltakosh Thanks your Replay. please check http://shedbuilder.cmux.co/sheds/ send My file. I believe you will help me. best regards. THE PONDEROSA.rar
  3. Hi. I am babylonjs beginer. I am going to develop viewer to loading obj file using babylon.js however. face flip is happened in work. normal vector was reversed. I don't know why that happen. this is image using assimp viewer. next: using babylon.js pleas help me! I believe your capacity.
  4. Hi. I am babylon.js beginner. I am developing obj.file viewer using babylon.js By the way, when loading obj.file, DefaultLodingscreen separeted form canvas. this is static screen: this is loadingscreen. I will wait good resolution. best regards.
  5. Hi javalang Thanks your reply. I did work as you said, but it don't work well. Send my code. mesh = loader.addMeshTask("bane", "", "Assets/"+ type +"/", id + ".obj"); mesh.onSuccess = function (task) { allMesh = task.loadedMeshes; for(i=0; i<task.loadedMeshes.length;i++) { allMesh.material.diffuseTexture.hasAlpha = true; } I believe you can help me.! Waiting for your reply.
  6. Hi RaananW Thanks for you replay. I send you my file.My file.zip. I believe you have a capacity to help me. Best regards
  7. I am a beginer of babylon.js. I was going to load obj file using babylon.objfileloader, but did't work alpha channel and transparency in loading obj.file. The code I worked is follow var loader = new BABYLON.AssetsManager(scene); BABYLON.OBJFileLoader.OPTIMIZE_WITH_UV = true; var mesh; mesh = loader.addMeshTask("bane", "", "Assets/Chicken Coop/", id + ".obj"); obj file works well in assimpView, but don't work in babylon.js Here is result by babylon.js I believe you to help me. best regards.