jerome Posted February 17, 2016 Share Posted February 17, 2016 Hi people, It was expected for a long time, so here is it : the brand new LineSystem. This allow you to create a single mesh with as many lines you want. Just pass an array populated with lines, each line being an array of successive Vector3. var nbLines = 30; var nbPoints = 100; var lines = []; for (var l = 0; l < nbLines; l++) { var points = []; for (var p = 0; p < nbPoints; p++) { points.push(new BABYLON.Vector3(p - nbPoints/2, Math.sin(p), l - nbLines/2)); } lines.push(points); } var lineSystem = BABYLON.MeshBuilder.CreateLineSystem("ls", {lines: lines, updatable: true}, scene); http://www.babylonjs-playground.com/#2K1IS4 Is this updatable/morphable ? Yes sir ! As usual with the parameter instance : lineSystem = BABYLON.MeshBuilder.CreateLineSystem(null, {lines: lines, instance: lineSystem}); http://www.babylonjs-playground.com/#2K1IS4#1 Have fun :-) Wingnut, Samuel Girardin, Vousk-prod. and 4 others 7 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 17, 2016 Share Posted February 17, 2016 Good job as usual! Quote Link to comment Share on other sites More sharing options...
jerome Posted February 17, 2016 Author Share Posted February 17, 2016 tinkiou Quote Link to comment Share on other sites More sharing options...
eboo Posted March 15, 2016 Share Posted March 15, 2016 damned... 1 hour playing with your game... thanks http://www.babylonjs-playground.com/#2K1IS4#6 jerome and Wingnut 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.