matthewharwood Posted April 25, 2016 Share Posted April 25, 2016 I have a pretty complex shape that is created from points and the createLines() method. http://www.babylonjs-playground.com/#1ZAJZK#1 The Math is taken from a book I bought http://www.amazon.com/Morphing-Mathematical-Transformations-Architects-Designers/dp/1780674139 and I would like to get a better idea of how the math draws the shape. Therefore, How would animate lines e.g. How can I get the lines to appear as if they are drawing in over a 10 second period? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 25, 2016 Share Posted April 25, 2016 Hello and welcome You can create a new shape every 50ms with added segments I guess (even if this is not really efficient) matthewharwood 1 Quote Link to comment Share on other sites More sharing options...
matthewharwood Posted April 25, 2016 Author Share Posted April 25, 2016 Hey deltakosh! Thanks for the welcoming!! And thank you for being so quick in your response!!! Yeah I thought I could do the short timeout. It just bothered me so I didn't try lol. but the timeout will satisfy my curiosity, so thanks for the confidence. I have lots more questions as I stumble through learning babylonjs. Looking forward to hearing from you more Quote Link to comment Share on other sites More sharing options...
jerome Posted April 25, 2016 Share Posted April 25, 2016 if the number of points in your line doesn't change, but only the point positions, you could also re-use the CreateLine() method directly in the render loop http://doc.babylonjs.com/tutorials/How_to_dynamically_morph_a_mesh#lines-and-dashedlines The same for a LineSystem object : http://doc.babylonjs.com/tutorials/Mesh_CreateXXX_Methods_With_Options_Parameter#linesystem 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.