jerome Posted May 27, 2015 Share Posted May 27, 2015 Hi, As I really need this for plotting purposes, I'm about to implement a new mesh type : dashed lines.This stuff exists in threejs and is really useful. http://www.babylonjs-playground.com/#F1XXI I guess I will adjust it so it will be able to update/morph as any other parametric shapes in BJS. NasimiAsl, RaananW and JCPalmer 3 Quote Link to comment Share on other sites More sharing options...
Temechon Posted May 27, 2015 Share Posted May 27, 2015 I love you Quote Link to comment Share on other sites More sharing options...
RaananW Posted May 27, 2015 Share Posted May 27, 2015 That has to be one of the best forum reactions I've even seen in my life :-)Jerome, it looks really good! Do you think performance will be a problem with larger meshes? How similar is it to the regular line mesh? Quote Link to comment Share on other sites More sharing options...
jerome Posted May 27, 2015 Author Share Posted May 27, 2015 @Temechon : wait for it to be PR before starting to love me @ RaananW : no idea about performanceThe dashed line will have 3 parameters (with default values) : dash size, gap size and dash number- dash number will be the number of dashes, so half the number of vertices. Default 200 => 400 vertices.- dash and gap sizes will just be relative sizes from one to the other.So it's quite a simple mesh (no normals) and I guess it will behave nicely in term of performances. For now, it will just be a simple tool for plotting. It is to say I don't handle cases where I can't set less than a dash per line segment. RaananW 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 27, 2015 Share Posted May 27, 2015 waoouh... You are a rock star my friend! Please do a PR to clone the behavior of Mesh.CreateLine Quote Link to comment Share on other sites More sharing options...
jerome Posted May 27, 2015 Author Share Posted May 27, 2015 huuu..I don't deserve so much for just a simple new mesh type.RotationFromAxis() was far more complex to design and to implement (and threejs hasn't the equivalent). Too bad "Temechon", who loves me now, isn't Charlize Theron's pseudo actually Ok, for the clone of CreateLine, that's what I did so far. Quote Link to comment Share on other sites More sharing options...
Temechon Posted May 27, 2015 Share Posted May 27, 2015 Who knows ? Quote Link to comment Share on other sites More sharing options...
jerome Posted May 27, 2015 Author Share Posted May 27, 2015 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 27, 2015 Share Posted May 27, 2015 I know and he is not Quote Link to comment Share on other sites More sharing options...
jerome Posted May 27, 2015 Author Share Posted May 27, 2015 Actually she just phoned me to make sure her pseudo wasn't "Temechon" on this forum but another one she doesn't want to let us know because ... well, you know... she doesn't want everybody disturbs her asking her all day long how to compile this or that, how to rotate a mesh, how to set a dynamicTexture and so on I can understand this Quote Link to comment Share on other sites More sharing options...
jerome Posted May 28, 2015 Author Share Posted May 28, 2015 PRed Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 28, 2015 Share Posted May 28, 2015 validated and online Quote Link to comment Share on other sites More sharing options...
RaananW Posted May 28, 2015 Share Posted May 28, 2015 So, just to get it straight - is Charlize Theron writing here or not? Quote Link to comment Share on other sites More sharing options...
jerome Posted May 28, 2015 Author Share Posted May 28, 2015 yes, she is, of courseShe just gave a clue : she sometimes uses Blender. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted May 29, 2015 Author Share Posted May 29, 2015 Dashed Lines demo : Here is a classical Lines mesh : http://www.babylonjs-playground.com/#XKYAELet's use the same array points to create the DashedLines mesh : http://www.babylonjs-playground.com/#XKYAE#1 Can we morph/animate it as the classical Lines mesh ?Yes sir : http://www.babylonjs-playground.com/#XKYAE#2 Of course, the Lines mesh isn't needed : http://www.babylonjs-playground.com/#XKYAE#3 I will write the doc soon in Basic Shapes section. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 29, 2015 Share Posted May 29, 2015 You rocks man! this should be added to the doc Quote Link to comment Share on other sites More sharing options...
jerome Posted May 29, 2015 Author Share Posted May 29, 2015 already done. Temechon 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted May 30, 2015 Author Share Posted May 30, 2015 About Charlize Theron (should we open a dedicated topic ?) on this forum ...I hope you appreciate the chance you can chat with her here and your wife doesn't even care Quote Link to comment Share on other sites More sharing options...
Art Vandelay Posted January 17, 2018 Share Posted January 17, 2018 Hi, When morphing the mesh is it possible to change the number of dashes in the line? Thanks! Quote Link to comment Share on other sites More sharing options...
jerome Posted January 17, 2018 Author Share Posted January 17, 2018 nope... the vertex number, so the dashes number, can't be changed, only set at different positions Quote Link to comment Share on other sites More sharing options...
Art Vandelay Posted January 17, 2018 Share Posted January 17, 2018 OK thanks. 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.