All Activity

This stream auto-updates     

  1. Past hour
  2. 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
  3. Area of no rendering

    hi way 1 : http://www.babylonjs-playground.com/#XDXZKH#1 http://www.babylonjs-playground.com/#XDXZKH#2 with sky make cleaned mesh without transparency but set alpha channel like 0 in this way you keep mesh priority layer look line 14 i set red color to canvas so when you set it transparent you see base under canvas content http://www.babylonjs-playground.com/#XDXZKH#6 way 2 : http://www.babylonjs-playground.com/#XDXZKH#4 http://www.babylonjs-playground.com/#XDXZKH#3 with sky post process clear always selected mesh (or meshes)
  4. @Deltakosh Thanks for quick revert. Now server is configured to accept the cross origin requests. You have to also add CORS plugin for chrome as shown in the attached video. I have observed incorrect URL formation while accessing the bin and texture file. This could be the reason why model is not loading in playground. Could you please check why wrong URL is formed while accessing bin and texture file? (Please refer attached video recording.mp4)
  5. Multiple Textures on same Geom

    I made it, thanks for all your help http://www.babylonjs-playground.com/#YDO1F#26
  6. Resizing the canvas itself, not the game

    How would I handle resizing the canvas? I try doing this on window resize, but the game is stretched very weirdly. I don't want to scale the game, just show more of it when the window and the game area becomes bigger/smaller? this.game.width = this.canvasWidth; this.game.height = this.canvasHeight; this.game.canvas.width = this.canvasWidth; this.game.canvas.height = this.canvasHeight; this.game.renderer.resize(this.canvasWidth , this.canvasHeight); this.game.scale.refresh(); // If i leave just this the game behaves as expected when resizing from bigger view to smaller, but when the game is loaded in a small window, and then resized to a bigger one, the canvas has margins set to never exceed the initial size, how can I fix it? this.game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
  7. hi, i use this code to access a link on the net. it works very well when i'm on browser. When i use it on mobile with cocoon the link don't open...could you tell me what i must do ? thanks var link="https://www.google.com" game.time.events.add(1000,function(){window.location.href = link})
  8. Today
  9. low FPS when all my sprites are killed

    can you show the code?
  10. Area of no rendering

    Hi, I couldn't think of a better name for the subject. Is it possible to create an area in a scene (a cube for example) where nothing is rendered? So basically any mesh, or part of a mesh, within that cube would not be rendered and become invisible. Thanks
  11. Perplexus in VR mode How did I play it.
  12. Exporter 3ds-GLTF error

    Hi Florent, Environment texture is exported from 3ds max when exporting to babylon format. From version 0.35.0, only .dds environment texture is exported. Here you can find a way to convert a hdr map to a dds one. Thanks for bug report!
  13. SSAO noise issue

    Please see the AO Framebuffer. The wall appears really noisy while it should not be. It is actually pure flat... I've found something similar https://hub.jmonkeyengine.org/t/depth-only-ssao/37749.
  14. Using the winmr controllers, how can one register for event callback for the clicked menu button? Thanks
  15. Rescale Skybox size

    thank y
  16. SSAO noise issue

    The noises appear when the angle between the face normal and the camera direction reaches a certain angle.
  17. Rescale Skybox size

    Hi Syed Samoon ! Of course you could use var skybox = BABYLON.MeshBuilder.CreateBox("skyBox", {size:2500.0}, scene); to have a big box used as a skybox. You may have to play you camera.m[in/ax]Z to avoid clipping. However, if what you really want is avoiding player to reach skybox frontier, I recommand you to use skybox.infiniteDistance = true; instead. Think about disabling lightning for the skybox. It should not be in a shadowMap as well (the bigger the size of meshes in the shadowMap, the less pretty the shadow).
  18. Rescale Skybox size

    Hi Everyone, i have a doubt. How to get big skybox. i need the size 2500 is this possible i'm using this script skybox = BABYLON.Mesh.CreateBox("skyBox", 1000.0, scene); var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene); skyboxMaterial.backFaceCulling = false; skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("assets/skybox/skybox", scene); skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE; skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0); skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0); skybox.material = skyboxMaterial;
  19. Material Color

    Hi all, I want to ask about StandartMaterial, if I add to material a ambientColor or a diffuseColor or a specularColor it means that this colors mix with material.texture colors in every frame, or just at once and then new colors saves somewhere in buffer. Need to know this for performance, if all colors mixes every frame I think this bad for performance and I will be find some other ways. Thanks : )
  20. Help to create a curved path

    i need help with a game i'm creating. I need a platform which has a curved path and the player moves along the path created. I have created a path using Bezier Interpolation which creates a path using random points in a range. The issue is that i can only create the outline of the path and i need to fill the area under the curve so that it looks like a solid platform.
  21. Large background, low performance on mobile

    I have a single background image that is 4000 pixels big. In canvas mode it seems to slow the game immensly when in mobile (iPhone SE) How can I fix it? I tried splitting the image into smaller sprites, but it has exactly the same effect.tt
  22. Thanks so much! Variety is the Spice of Life!
  23. --- NEW WEEK, NEW CHOOK & SOSIG MUSIC! --- This week I just finished another tune in the Chook & Sosig: OST which is the creepy chiptune for the 'Goblin's Gangplank!'. These little critters run a crooked delivery service on the island but are small and harmless. Check out the previous games by searching 'Itch TookiPalooki'! https://soundcloud.com/nathan-cleary-123/the-goblins-gangplank-chook-sosig-walk-the-plank-ost?in=nathan-cleary-123/sets/chook-sosig-walk-the-plank-ost Thanks, Nathan
  24. SSAO noise issue

    Hi, I am recently frustrated with the noise of the SSAO. Please see the attached image. We have the same problem with the sample on the official site too. I played around with the parameters but nothing helped. I am wondering if it is a problem with the normal reconstruction from the depth buffer. BTW, I tried SSAO2 too, the quality was really better but the performance was really poor compared to SSAO. And not all browsers support webgl2.0... Any idea to improve this annoying noise stuff? Thanks
  25. BabylonJS EditControl

    Release 3.1.0 (01/22/2018) * planar guides always rotate to face camera. makes it easier to pick them * mesh with parents or childs are properly supported. see https://ssatguru.github.io/BabylonJS-EditControl/demo-parenting.html * constructor now has an additional optional parameter called "pickWidth". This determines how close the pointers need to get to an axis before the axis can be picked up. The default is 0.02 * constructor "scale" parameter has been made optional. Default is 1. * code refactored. private properties are prefixed with underscore "_". This warns JavaScript coders from using those as JavaScript does not honor TypeScript's "private" keyword. Underscore also helps with property name mangling and thus reducing the minified size. * added additional demo file (demo-parenting.html). The long term intention being to use these for tests.
  1. Load more activity