Search the Community

Showing results for tags 'highlight'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 6 results

  1. Hello everybody, I'm currently trying to get a mesh by clicking on the canvas. So far, it works really great but I still have a problem: On click, the mesh gets highlighted. Fine but when I drag the mouse on the canvas in order to move the cam, when I release the button of the mouse, a click event is triggered and the mesh beneath it get selected. I tried to add an event listener on 'mouseup' to stop propagation to the click event but it seems BJS already "intercepts" this event so it is never triggered. I created a codepen to illustrate : https://codepen.io/3dos/pen/mLEEdq On the left is an empty canvas on which the mouse events are triggered. On the right is a babylon canvas on which the mouseup event is not triggered. Is there a simple way to avoid selecting meshes on drag ? (also tried the dragend event with no success either) Thanks to everybody who already helped me PS: I joined a screenshot of the console illustrating what I'm telling (did the exact same actions on the 2 canvas)
  2. Hi everybody: When I use a highlight-layer based effect (fade in-out as Wingnut suggested me here) I obtain the following warnings in the web console: .Offscreen-For-WebGL-00000233101348E0]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glClear: framebuffer incomplete .Offscreen-For-WebGL-00000233101348E0]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawElements: framebuffer incomplete .Offscreen-For-WebGL-00000233101348E0]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering The case is that all my textures are power-of-2 (512x512 px indeed) so I'm very lost here. Sadly I can't reproduce this behavior on PG, so I only ask for a clue on where to start to find for solving this bug. Best regards. P.S. I have running OK other apps using highlight layers. Only for your information, the offending code is using PBR materials.
  3. Hi everybody: I wonder whether a direct-way of change the highlight-layer intensity exist, in order to progressively fade it in and out. I can't find info in the docs. Best regards. P.S. Of course it could be always done following a not-so-direct-way, tweaking the color values under a harmonic (sinusoidal) basis.
  4. Sebavan

    Babylon Highlight layer

    Hello, As it seems there were quite a few discussion around highlighting meshes you can find below the solution integrated in standard in bjs: var hl = new BABYLON.HighlightLayer("hg", scene); hl.pushMesh(box, BABYLON.Color3.Green()); Please be aware, the stencil needs to be able in your canvas: var engine = new BABYLON.Engine(canvas, true, { stencil: true }); You can take a look at the result here: http://www.babylonjs-playground.com/#E3D3Y#2 Best Regards,
  5. PiyushBhalala

    how can i get intersection of Two Cubes

    https://www.babylonjs-playground.com/#X2F6KI#2 can any one help to find how can I get the intersected area of cubes. actually, I want to highlight the intersected area in between these two cubes. also, want to print into console how much points are intersected.
  6. clementlvsr

    Bug highlightlayer + sprite transparency

    Hi ! I noticed a bug with the hightlight layer and the sprite transparency, if the sprite overlapse the highlight object, the sprite take the color of the layer. I tried to add the sprite to another renderingId but it was the same ! I attach a screen and a playground ( http://www.babylonjs-playground.com/#1UJAM6 ) to test ! Thanks for the answers !