onetrickwolf Posted February 11, 2016 Share Posted February 11, 2016 Been trying to get PBR materials to load on an STL but have been having problems. I decided to just start over and download the example project here: http://babylonjs-playground.com/#1GELZQ#7 However, when I run it (without any modification in multiple browsers) I get the error "TypeError: BABYLON.PBRMaterial is not a constructor" This is an official example so I don't know what I'd be doing wrong. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 11, 2016 Share Posted February 11, 2016 Works for me..try clean your browsers cache? Quote Link to comment Share on other sites More sharing options...
onetrickwolf Posted February 11, 2016 Author Share Posted February 11, 2016 Sorry, I meant it runs fine on the site but when I download it and try to run the code myself I get that error. Quote Link to comment Share on other sites More sharing options...
onetrickwolf Posted February 11, 2016 Author Share Posted February 11, 2016 My IDE isn't even showing PBRMaterial exists and I can't find it in the documentation hmmm... Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted February 11, 2016 Share Posted February 11, 2016 Have you included babylon.pbrMaterial.js in your HTML file ? link to the file: https://github.com/BabylonJS/Babylon.js/tree/master/materialsLibrary/dist Koroldev 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 11, 2016 Share Posted February 11, 2016 @luaacro is correct. PBR is part of the material library So you need to reference it I'm thinking about adding it to the core but some fellows developers are concerned about framework size Quote Link to comment Share on other sites More sharing options...
onetrickwolf Posted February 11, 2016 Author Share Posted February 11, 2016 Oh okay that was it! Sorry! New to Babylon! Quote Link to comment Share on other sites More sharing options...
Temechon Posted February 11, 2016 Share Posted February 11, 2016 2 hours ago, Deltakosh said: I'm thinking about adding it to the core but some fellows developers are concerned about framework size I know who you are talking about GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.