sancelot Posted April 17, 2018 Share Posted April 17, 2018 Hi, I would like to animate a big machine and I have got some questions. The machine has got some rigid bodies (like a robot) and each other have some kinematic relations. rotation/translation ....depending on the physic axis Can I load the whole scene in blender and then export it to a babylon file or is it better to load each mesh as single components in a js file scene ? . Or any other way ? at moment, the machine comtains almost 10 meshes ,that are almost 1 to 2Mbytes stl ascii files each. Once the machine is loaded, there will be animation. The position values of each meshes are computed by a cnc post processor and the positions are available in an array for each ms. I don't know exactly how I will share these values to the babylon js model at the moment . any idea ? Regarding the vision of this project, I would need some advices on the way to implement it right in babylonjs . To give you a better overview of what I want ot achieve , here is a video of my actual project : https://drive.google.com/open?id=1OQf1YTQnIdTWPBMFzlP1J2653ZjPyVkY Regards, Steph Quote Link to comment Share on other sites More sharing options...
Guest Posted April 17, 2018 Share Posted April 17, 2018 Hello! I would suggest to keep things separated and perhaps link them through parenting Data will come from network? With separated data it should easier to control individual pieces with rotation / position Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted April 18, 2018 Share Posted April 18, 2018 Hi guys. I want to show Steph this goofy "SpinTo, MoveTo, ScaleTo" thing. https://www.babylonjs-playground.com/#HH1U5#72 It's weird. It uses "overloaded" little animators on all mesh (lines 2-50) and then uses a really poor "event sequencer" (lines 150-166). This is ONE way of keeping things separate. Your server can call anymesh.spin() or anymesh.moveTo() or whatever... anytime it wishes. THIS demo really needs a "scheduler". But if your server is doing the animation start-event sequencing, maybe some of those little animation funcs... might be handy for you. That video/machine looks cooooool. CNC machine or something similar? I had a relationship with a girl... one time... that had similar radical twists/bends. Ow. #69 is fun, too. No, no, not THAT kind of 69. I'm talking about PLAYGROUND 69! Oh geez, no, NOT THAT KIND of playground 69! Yikes! I better shut-up, now. Arte 1 Quote Link to comment Share on other sites More sharing options...
Arte Posted April 18, 2018 Share Posted April 18, 2018 Hi from me, Lets have fun with CNC router Keys: W,A,S,D,8 and 2 Wingnut and NasimiAsl 2 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted April 19, 2018 Share Posted April 19, 2018 https://goo.gl/ZKXZvC you can have timers array(60 timer for support in ios) and manage that in GPU with some grouping you can have unlimited animation in gpu without lose any fps for the animation Quote Link to comment Share on other sites More sharing options...
sancelot Posted April 24, 2018 Author Share Posted April 24, 2018 Hi, Thanks for all your replies. yes, it is a cnc. things will be separated. I am loading the meshes from localhost, I did a quick try , not really complicated till there But if I can put it on web ....that will be nice. I am using obj files, I may switch to glTf , that seems better for web usage. Now, I have to animate it : At the moment, I have a compressed array of the positions depending on the time in a C program .Compression means I store only changes. I don't know if I should use a database and poll positions from it ? or use a fast kind of array or provide them through a json rpc.Use a websocket ? In the original C program I was working with array chunks of 1000 data. This means I will need a kind of scheduler too ...In the mean time, I should be able to scroll the whole cycle time using a scrollbar . Regards Steph Wingnut 1 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.