Rook Posted September 28, 2017 Share Posted September 28, 2017 What is the recommended way to create a circle 'line'? I started to post this the other day, right when I tripped over Curve3 and Cubic/Quadratic Beziers, so have been toying with the math of those. When I try to build a circle out of 4 Quads, I get a very strange join. See: https://www.babylonjs-playground.com/#VHE1AI#1 How best to join these curves together to get a simple circle and/or ellipse? Quote Link to comment Share on other sites More sharing options...
adam Posted September 28, 2017 Share Posted September 28, 2017 https://www.babylonjs-playground.com/#VHE1AI#3 the fifth vector was incorrect Rook 1 Quote Link to comment Share on other sites More sharing options...
adam Posted September 28, 2017 Share Posted September 28, 2017 https://www.babylonjs-playground.com/#VHE1AI#4 jerome, Rook and RaananW 2 1 Quote Link to comment Share on other sites More sharing options...
Rook Posted September 28, 2017 Author Share Posted September 28, 2017 @adam - You are both awesome (solution 1) and a showoff (solution 2). But, thank you on both counts. I needed a smile this afternoon. Quote Link to comment Share on other sites More sharing options...
adam Posted September 28, 2017 Share Posted September 28, 2017 After I fixed the circle and rotated the camera all I could see was the rotating rings from the original Superman movie. GameMonetize and Rook 1 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted September 29, 2017 Share Posted September 29, 2017 simpler without Bezier curve : https://www.babylonjs-playground.com/#VHE1AI#5 just change the tesselation (tess) to get more/less points [EDIT] and then starts the fun https://www.babylonjs-playground.com/#VHE1AI#6 [EDIT 2] Mowgli, trussst in me https://www.babylonjs-playground.com/#VHE1AI#7 GameMonetize and RaananW 2 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.