Jump to content


  • Content Count

  • Joined

  • Last visited

About KarelAnker

  • Rank
    Advanced Member

Recent Profile Visitors

826 profile views
  1. I've partially fixed it, however there's one problem which I can't figure out: http://www.babylonjs-playground.com/#RF9W9#181 As you can see, when you add the "cap" option, there are some weird black parts and parts which shouldn't be capped at all. (PS: I added some alpha so you can see the yellow line representing the shape..)
  2. Ah.. Do you have any alternative suggestions to achieve my idea?
  3. http://imgur.com/PDBj6MG Basically I'm trying to extrude a shape on the Y axis. All of the points have a Y of 0, only the X and Z are differing each time. When you're looking at the picture, you can see the white lines are the points connected by BABYLON.MeshBuilder.CreateLines, so the points shouldn't be the problem. However, if you are looking at that big grey thing going in the air, that's the extruded shape from the points. It seems that it doesn't extrude properly on the Y axis so it's really messed up. The code looks like this: BABYLON.MeshBuilder.CreateLines("line", { points: meshPo
  4. https://github.com/BabylonJS/Babylon.js/tree/master/materialsLibrary/materials/terrain Haven't found out how it works, there's not really any documentation about it.
  5. Not sure if it's a bug I created or something... Anyways, whenever you start the BabylonJS debugger, and go to the Generals tab and tick Clickable labels, it outputs this error: "Uncaught TypeError: Cannot read property 'getViewMatrix' of undefined" on line 27344 (development version of Babylon, .max version), which is this line: _this._camera.getViewMatrix().multiplyToRef(_this._camera.getProjectionMatrix(), _this._transformationMatrix);I guess the _camera variable doesn't exist. Like I said I'm not sure if I caused the problem, as some examples show them working correctly, but I can't
  6. You could use a raycast each frame from the position of the camera of 1 frame ago to the position of the camera at the current frame. If something hits in that raycast, then you should set the camera position to the hit world position. Or have the raycast from the current camera position to the mesh you're looking at.
  7. (on another note, what rotation should the object be and in what rotation order)
  8. I'm excited for the splat mapping material tho, seems promising when the documentation is up
  9. The weird thing is that this works: var assetsManager = new BABYLON.AssetsManager(scene);var meshTask = assetsManager.addMeshTask("skull task", "", "./objs/", "skull.babylon");// You can handle success and error on a per-task basis (onSuccess, onError)meshTask.onSuccess = function (task) { task.loadedMeshes[0].position = new BABYLON.Vector3(0, 0, 0);}// But you can also do it on the assets manager itself (onTaskSuccess, onTaskError)assetsManager.onTaskError = function (task) { console.log("error while loading " + task.name);}assetsManager.load();But BABYLON.SceneLoader.ImportMesh doesn't
  10. I've edited the main post a few minutes before you posted this There's not really something else.. There's no other setting that I'm changing or something.
  11. The newest Express doesn't really seem to be handling the Babylon files correctly, even after setting the mime types. I'm using express.static with a folder, and every time BabylonJS downloads the file but doesn't create a mesh afterwards. Going to the link directly in your browser downloads the mesh instead of showing the data (not sure if this is intended) The appropriate mime types are set, looking them up by file extension also returns these types. Basically the code to have the mime types is this: express.static.mime.define({ 'application/babylon': ['babylon'], 'application/fx':
  12. I currently have a terrain that should cast shadows and receive them from itself. I need to use a shadowGenerator for it which doesn't use variance shadow map. I have a very high bias for this, as otherwise the shadow looks horrible. The problem is that I also want objects where you do use variance shadow map with a low bias. I thought you could just create a new shadow generator and then use that, however it seems that the last shadow generator which I've declared gets used and the other doesn't. This means that or the terrain can't cast shadows to itself, or the objects can't cast shad
  13. http://www.babylonjs-playground.com/#KA93U#16 That's what appears in the console, having too much warnings makes WebGL not give any more information until you refresh your page.
  14. I think he wants to know how to enable WebGL on his own custom browser which he made on VBNet
  • Create New...