JackFalcon Posted December 10, 2017 Share Posted December 10, 2017 >StageLeft: enters afalcon... I know not what sir @Wingnut speaks except... that these playgrounds are pretty awesome. The nudgies, confound. Super curious, @Arte what you are using this for? Reason... wingy is correct: Hover vertex and edges would be great for run-time-mesh-editor-behavior. Is that what you are up to!?! Anyway, likes ... very much. Fell into a Mesh Editing Mode trench recently, and -->hover edge/vertex mode<-- would work very well there... Problem was 15k nodes (above), but maybe hover saves editmode fps? Happy Holidays. >StageLeft: aFalcon Exits... UPDATE: insight on nudgies becomes clearer...with Z fighting. Thx. Arte and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 10, 2017 Share Posted December 10, 2017 Boxes only, @aFalcon. The frame is derived from the bounding box. Anything fancier, and Wingnut would get a brain tumor. A "nudge" is simply a tiny value added to positions... to avoid z-fighting. On the #23 PG, the nudge/nudgie is the 'n' variable defined at line 203. It is used in the next 6 position-setting code lines. Exciting, eh? I'll try to turn ANYTHING into comedy. 'Nudgies' is surely not the correct term, but it's kind of fun to say. JackFalcon and Arte 2 Quote Link to comment Share on other sites More sharing options...
Arte Posted December 10, 2017 Author Share Posted December 10, 2017 @aFalcon “POINT-BEING: Hover vertex and edges would be great for run-time-mesh-editor-behavior. Is that what you are up to!?!” Spot on! Wingnut and JackFalcon 2 Quote Link to comment Share on other sites More sharing options...
Arte Posted December 11, 2017 Author Share Posted December 11, 2017 Weekend is over! What about this http://www.babylonjs-playground.com/#AWML5U#1 JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
Arte Posted December 11, 2017 Author Share Posted December 11, 2017 Every second ridge/edge is missing http://www.babylonjs-playground.com/#AWML5U#2 Any suggestion? Quote Link to comment Share on other sites More sharing options...
Arte Posted December 11, 2017 Author Share Posted December 11, 2017 Arte you have just 8 points. From 8 points you can draw just 8 lines!!! Back to work! JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
Arte Posted December 11, 2017 Author Share Posted December 11, 2017 My arm's on my head (holding from spinning) @Wingnut for edges i will try your option's Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 11, 2017 Share Posted December 11, 2017 [ Wingnut points to the warning on the side of Babylon.Geometry class objects: "Vertex-wrangling is known to cause brain tumors in adult Wallabies" ] heh. You had dreams of trying to satisfy @aFalcon's "Let's use this to edit ANY mesh" proposal from hell, right? Didja know that aFalconoid is aRoboDroid? Not only is he a robot, but he drinks top-fuel-dragster-grade nitro-methane ALL DAY LONG! When he starts dreaming, small animals RUN! Just kidding, of course. No, I hovered your morning post... there, and noticed that you dove back into vert-ville, and I ran for the hills. (I spray Glade French Vanilla air freshener behind me while I run... as droids can't track me that way.) JackFalcon and Arte 1 1 Quote Link to comment Share on other sites More sharing options...
JackFalcon Posted December 11, 2017 Share Posted December 11, 2017 he is correct... falcon is a bot. New solution... "printing" vertices in 3d space... with freecam position: MOVE->click<-MOVE->click<-... Then second button...dots become lines. Third...lines become ribbons... 4) animals return to vert-ville... because wild-west tamed by a team of d3-cowboys... Lol, Vanilla bot joke is... classic! Arte 1 Quote Link to comment Share on other sites More sharing options...
JackFalcon Posted December 11, 2017 Share Posted December 11, 2017 @Arte - great stuff above. Missing Edges: (interesting) looking into it... found it... I owe you a playground with: quad-state R-G-B selection logic, under hoververts & edges... UPDATE: have the code... needs to stuffs it into a playground... not compatible(yet). ... Arte 1 Quote Link to comment Share on other sites More sharing options...
Arte Posted December 11, 2017 Author Share Posted December 11, 2017 @Wingnut Thank you for everything! I really appreciate it I'll go with option you created (I will "shrug 50%") I'm not smart enough to finish my option. (One day) Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 11, 2017 Share Posted December 11, 2017 My pleasure. There may be 3rd and 4th options, too. https://www.babylonjs-playground.com/#35HAW1#24 There's one "modification" I can tell you about. IF you are willing to use non-actionManager "pick" (pointer down) instead of actionManager pointerEnterTrigger (mouse over)... then you can get a faceID from the click. See console, while clicking the sides of the box. For each box side, there are two triangular faces, of course. By using this method, you can eliminate the panels. Instead of case "panel1", case "panel2", etc... you can instead do case faceID == 0 || faceID = 1, etc. It doesn't change much. You can eliminate the 6 panels and their actionManagers. Not a very large change... probably not worth bothering-with. Just thought I'd mention it. Arte 1 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted December 11, 2017 Share Posted December 11, 2017 @wingnut - you can on mouse over call scene.pick(...) as well - hard on resources. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Arte Posted December 11, 2017 Author Share Posted December 11, 2017 I won't give up!!! For panel1, panel2..... I can use this http://www.babylonjs-playground.com/#AWML5U#4 JackFalcon and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
Arte Posted June 26, 2018 Author Share Posted June 26, 2018 Hi all, I just want to share how I done this. Maybe it will help someone. It works very well on box and plane (this is what i was looking for) https://www.babylonjs-playground.com/#35HAW1#25 JackFalcon and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 26, 2018 Share Posted June 26, 2018 Congrats, Arte! Nice work! I bookmarked it 4 times. Now what the heck do I name it, so I can find it again, later? Are you thinking about doing the same... with the faces? Add-on feature? Wait, what IS a "face"? Is a face... triangular? What I mean... is the square/rectangle area, nothing triangular. A "side", maybe? Yeah, that's a better term. Quote Link to comment Share on other sites More sharing options...
Arte Posted June 26, 2018 Author Share Posted June 26, 2018 Wingnut, I forgot to share it. All this I done some time ago. For face pick I'm using scene.pick (it covers my needs) for now?! Quote Link to comment Share on other sites More sharing options...
issabln Posted August 26, 2019 Share Posted August 26, 2019 @Arte your last PG doesn't work with the latest version of babylon. It shows the error "can't assign to property "sideOrientation" on 1: not an object ". Does anybody knows how to fix this or where it's coming from? Quote Link to comment Share on other sites More sharing options...
MarianG Posted September 17, 2019 Share Posted September 17, 2019 On 8/27/2019 at 2:54 AM, issabln said: @Arte your last PG doesn't work with the latest version of babylon. It shows the error "can't assign to property "sideOrientation" on 1: not an object ". Does anybody knows how to fix this or where it's coming from? Hi @issabln, please post your question on the new forum:https://forum.babylonjs.com/ 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.