vahith Posted March 27, 2015 Share Posted March 27, 2015 hi all,how to calculate ellipsoid and ellipsoid offset for meshes.actually i am trying pass the ellipsoid and its offset dynamically.. i want know which basis we want to calculate for meshes..kindly suggest me for this Quote Link to comment Share on other sites More sharing options...
jerome Posted March 27, 2015 Share Posted March 27, 2015 An easy way could be a ribbon.Here's the ellipsoid parametric equation : http://en.wikipedia.org/wiki/Ellipsoid#Parameterization and here how to ribbonize it : http://babylondoc.azurewebsites.net/page.php?p=25088 Quote Link to comment Share on other sites More sharing options...
jerome Posted March 27, 2015 Share Posted March 27, 2015 http://www.babylonjs-playground.com/#MVOFSde nada. line 30 to set the tessellation : step variable Quote Link to comment Share on other sites More sharing options...
jerome Posted March 27, 2015 Share Posted March 27, 2015 Another simpler way would have been to create a sphere and then to use scaling on x, y and z according to the a, b, c values... easier, yesbut not as funny as ribbonic further morphing with just tiny parameter changes : http://www.babylonjs-playground.com/#MVOFS#1http://www.babylonjs-playground.com/#MVOFS#2http://www.babylonjs-playground.com/#MVOFS#3 etc Quote Link to comment Share on other sites More sharing options...
iiceman Posted March 28, 2015 Share Posted March 28, 2015 @jerome: not sure, but I think he means the ellipsoid and ellipsoid offset parameters for the moveWithCollisions... do you @vahith? (But nice move doing some marketing for the ribbon, people need to know! ) I don't know the answer, though. I played around until I got some values that looked like they fit when I used it so far, but it would be nice to know how to calculate the correct values. Of course it somehow depends on the shape of the mesh and probably also on the use case/the scene, I guess. Quote Link to comment Share on other sites More sharing options...
jerome Posted March 28, 2015 Share Posted March 28, 2015 ooopsmisunderstood so sorry Quote Link to comment Share on other sites More sharing options...
vahith Posted March 28, 2015 Author Share Posted March 28, 2015 hi @jerome: not sure, but I think he means the ellipsoid and ellipsoid offset parameters for the moveWithCollisions... do you @vahith? (But nice move doing some marketing for the ribbon, people need to know! ) I don't know the answer, though. I played around until I got some values that looked like they fit when I used it so far, but it would be nice to know how to calculate the correct values. Of course it somehow depends on the shape of the mesh and probably also on the use case/the scene, I guess.yes that's true i asked ellipsoid and ellipsoid offset parameters for the moveWithCollisions.. 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.