Jump to content

Cube chaos


c75
 Share

Recommended Posts

Love the demo, hate the camera.  :o  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?  :D

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.

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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/

 

demo-cube2[1].png

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...