Jump to content


  • Content Count

  • Joined

  • Last visited

About onetrickwolf

  • Rank

Recent Profile Visitors

761 profile views
  1. Wait that worked actually it was a dumb error thanks! I was putting it in the wrong place!
  2. Hmm like this? var gui = new bGUI.GUISystem(scene, 1024, 768); gui.updateCamera(); Problem is still happening.
  3. When I use bGUI at all, even just this line: var gui = new bGUI.GUISystem(scene, 1024, 768); It creates a tiny version of my scene on top of the current scene. In the attached image you can see that in debug mode it is showing the tiny bounding box that is the main model in my scene. It is always on top of the bigger model and looks pretty bad. Any way to hide this?
  4. I replaced diffuseTexture with albedoTexture and that seemed to work. Is that just a difference between PBR and standard? Having trouble figuring out what the equivalent to specular would be.
  5. Hmm not sure how to load external files on the playground but here is the full code that's giving me issues: http://www.babylonjs-playground.com/#UUZUS#3
  6. Updated to preview release worked thanks didn't know this was a preview feature! However, the only texture that works is the bumpTexture (it looks amazing though!). The diffuse and specular don't seem to be working. Any idea why? Thanks for always be so helpful Deltakosh will try to repay the forum in the future by answering questions once I know more!
  7. var material = new BABYLON.PBRMaterial("ball player", scene); material.diffuseTexture = new BABYLON.Texture("assets/02_Ball Player/ball_player_D.png", scene); material.bumpTexture = new BABYLON.Texture("assets/02_Ball Player/ball_player_N.png", scene); material.specularTexture = new BABYLON.Texture("assets/02_Ball Player/ball_player_S.png", scene); //Attach the material to the sphere mesh.material = material; The above works fine when swapping out PBRMaterial with StandardMaterial. When I do PBRMaterial though I'm getting: Uncaught TypeError: Cannot read property 'PrepareDefinesForLights'
  8. Ah thanks I will play around with it and let you know what I find!
  9. Okay little confused. So I have a .babylon file that includes textures and the AssetLoader automatically loads the textures it seems. However, I tried manipulating the textures and it's not working: var meshTask = assetsManager.addMeshTask("skull task", "", "./", "models/skull/elongated_skull.babylon"); meshTask.onSuccess = function(task){ model = task.loadedMeshes[0]; console.log(model.material); //returning null }; Any ideas?
  10. Well one thing I am having a bit of trouble with is how to load a model then apply a texture...it makes sense to me on paper but can't seem to get it working...this is what I've tried: var model; var assetsManager = new BABYLON.AssetsManager(scene); var meshTask = assetsManager.addMeshTask("skull task", "", "./", "models/skull/skull.babylon"); meshTask.onSuccess = function(task){ model = task.loadedMeshes[0]; } var textureTask = assetsManager.addTextureTask("image task", "models/skull/elongated_skull_D.png"); textureTask.onSuccess = function(task) { model.material.diffuseTexture =
  11. Hey I am coming from three.js and have been working with Babylon on and off for about a month. We are making a 3D model viewer and are interested in using PBRMaterials because they really make the models look amazing. I am trying to figure out the best way to let users choose a model, have that model loaded, the textures loaded, then apply the textures as PBRMaterials to the model. There seems to be A LOT of ways to approach this and was wondering someone could just give me some light advice on how they would do this? I was converting the models and textures to Babylon file
  12. My IDE isn't even showing PBRMaterial exists and I can't find it in the documentation hmmm...
  13. 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.
  14. 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.
  • Create New...