• Content Count

  • Joined

  • Last visited

  1. Ok, it seems to work if I put the variable in quotes - instead of var endFrame = 119; use var endFrame = "119"; I wouldn't mind input into why this happens though
  2. Why can I click and change the text in the right InputText box but when I assign the starting value as a variable on the left, it crashes?
  3. haha, thanks! That sounds really obvious now that you've said it
  4. I'm trying to build a scene with multiple cameras, of multiple types. What I find is that when I move one camera it causes all the other cameras to move too. Is there a way to prevent this? Simple example:
  5. MattB

    Help with my measurement code

    thank you so much!
  6. MattB

    What's next?

    Is there a way to import a point cloud, from a ply, e57, xyz etc, or does it have to be a mesh rendered as a point cloud?
  7. I'm trying to make it so the user can create multiple measurements and then delete them individually. In the playground below, if you click in two different spots on the meshes it will create a measurement. If you click the measurement it will expand it, and if you click the X it will delete it. However, if there are two or more measurements it will only delete the last one - what am I missing? Thanks
  8. MattB

    What's next?

    I'd like support for point clouds - especially with variable point density. I'd be willing to donate money for this to happen :). Sort of like Potree (is there any way to get Potree to work with Babylon?)
  9. oh, thank you so much Deltakosh! And thankyou for pointing me to what I need to study - I've been reading about closures and scopes. So, is a partial reason my version didn't work is because "i" went to 3 and it was looking for layerMeshes[3]?
  10. I'm trying to setup an interface so that you can toggle on and off objects or layers. Can anyone tell me why this isn't working and maybe a better way to do it? the error is from line 66, - Cannot read property of undefined. Thanks!
  11. How do I make it so that when I click "Button1" it doesn't create a decal? I thought the property "isPointerBlocker" would do it, but I'm really new to this
  12. Thanks!!! I wonder why they have that in their template:
  13. I'm pretty new to all this, so I'm sure its something stupid. I went through the Babylon 101 tutorial and used the template html file, I then added BABYLON.SceneLoader.Append("assets/", "Alien.glb", scene, function (scene) { and downloaded the Alien.glb file from Babylon's site. But it will not show up and the debug layer gives this error: BABYLON.JS LOGS [13:23:56]: glTF Loader: t._loader._onReadyObservable.addOnce is not a function [13:23:56]: Unable to load from assets/Alien.glb: t._loader._onReadyObservable.addOnce is not a function If I change it to a sample .obj file it works fine. I also can't get it to work with the Boombox.gltf from the Babylon samples (or any other GLTF files I've created from blender). I'm running this on a Wamp server (which I also am new at). Attached is my index.html. Thanks for any help! index.html