waverider

Members
  • Content count

    45
  • Joined

  • Last visited

Everything posted by waverider

  1. OfficeGames announcement

    coool! is it ready to play?
  2. @satguru i tried it with bjs in-built collision system but the fps drops too, but you can check what i did here : https://www.babylonjs-playground.com/#Z2TKLH using the heightmap coordinate looks more efficient https://www.babylonjs-playground.com/#FJNR5#212
  3. OfficeGames project

    @jerome I'm trying to shoot other spaceships, the spacebar is not doing it
  4. Shader Experience : are you know this ?

    Goood! added more to my think tank : )
  5. infinite rpg terrain proto

    tree coming along too: https://www.babylonjs-playground.com/#MWPSLI#6
  6. infinite rpg terrain proto

    BABYLONJS never ceases to amaze me, love you babylonjs, love you JavaScript and of course glsl. My next agenda is water bodies, trees and some jungle rocks just a sample proto... https://www.babylonjs-playground.com/#Z2TKLH
  7. I changed the scale of my rendering canvas but the pointer coordinate somehow gets messed up. how can i set the pointer coordinate for buttons, here's my code: var coord = new BABYLON.Vector2(scene.pointerX/4, scene.pointerY/4).normalize() button1._onPointerDown = function(button1, coord){ console.log(coord) } or is there a set function for this control.getLocalCoordinates(coordinates) something like control.setCoordinates(new coordinates)?
  8. set pointer coordinate for gui observable

    @Pryme8 here's a pg: https://www.babylonjs-playground.com/#XCPP9Y#400
  9. set pointer coordinate for gui observable

    @Deltakosh yes i did and i used these too canvas.style.width = "25%"; canvas.style.height = "25%"; canvas.style.webkitTransform = "scale3d(4.0, 4.0, 1.0)"; canvas.style.webkitTransformOrigin = "0 0 0";
  10. GUI clears texture

    I changed the scale of my rendering canvas but the pointer coordinate somehow gets messed up. how can i set the pointer coordinate for buttons, here's my code: var coord = new BABYLON.Vector2(scene.pointerX/4, scene.pointerY/4).normalize() button1._onPointerDown = function(button1, coord){ console.log(coord) }
  11. GUI clears texture

    Hy there, i've been battling with these for hours and i thought i should share, the GUI clears the texture in my scene each time i linked it to more than one model not sure if this is a bug but here's my code: var createUI = function(obj){ // GUI this.obj = null||obj var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("UI"); var rect1 = new BABYLON.GUI.Rectangle(); rect1.width = 0.2; rect1.height = "20px"; rect1.cornerRadius = 20; rect1.color = "blue"; rect1.thickness = 4; rect1.background = "silver"; advancedTexture.addControl(rect1); var label = new BABYLON.GUI.Rectangle(); label.width = 0.8; label.height = "10px"; label.cornerRadius = 20; label.thickness = 2; label.background = "green"; rect1.addControl(label); rect1.linkWithMesh(this.obj); rect1.linkOffsetY = -50; rect1.alpha = 1 return rect1; }
  12. GUI clears texture

    THANKS WHAT A RELIEF! works fine now!
  13. canvas2D not loading shader file

    oh i thought it's still part of the library
  14. http://www.babylonjs-playground.com/#2AVSFH#124 Not sure if this is a bug or not but the console prints out that the rect vertex shader could not be found Uncaught Error: Error status: 404 Not Found - Unable to load /src/Shaders/rect2d.vertex.fx at new t (babylon.js:3) at XMLHttpRequest.p (babylon.js:3) r @ css.js:34 babylon.js:3 Uncaught Error: Error status: 404 Not Found - Unable to load /src/Shaders/rect2d.vertex.fx at new t (babylon.js:3) at XMLHttpRequest.p (babylon.js:3)
  15. terrain canyon

    Hy there, I've been trying to implement this type of canyon but it seems impossible with heightmap, and then i found geometry builder, i think it's perfect for that but there's no tool or tutorial available to use it yet. Is there any way i can get around with this?
  16. hello 2k18 squads! I just want to know does babylonjs serialize shadermaterial with a mesh or am i doing something wrong https://www.babylonjs-playground.com/#MWPSLI I tried loading the serialized json.babylon in the editor but it only gives me a clear plane object
  17. serializing object with shadermaterial

    yeah sure it does
  18. terrain canyon

    it's awesome!!
  19. shader error

    oh it worked twas my pc
  20. shader error

    Hello there! any idea why this shader code is not working in the playground? https://cyos.babylonjs.com/#8HC3IB#1 I tried the code in shaderfrog, it works perfectly
  21. terrain canyon

    cool!!!
  22. optimisation technique

    Hy guys, i'm working on a rpg project, and the fps is dropping now to about 15fps-19fps, i fear this will affect the game when i finally go multiplayer. I'll be grateful to any suggestion or idea
  23. optimisation technique

    still the same http://www.babylonjs-playground.com/#FULI8D#2
  24. optimisation technique

    Thanks that clarifies it
  25. optimisation technique

    I'm trying to merge the instances as one mesh, but i don't think it's rendered in the scene. the new merged mesh should be moving but it's not. http://www.babylonjs-playground.com/#FULI8D