Jump to content

Search the Community

Showing results for tags 'multipick'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

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 2 results

  1. Hi Everyone, When using multipick is there a specific order in which the meshes are returned in the array? Because according to this playground it doesn't seem like it: https://playground.babylonjs.com/#166ZLU I tried putting different meshes behind each other and I can't find any logic in the order. For example if I put the purple donut in front, then the green cube and then the blue cube in the back and choose them so that the ray hits all of them, the green cube (which is in the middle) is the one that is chosen. Is this a bug? Is it supposed to work this way? Thanks!
  2. Dear all. I have a small problem with my code. I want to select one of the multiple invisible but pickable meshes with the mouse. The goal is that I have a big model GLTF (assembly) loaded in the scene, but I also have the boxes of the parts contained loaded in the scene. The idea is that as in a typical CAD program be able to select on of the boxes (the closest one from the coordinates selected with the mouse in the assembly) In the scene I will load the GLTF contained meshes and the boxes (bounding boxes) of the parts in these meshes in a invisible but pickable way. I am using this approach because loading thousand of gltfs of parts is unachievable, the browser gets hang. Instead I load some big GLTFS and I want to be able to get metadata information from the parts contained in this assemblies. When I click with the mouse on the scene, I want to take the coordinates of the big assembly (GLTF) and make visible the box of the closest box of these coordinates. I am trying to use a raycast with camera position and mouse coordinates but it seems that multipick is not able to pick invisible boxes. I have also some problems to set the direction vector of the raycast based on the selected mouse coordinates and camera position. Many thanks in advanced for your support.
×
×
  • Create New...