Nabroski Posted August 19, 2016 Share Posted August 19, 2016 Hello please help me to draw lines between sphereshttp://babylonjs-playground.com/#VNE2Z#1@aWeirdo you had a pretty good particel system knowledge, your fireball pg was impressive. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted August 19, 2016 Share Posted August 19, 2016 Hi @Nabroski, Thanks i wasn't sure how many lines you were after.. The following PG draws lines between ALL spheres, each sphere has a line to all other spheres^^Warning; might be too intensive for low-end deviceshttp://babylonjs-playground.com/#VNE2Z#2 The following PG draws 2 lines per sphere, from one sphere and to a third sphere.http://babylonjs-playground.com/#VNE2Z#3 Nabroski 1 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 19, 2016 Author Share Posted August 19, 2016 @aWeirdo This is pretty awesome, i already will use it! Do you think, it is also possible to clone the particel system, so each clonespehre has a connection, like a fireball going from one to an other clone, i working on a animation, their is information send, from one to an other, like in the brain, or something that's why i'm asking.http://babylonjs-playground.com/#VNE2Z#4 edit @aWeirdo do you also know how to update the position dynamicly line is going from one to an other ...with frameratehttp://babylonjs-playground.com/#VNE2Z#3 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 19, 2016 Author Share Posted August 19, 2016 @aWeirdo sorry but you are the man of hour I made a slightly more attractive playground to play with i need the ufo position updated through the line array you show mehttp://babylonjs-playground.com/#VNE2Z#6 i also need to draw a limacon updatebel (with animation)https://www.google.de/search?q=venus+orbit&biw=1918&bih=1014&source=lnms&tbm=isch&sa=X&ved=0ahUKEwj71YvV48zOAhUGMhoKHYNxCDIQ_AUIBigB#tbm=isch&q=venus+orbit+pattern@RaananW Quote Link to comment Share on other sites More sharing options...
jerome Posted August 19, 2016 Share Posted August 19, 2016 for the lines, I suggest that you use a LineSystem mesh instead of single lines, this will be far more efficient (one draw call) http://doc.babylonjs.com/tutorials/Mesh_CreateXXX_Methods_With_Options_Parameter#linesystem Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 20, 2016 Author Share Posted August 20, 2016 @jerome this is not a line, more a predefined shape of an untalented artist. Dear @Wingnut if you find any time, i need to draw a line, from - to point (animation) like in real life ... (but this is optional) MORE IMPORTANT i need a animation of an object between those lines:http://babylonjs-playground.com/#VNE2Z#7 If you dont have any time to spend on this, you can tell me whats the math behind it, Vector current -Vector past ? Thank you, and then we smoke the good stuff Best Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 20, 2016 Share Posted August 20, 2016 Wow, @Nabroski... I'm honored that you would ping ME about programming. I think you are 5x better programmer than I. But, yes, I probably have more time to do some research.... than you do. But this is not an easy challenge. To try to clarify, you need a fireball... to travel a shaky, wiggly Path3d... from one planet to another? Maybe the fireball/datapacket is TRYING to use a straight line... but space-time distortions... constantly try to make it go off-course? Does that sound like a good description? Like a continuous fight between "travel straight path people" and "randomly applyImpulse people"... during the whole traversal/trip? Coooool! The fireball packet is trying to make a straight-line trip, but it is SO DRUNK that... well... you get the idea. Does that sound correct? Maybe there IS NO lines between the planets, but the drunken fireball leaves a "con trail" (possibly of particles) behind it... showing everyone the drunken path it has taken so far? The con-trail stays in place.... after the trip is complete? SO many questions I have, huh? (sorry). But yeah, I'd be glad to give this some thought and provide some bad-programmer-Wingnut ideas/tests. I do those well. Nabroski 1 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 20, 2016 Author Share Posted August 20, 2016 Okay, i m a bit chaotic, no just this onehttp://babylonjs-playground.com/#VNE2Z#7 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 20, 2016 Share Posted August 20, 2016 Are you trying to do widgets or something? https://github.com/Pryme8/TOWER/blob/gh-pages/js/tower.widgets.js Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 20, 2016 Author Share Posted August 20, 2016 Hey Man can you give a short example ? I do javascript for 2 months and mostly just lucky with the intelligence sense of the playground Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 20, 2016 Share Posted August 20, 2016 Oh, I get it... http://babylonjs-playground.com/#VNE2Z#8 That is the drunken path? Yeah, that planet-to-planet pilot is a space-road-hazard. Something is going to animate along this path? Some city taxi drivers use paths like these... to make lots of money. heh Anyway, continue-on, guys... I'm still reading/learning what is objective. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 20, 2016 Share Posted August 20, 2016 What are you trying to actually accomplished finished product wise with the lines? If your just trying to connect two points and have them update where they are connected to register before the scene a function that takes the postions that you want to connect to so On scene creation:var line = BABYLON.Mesh.CreateLines("lines", path, scene, true); On register loop: var path = [objA.position(), objB.position()]; line = BABYLON.Mesh.CreateLines(null, path, null, null, line ); 2 months huh? way to find your niche. Let me know if I ever speak latin then and ill be sure to translate. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 20, 2016 Author Share Posted August 20, 2016 i will marry this girl i will place an ufo near the planet and when she clicks on it, it will bring her to the next universe This link will be down soon: [expired] Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 20, 2016 Share Posted August 20, 2016 haha I am so confused what is going on in that scene lol OHH HOLY CRAP!> your gonna ask a girl to marry you with this? Uber bro, umm yeah let me know what you need! You wont need to connect the points you need the ufo to go to at all. All you will need to do is lern how to LERP; You could prolly make it happen with an animation as well! Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 20, 2016 Author Share Posted August 20, 2016 or i just copy paste code from @JohnKhttp://babylonjs-playground.com/#VNE2Z#9 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.