c75 Posted March 5, 2016 Share Posted March 5, 2016 Yet another Babylon.js mini demo. Nothing special http://files.c75.in/pub/demo/babylon-cube-chaos/ http://files.c75.in/pub/demo/babylon-cube-chaos-v2/ (new camera, colors and rotations) Playground version: http://www.babylonjs-playground.com/#1E6NJO Sources: https://github.com/avin/babylon-cube-chaos satguru, GameMonetize, jerome and 2 others 5 Quote Link to comment Share on other sites More sharing options...
jerome Posted March 6, 2016 Share Posted March 6, 2016 so beautiful and ... hypnotic ! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 7, 2016 Share Posted March 7, 2016 Love the demo, hate the camera. But it's still way nice. Normally, I try to make a playground version of nice demos like this... but... looking at the source code... OMG! What the heck is this coded-in? Fortran? ADA? Still, somebody, put this in a playground so we can properly mess with it. We wanna turn knobs! Half the fun of great demos... is testing how many ways we can make it crash! Let's see, I know the button is nearby, somewhere. "Serialize scene graph to playground editor" I'm SURE I saw that button around here, earlier. Where did I put that? hmm. Quote Link to comment Share on other sites More sharing options...
jerome Posted March 7, 2016 Share Posted March 7, 2016 I guess it's done with something called WebPack... so the final code is not that readable for us, poor PG addicts ;-) AFAIU, there are 160 box instances slowly rotating according to their indexes in their array. The demo is nice although it doesn't run (visibly) at 60 fps on my old laptop. But I suppose it should ! 160 instances are not that much ... I need to check why ? is there some post-process C75 ? or some object allocation within the render loop ? or some annex hidden treatment ? Wingnut 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted March 7, 2016 Share Posted March 7, 2016 oooppss 1600... not 160 Quote Link to comment Share on other sites More sharing options...
c75 Posted March 7, 2016 Author Share Posted March 7, 2016 Guys, thank you for response!@jerome, my bad - there was really huge amount of instances @Wingnut, I really love to use es6 features of javascript, so I use babel and webpack to make es5 compatable versions. Converted sources are not readable. I will try to make playground version of this demo special for you Upd: here it is http://www.babylonjs-playground.com/#1E6NJO So, please check version 2 of this demo - less instances, new camera, more colors and disabled chaos generation. http://files.c75.in/pub/demo/babylon-cube-chaos-v2/ Wingnut, jerome and iiceman 3 Quote Link to comment Share on other sites More sharing options...
c75 Posted March 7, 2016 Author Share Posted March 7, 2016 Playground version is ready http://www.babylonjs-playground.com/#1E6NJO Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 7, 2016 Share Posted March 7, 2016 Hey, thanks for the PG version, C75! Real nice of you! (and thanks for telling us why your code looks like that!) Good, good, good. Heavy on my CPU. The forum editor doesn't type real well when the demo is running in another window. It's a nice demo. Weird... but that's what makes it cool! c75 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted March 7, 2016 Share Posted March 7, 2016 sps version : http://www.babylonjs-playground.com/#1E6NJO#1 I just adapted the c75 code quickly with the same number of boxes (ie 2600 in the example) On my old computer the SPS version runs at little bit faster than the instance version (35-40 fps / 25-30 fps). Don't know why ... real nice hyptonic screensaver anyway :-) [EDIT] a bit ore faster with sps optimizers from the line 30 : http://www.babylonjs-playground.com/#1E6NJO#2 RaananW, Wingnut and c75 3 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.