• Content Count

  • Joined

  • Last visited

  • Days Won


max123 last won the day on November 7 2017

max123 had the most liked content!

About max123

  • Rank
    Advanced Member

Profile Information

  • Location
    London, UK

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Try adding this to your code: canvas.setAttribute("touch-action", "none");
  2. Hey blokes, Any tips on running Babylon smoothly in fullscreen (desktop)? The scene I'm working on isn't too heavy ~30K vertices. The framerate is generally acceptable (45-60). Yet as soon as the window is resized to fullscreen the scene crashes! The crash happens on retina displays only (I've set engine.setHardwareScalingLevel(1);). On non-retina, there's no crash but performance drops dramatically.
  3. max123

    Shadows weirdness

    yep, bias seemed to solve the issue!
  4. Hi folks, I'm having trouble with shadows - they seem to be 'floating', as you can see from the screenshots. The problem is much worse when I don't use usePercentageCloserFiltering. As you can see, the meshes do intersect! Unfortunately, I can't do a PG as it's a complex scene and is heavily copyrighted The settings for shadows are: let shadowGenerator = new BABYLON.ShadowGenerator(2048, shadowLight); shadowGenerator.usePercentageCloserFiltering = true; Any ideas?
  5. max123

    Blender export error

    This is Blender 2.79b, Babylon exporter v 5.6.3. I'm using Blender Render, but this is what I've found so far: 1. I import a model (bfx / obj) into blender, then export to Babylon => everything works fine. 2. I strip all materials from ONE of the models, export to Babylon => BAM! Error!. I've attached the file. Thanks!
  6. max123

    Blender export error

    Hi guys, Does anyone have any idea what can cause this?
  7. Hi, Is it possible to use your own vertex shader and use the default fragment shader, leke so: shaderMat = new BABYLON.ShaderMaterial("shader-123", scene, { vertexElement: "vertexShaderX", fragmentElement: ???, // Need to use the default shader! }, { attributes: ["position", "normal", "uv", "vUV"], uniforms: ["world", "worldView", "worldViewProjection", "view", "projection"] }); Cheers!
  8. max123

    Need help creating ocean shader

    Has anyone come up with a solution for our old friend Ocean yet? This and this look interesting, I've just got no clue how to implement in Babylon!
  9. max123

    Trouble with BlurExponentialShadowMap

    @Arte, thanks for the input. Changing kernel size doesn't do anything to the shadow's blur though..
  10. max123

    Trouble with BlurExponentialShadowMap

    Hi @Deltakosh, I've updated the scene to use a spotlight: Now the shadow is just gone.
  11. max123

    Trouble with BlurExponentialShadowMap

    Thanks @Deltakosh! No self-shadows - got it. However, shadowGenerator.blurKernel doesn't do anything in this example: I've tried values ranging from 2 to 32,768 - the shadow remains unchanged.
  12. max123

    Trouble with BlurExponentialShadowMap

    Hey @Deltakosh, here's the PG:
  13. Hi, I'm having trouble with applying BlurExponentialShadowMap to a scene created in Blender. I've tried a bunch of settings and lights, yet no matter what I do, the whole bloody scene remains grey! I've tried all lights in Blender that can work with shadows in Babylon, I've set some extreme settings (kernel 4 - 512)... The blender file is attached. The settings I tried are below: shadowGenerator.useBlurExponentialShadowMap = true; shadowGenerator.useKernelBlur = true; shadowGenerator.blurKernel = Any ideas guys?
  14. max123

    What's next?

    Who knows? With summer heat like this? People tend to do crazy things. Bad things. Horrible things... Where's my hammer?