RaananW Posted October 1, 2015 Share Posted October 1, 2015 So! First monthly challenge is over! Game of life... Who came up with that idea... Anyhow! Let's see what we got... (By order of appearance in my inbox! :-) )Temechon's clean solution - http://www.babylonjs-playground.com/#BLA36#5 - Using a custom shader FTW! I wish I would do things so aesthetically...JohnK's solution - http://www.babylonjs....com/#1RMGBR#15 - Using Jerome's Solid Particle System JohnK created an unlimited GoL world. Careful, after a while it is very complex, but still very fun to watch!iiceman's solution - http://p215008.mittwaldserver.info/GameOfLife/ - Not done, but nonetheless deserves the credit - this is so nice after a while. Just keep on clicking next!RaananW (me, me!) solution - http://www.babylonjs-playground.com/#YKZKE - Async game of life (no global ticker). Clicking on a box will kill it (with fire!) If the playground goes crazy (or is, for some reason, too slow), use this - https://raananw.github.io/Game-Of-Life/Jaskar's version - http://www.jaskar.host-ed.me/3DGameOfLife/ - A nice and configurable version, with the possibility to change tick time and cube size.Each of this solutions is randomized, refresh to page (or press run again in the playground) and the magic will happen again. Just differently. The (anonymous) poll is open! cast your vote(s)! Next challenge comes later today. Jaskar 1 Quote Link to comment Share on other sites More sharing options...
iiceman Posted October 1, 2015 Share Posted October 1, 2015 They are all awesome! (except mine, mine is pretty lame) But I will check out how you guys did what you did and then randomly pick my favourite Very cool! Quote Link to comment Share on other sites More sharing options...
Ahiru Posted October 1, 2015 Share Posted October 1, 2015 From the aesthetic point of view I liked your one best Iceman (nice forms), but the fixed starting position and the choice not to have it in the playground so we can easily play around with let me decide not to vote for it. RaananW's and Temechon's forms were quite limited in the end due to the fixed grid system, and Raanan's version gets pretty slow fast - why did you use clones and create a new material with every birth? 2 different Instances and 2 materials would have been easier and faster? And I'm not sure, why it gets slower and slower over time - maybe the mesh.dispose does not really work well? (That's a "nice" thing having an old computer like mine - bottlenecks are visible fast) JohnK's one was the one I voted for, since it was reasonably fast, lots of settings to play with and well documented! Great! Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 1, 2015 Author Share Posted October 1, 2015 Good catch :-)The hack I used is only due to the material diffuse texture animation. So I can animate the material's color before it's dead (the plan was to constantly change the color according to neighbors, this is why each has its own material). About performance - I have no idea why, but it is much smoother on github pages. I also doubt the problem in performance is due to the materials. The main "problem" is that each cube has its own self-defined ticker. So when you have a lot of boxes, they will tick quite a lot. There are ways to optimize it, but hey, it was made just for fun :-) And I find it so nice that it is asynchronous - boxes keep on coming and going.You can try playing with the variables on top (this is why they are there), but do try the github link - I get 5 FPS in the palyground and 60 FPS on github, using the same variables... Quote Link to comment Share on other sites More sharing options...
Ahiru Posted October 1, 2015 Share Posted October 1, 2015 Ok - maybe there won't be the console error then, too - will try. I get in the playground console: Uncaught TypeError: Cannot set property 'references' of undefined137341 console messages are not shown. Right - no console error in Github, let the FPS go up from 1.6 to around 15 FPS Quote Link to comment Share on other sites More sharing options...
Jaskar Posted October 1, 2015 Share Posted October 1, 2015 Hi,I forgot to (re)post mine : http://www.jaskar.host-ed.me/3DGameOfLife/ You can play with the tick time and the box size. RaananW 1 Quote Link to comment Share on other sites More sharing options...
Temechon Posted October 1, 2015 Share Posted October 1, 2015 I vote for Raanan, animations are sooo super cool ! It's like a little thing full of life Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 1, 2015 Author Share Posted October 1, 2015 Adding Jaskar's! Jaskar 1 Quote Link to comment Share on other sites More sharing options...
MasterSplinter Posted October 1, 2015 Share Posted October 1, 2015 RaananW both of your links grind my laptops video card to a halt... nVidia Gt 740 m -- not great but not grind worthy Great work guys! Quote Link to comment Share on other sites More sharing options...
iiceman Posted October 1, 2015 Share Posted October 1, 2015 I updated the visuals of mine, wanted to do that yesterday night but it didn't let me upload stuff. It still bothers me that it gets so slow so fast... Quote Link to comment Share on other sites More sharing options...
Jaskar Posted October 1, 2015 Share Posted October 1, 2015 Thanks for the adding RaananW, next time I'll send you my link before Monthly "challenge" is a great idea, and the topic was great. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 1, 2015 Share Posted October 1, 2015 All are great honestly..that's an hard choice! Quote Link to comment Share on other sites More sharing options...
JohnK Posted October 3, 2015 Share Posted October 3, 2015 For anyone that might be interested here is the base version without the distraction of lattices and fading in and out. Might be clearer on how I used double linked lists to store live cells. http://www.babylonjs-playground.com/#1RMGBR#17 It shows a glider Ahiru and RaananW 2 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.