• Content count

  • Joined

  • Last visited

About KevinK

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. The version was typescript 2.8 I went back to 2.7.2 and it compiles
  2. node_modules/babylonjs/babylon.d.ts (299,5): All declarations of 'hasOrientation' must have identical modifiers. "babylonjs": "^3.2.0-beta.4", "babylonjs-gltf2interface": "^3.2.0-beta.4", "babylonjs-loaders": "^3.2.0-beta.4", "babylonjs-materials": "^3.2.0-beta.4", "babylonjs-serializers": "^3.2.0-beta.4",
  3. Solved my issue by supplying the ".obj" plugin extension importmesh
  4. I am getting the following errors when calling ImportMesh. BJS - [14:34:00]: Unable to import meshes from data:# Blender v2.79 (sub 0) OBJ File: '' : importMesh of undefined from undefined version: undefined, exporter version: undefinedimportMesh has failed JSON parse I am using beta 1 version of Babylon and loaders because of babylonjs.loaders.module.d.ts with 3.2.0-beta.3 reported Following code give me the error import * as BABYLON from 'babylonjs'; import 'babylonjs-loaders'; uploadSaveFiles(files: File[]) {, i) => { let reader = new FileReader(); if (isImage(file)) { reader.readAsDataURL(file); } else if (isObj(file)) { reader.readAsText(file); } else if (isMtl(file)) { reader.readAsText(file); } else { console.log("File not supported!"); } let data = reader.result; if( isObj(file)) { BABYLON.SceneLoader.ImportMesh("", "", 'data:' + data, scene, function (meshes: BABYLON.AbstractMesh[]) { meshes.forEach((mesh) => { console.log(mesh); }); }); } } } I am trying to load a Obj file from disk. The obj file has accompanying mtl and images files. I currently have a interface where the user drags and drops all appropriate files. Not sure if this is the best way. Do the accompanying files need to be in uploaded first before I can load obj file? If there is a better way to upload obj and material files let me know Thanks