babbleon

Members
  • Content count

    131
  • Joined

  • Last visited

  • Days Won

    2

babbleon last won the day on June 4

babbleon had the most liked content!

About babbleon

  • Rank
    Advanced Member

Profile Information

  • Location
    England

Recent Profile Visitors

516 profile views
  1. babbleon

    Lamps on Babylon / Open Contest!

    @Pryme8, that really is cool! Well done.
  2. babbleon

    How is vertex data stored from OBJ file?

    Just a guess, but does this obj file have any sharp edges? Blender: edge split, Max: ?smoothing groups (not used Max since 2002)
  3. babbleon

    Lamps on Babylon / Open Contest!

    I just get a sad face on my LG H850 and a 'Your browser does not support wegGL' message.
  4. babbleon

    Lamps on Babylon / Open Contest!

    I can now declare myself the winner of this contest as up to now I'm the only one to prepare a PG (despite it looking nothing like the OP asked for). 😊 http://www.babylonjs-playground.com/#S9KCDL#3 UV map templates are here: https://raw.githubusercontent.com/babbleon/babylon/master/light.png https://raw.githubusercontent.com/babbleon/babylon/master/floor.png Model here: https://raw.githubusercontent.com/babbleon/babylon/master/light.babylon ...and the .blend attached This may give someone else a head start... the lamp & floor is UV mapped, so if this is of use to anyone to come up with something awesome, then it would be great to see. Cheers, light.blend
  5. I can't think of a good reason other than I commented out all my console.log lines and just had one left! I do agree that its important to leave it there, though. Thank you, this is solved now.
  6. Hello, Is it possible to and if so, how do we suppress "Babylon.js engine (vX.X.X) launched" appearing on the console? Thank you,
  7. babbleon

    problem with playground example in how to

    https://www.google.com/search?q=site%3Ababylonjs.com+'How+to'+http%3A%2F%2Fwww.babylonjs.com%2Fplayground%2F%3F17 gives us this: https://doc.babylonjs.com/how_to/how_to_use_actions
  8. babbleon

    problem with playground example in how to

    archive.org to the rescue: https://web.archive.org/web/20170724061824/www.babylonjs-playground.com/?17
  9. babbleon

    dispose unused textures

    Great! Thank you @Amarth2Estel, Works a treat. Solved! function removePiece(rand) { var meshes = scene.getMeshesByTags('mesh' + rand); for (var i = 0; i < meshes.length; i++) { console.log(meshes[i].name); meshes[i].dispose(); } var materials = scene.getMaterialByTags('material' + rand); for (var i = 0; i < materials.length; i++) { console.log(materials[i].name); materials[i].dispose(false, true); } }
  10. Hello, I have this function to remove certain meshes & materials: function removePiece(rand) { var meshes = scene.getMeshesByTags('mesh' + rand); for (var i = 0; i < meshes.length; i++) { console.log(meshes[i].name); meshes[i].dispose(); } var materials = scene.getMaterialByTags('material' + rand); for (var i = 0; i < materials.length; i++) { console.log(materials[i].name); materials[i].dispose(); } } I have added tags to the textures, but as we don't seem to have a getTexturesByTags it's probably not the right way. Does anyone have a bright idea how do I go about removing textures? Thank you,
  11. babbleon

    gizmo

    Thank you @Deltakosh - this is brilliant! I like Babylon, it makes my life easier.
  12. babbleon

    gizmo

    Hello, Are Gizmos up & running yet? https://doc.babylonjs.com/api/classes/babylon.gizmo - suggests yes https://github.com/BabylonJS/Babylon.js/issues/4141 - suggests no Thank you.
  13. babbleon

    Animating ArcRotateCamera setTarget

    @promontis try this: function animateCameraTo(targetX, targetY, targetZ, locationX, locationY, locationZ, speed, frameCount) { var ease = new BABYLON.CubicEase(); ease.setEasingMode(BABYLON.EasingFunction.EASINGMODE_EASEINOUT); activCam = scene.activeCamera; cameraTarget = new BABYLON.Vector3(targetX + (Math.random() * (0.001 - 0.002) + 0.002), targetY, targetZ); cameraPosition = new BABYLON.Vector3(locationX, locationY, locationZ); BABYLON.Animation.CreateAndStartAnimation('at4', activCam, 'position', speed, frameCount, activCam.position, cameraPosition, 0, ease); BABYLON.Animation.CreateAndStartAnimation('at5', activCam, 'target', speed, frameCount, activCam.target, cameraTarget, 0, ease); }; I added the + random as the cam didn't move if the target was the same (I think that was the reason). This was adapted from one of @Wingnut's demo above.
  14. babbleon

    Showing and hiding mesh children(layers?)

    No problem, pleased I could help. It's always worth searching the playgrounds when you're stuck on something: https://doc.babylonjs.com/playground/
  15. babbleon

    Showing and hiding mesh children(layers?)

    Does this help you? https://www.babylonjs-playground.com/#0E2PG3#1 check the console.