Kesshi

Members
  • Content Count

    249
  • Joined

  • Last visited

  • Days Won

    1

Kesshi last won the day on April 20 2016

Kesshi had the most liked content!

About Kesshi

  • Rank
    Advanced Member

Recent Profile Visitors

1,868 profile views
  1. Kesshi

    Quick poll

    I would vote but i don't have a twitter account ... and i don't want one 😁 In general prefer to use the stable releases in our production builds but in case of BabylonJs from my experience even the preview releases of BabylonJs are very stable. So if i need a certain feature or a bug fix which is only available in the preview release, i also use preview releases in production builds (after some testing of course)
  2. In my application i'm doing something like this: renderTarget.renderList = []; for (var mesh of myMeshes) { if(...) { renderTarget.renderList.push(mesh); } } After updateing to BJS version 3.3 i noticed a big performance issue if i do this because i have many meshes in my scene. It seems that this commit is the problem: https://github.com/BabylonJS/Babylon.js/commit/d40a5d75b461d13b5cee893a59e1a13a85b34829#diff-88a5439ab0e1c1dad3feb18bdfbc0b8c Currently everytime you call push, all meshes of the scene will be iterated. Is this intended? It takes about 250ms to update the renderList in my case. I changed my code like this to avoid that bottleneck. Now it takes about 8ms to update the renderlist. var myRenderlist = []; for (var mesh of myMeshes) { if(...) { myRenderlist.push(mesh); } } renderTarget.renderList = myRenderlist;
  3. Cloning a CubeTexture (or a material using one) does not clone the rotation of the cube textue. This can be reproduced in this playground: https://playground.babylonjs.com/#WX93JP The two spheres should look identical.
  4. Earcut is no longer included in the babylon.js build. Its optional. You have to include it manually in your project. Just download the "earcut.min.js" from here https://github.com/BabylonJS/Babylon.js/tree/master/dist and add it to your project.
  5. Kesshi

    Ortho camera

    If you have a sphere with a diameter of 10 units, you have to use an ortho value of 5 to make it exactly fit to the view. camera.orthoTop = 5; //5 units to the top camera.orthoBottom = -5; //5 units to the bottom camera.orthoLeft = -5; //5 units to the left camera.orthoRight = 5; //5 units to the right
  6. Here is my answer to a similar topic. Maybe it helps:
  7. Kesshi

    Multiple Textures on same Geom

    To enable correct alpha blending you should enable "useAlphaFromDiffuseTexture" at your material. See line 25: http://www.babylonjs-playground.com/#YDO1F#28
  8. Kesshi

    Empty screenshot

    When you create the BABYLON.Engine the option "preserveDrawingBuffer" has to be enabled. Maybe that helps.
  9. It works after calling "SG.recreateShadowMap()" https://www.babylonjs-playground.com/#HLE3IP#1
  10. Kesshi

    Problems with debugLayer in Firefox

    I also see a small difference. (Firefox 57.0.2) With debug layer = 53 fps Without = 60 fps I get the same numbers with IE 11. In Chrome and Edge i always have 60 fps.
  11. just use "scene.meshes". Its an array of all mesehs in the scene.
  12. Kesshi

    Uses of CreateScreenshot

    The way CreateScreenshot is working has changed internally. I think this tutorial was not updated. If you want the old behaviour, you have to use CreateScreenshotUsingRenderTarget.
  13. Kesshi

    Please welcome the TransformNode

    I found another issue. If i don't use TransformNodes i'm able to clone a mesh with all its children but if i have a TransformNode somewhere in my hierarchy this does not work. It would be nice if i could clone everything at once. See this playground: https://playground.babylonjs.com/#JXS29U#1
  14. Kesshi

    Please welcome the TransformNode

    I have some ideas to improve it a bit. - (this more like a bug) dispose() does not remove the TransformNode from the Scene. transformNodes array - dispose() should also dispose all the children (meshes and other transform nodes) of the current node, just like the dispose function of AbstractMesh currently its a bit complicated to dispose a whole hierarchie if Meshes and TransformNodes are mixed - there should be a getChildTransformNodes() helper just like getChildMeshes() I could work on a PR if you want.
  15. Lines with a custom width are not possible with WebGL (at least not on windows plattforms). You have to simulate it with triangles. You can have a look here: https://mattdesl.svbtle.com/drawing-lines-is-hard In my project i created a basic implementation of that technique by creating a custom BabylonJS mesh and a shader.