JackFalcon Posted December 20, 2017 Share Posted December 20, 2017 Super hard to find -> faceId Labels on Ground Plane Subdivisions? Looked everywhere, thought I saw it once. Going to go ahead a write the loop, [now] (similar to the awesome-> boxify)but still, does that exist already? Thx. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted December 20, 2017 Share Posted December 20, 2017 grab the vertex data, get the indices and the positions, using the indices get the correct position values and average them then place a label. I did it with vertices once, Im not sure where that PG is though ill have to dig it up. To do the faces will be just a extra step but the same process. Let me see if i can find that PG. *EDIT* This will get you there. JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
JackFalcon Posted December 20, 2017 Author Share Posted December 20, 2017 Rock and Roll @Pryme8! A solution brewing here... will use that link too. Thx! Quote Link to comment Share on other sites More sharing options...
JackFalcon Posted December 20, 2017 Author Share Posted December 20, 2017 SOLUTION: Playground with the full loop.... https://www.babylonjs-playground.com/#G1A0IY ... and some text formatting. PURPOSE: these faceIds are the same as a downRay retrieves when moving. So the index can be keyed in a metaMap which can then trigger metaBehaviors, based on the position of the character. EXAMPLE: enemies or environment can change behavior depending where you step. So easily seeing faceID is essential to key metaMap. [Happy to post the metaMap architecture as well if asked]. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.