-
Content Count
5 -
Joined
-
Last visited
About tetley_tea
-
Rank
Newbie
-
tetley_tea changed their profile photo
-
Textures still black using .obj file
tetley_tea replied to tetley_tea's topic in Questions & Answers
Fixed with Maya to 3Ds Max, then 3Ds Max exported to babylon.js -
Hey, I have an issue with loading textures using an .obj and .mtl file. There's over 300 textures that need to be loaded in. I've checked the developer console in chrome and it appears that BabylonJS does indeed load them in, but they're still appearing as black textures in the view-port. Check below for image: I've seen that this is a common issue with .obj and .mtl files. Just wondering if anyone actually has a solution for this? Pete.
-
+1 That worked! Thank-you!
-
-
Hey Deltakosh! I have imported the babylonjs library in my TypeScript file . As such: import * as BABYLON from 'babylonjs'; I have also imported the babylonjs and babylonjs-loaders types in my tsconfig.json file. { "compilerOptions": { "module": "es2015", "moduleResolution": "node", "target": "es5", "sourceMap": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, "skipDefaultLibCheck": true, "skipLibCheck": true, // Workaround for https://github.com/angular/angular/issues/17863. Remove this if you upgrade to a fixed version of Angular. "strict": true, "lib": [ "es6", "dom" ], "types": [ "babylonjs", "babylonjs-loaders", "webpack-env" ] }, "exclude": [ "bin", "node_modules" ], "atom": { "rewriteTsconfig": false } } Am I missing something? I installed babylonjs locally using NPM: npm install babylonjs babylonjs-loaders --save-dev Thanks, Pete.
-
tetley_tea started following importMesh of undefined from undefined
-
Hi, I'm trying to use Angular 2 to create a BabylonJS scene - but seem to having some difficulty getting the OBJ loader to bring in the OBJ model. I'm getting this error: Unable to import meshes from http://localhost.cdn.com/b_azir.obj: importMesh of undefined from undefined version: undefined, exporter version: undefinedimportMesh has failed JSON parse. http://localhost.cdn.com is just an IIS website that points to a localhost website that contains the model files. (OBJ, MTL and textures). I can navigate to http://localhost.cdn.com/b_azir.obj fine. So that's no issue. I can include the code if one wishes. I would create a playground. But does it support TS? Thanks, Pete.