jerome Posted February 3, 2015 Share Posted February 3, 2015 Hi, Before porting the ribbon mesh to TS and daring a first PR attempt (kind of stage fright ), I'm stressing the model to test the design.Found something fun (to me) with the Möbius ribbon :As you know, the Möbius ribbon has got only one face. So it means, it has got only one edge too. So this may be a good test for ribbonMesh. Let's go : http://www.babylonjs-playground.com/#10JFPK#1Here's the equation of a Möbius edge. Only one curve path1, drawn with Createlines("möbius", path1, scene), line 35. Let's ribbonize this single path, with no offset parameter, so it will be set to half size of the path length (line 36) :createRibbon(mesh7, [path1], false, false, null, scene);http://www.babylonjs-playground.com/#10JFPK#2 :) it works !!! If we give it a colored standard material, we get : http://www.babylonjs-playground.com/#10JFPK#3As you can see, the junction is visible.This is due to the fact that the normals are computed only for one face of each fragment (this is WebGL)... and the Möbius ribbon has got only one continuous face, so we can see the front face joining the back face. That's all, folks. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
gryff Posted February 3, 2015 Share Posted February 3, 2015 As I've said before - one of my favourites, jerome cheers, gryff Quote Link to comment Share on other sites More sharing options...
jerome Posted February 3, 2015 Author Share Posted February 3, 2015 thank you Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 3, 2015 Share Posted February 3, 2015 Same here, I like it! Quote Link to comment Share on other sites More sharing options...
jerome Posted February 4, 2015 Author Share Posted February 4, 2015 (thank you)² 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.