waverider

Members
  • Content count

    45
  • Joined

  • Last visited

About waverider

  • Rank
    Advanced Member

Recent Profile Visitors

177 profile views
  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. set pointer coordinate for gui observable

    @Pryme8 here's a pg: https://www.babylonjs-playground.com/#XCPP9Y#400
  8. 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";
  9. 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)?
  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

    THANKS WHAT A RELIEF! works fine now!
  12. 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; }
  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. serializing object with shadermaterial

    yeah sure it does