What I did today

had another twist on nbody simulation, inverse this time. just a basic 2D fluid-like scene, but this one did explode alot. usually thats bad but here the results are pretty enjoyable. :wink:

50k offheap particles accelerated by a plain 2D grid running on 8 cores at 12ms.

[tr]
[td]
https://memleaks.net/things/gl_fluid_a.jpg
[/td]
[td]
https://memleaks.net/things/gl_fluid_b.jpg
[/td]
[/tr]
[tr]
[td]
https://memleaks.net/things/gl_fluid_c.jpg
[/td]
[td]
https://memleaks.net/things/gl_fluid_d.jpg
[/td]
[/tr]
[tr]
[td]
https://memleaks.net/things/gl_fluid_e.jpg
[/td]
[td]
https://memleaks.net/things/gl_fluid_f.jpg
[/td]
[/tr]
[tr]
[td]
https://memleaks.net/things/gl_fluid_g.jpg
[/td]
[td]
https://memleaks.net/things/gl_fluid_h.jpg
[/td]
[/tr]
[tr]
[td]
https://memleaks.net/things/gl_fluid_i.jpg
[/td]
[td]
https://memleaks.net/things/gl_fluid_j.jpg
[/td]
[/tr]
[tr]
[td]
https://memleaks.net/things/gl_fluid_k.jpg
[/td]
[td]
https://memleaks.net/things/gl_fluid_l.jpg
[/td]
[/tr]
[tr]
[td]
https://memleaks.net/things/gl_fluid_m.jpg
[/td]
[td]
https://memleaks.net/things/gl_fluid_n.jpg
[/td]
[/tr]

Nice render! I wish I was as good as you in Blender Cycles too! (But one thing I share with you are these nasty little fireflies everywhere in cycles :D)
[/quote]
I’m not great at Blender/Cycles at all! Mostly following the tutorials from Blender Guru and BornCG (both recommended) and experimenting with shaders gets you a long way without much difficulty.
Also, the ā€˜fireflies’ can be get rid of by increasing the amount of samples… if that didn’t kill my laptop that is.

basil_: beast as usual, your sims always look fantastic. Question, there a reason you’re storing them off heap?

yea, if all particles and springs are defined by pure data i can just stick the pointers into gl-draw methods without the need to copy everything every frame.

turns out, compared to my previous take on physics based on objects, computation -alot- faster and easier to run concurrent. since GC is not in play, it’s also more ā€œstableā€, stuttering-wise.

another issue is double-buffering, with objects that would be even more GC pressure. with pure memory, there is no impact at all.

moving to compute-shaders or opencl is also trivial - and i can still run the ā€œcpu-referenceā€ side by side.

actually, i just love going unsafe. :wink:

Got a medal for something I did 2 years ago. Thanks Sralse.

Bought my first ever game on Steam. Had to go with Ultratron!

I spent quite a lot of time trying to get my C++ launcher to work kind of synced with my Java updater & game… Did you know that [icode]System.getProperty(ā€œuser.homeā€);[/icode] does not necessarily return the same as [icode]std::getenv(ā€œHOMEā€);[/icode]? Welp, I didn’t, so I lost at least 40 minutes trying to debug that… All in all, not so bad :slight_smile: I quite like playing around with I/O, in fact.

J0 :slight_smile:

Missed this! Yeah, Cleveland was crazy! Should’ve seen the city when the Cavs won :slight_smile: We might be going to Chicago to be on a radio show, we’ll definitely play somewhere in the city if we do and I’ll let you know! Also, working on recording 2 more songs which means we finally have half of our first EP recorded! Very excited.

On another note; does anyone know of a good book to learn algorithms/data structures? I’ll be interviewing soon and I’ve never really had any lessons on them.

It’s here :slight_smile:

sorry for blurry pic.

BRB making VR games.

Say you were looking to execute a java program via the command line. You first try to get the version of a potential java installation: [icode]java -version[/icode]. Say the output is [icode]ā€˜java’ is not recognized blah blah blah[/icode]. Now you’d like to try and see if you can find a JRE or JDK installation directory somewhere on the computer from which to execute the program without downloading a full JRE. Alright. Would you say that looking for [icode]%JAVA_HOME%[/icode] or [icode]$JAVA_HOME[/icode] help, or would that be overkill since java is not on the path?

J0 :slight_smile:

Chicago Cub’s celebration parade was apparently the biggest gathering of people in American history! I work right downtown and live a block from the field so I got to see it all lol. Definately let me know when/where/if you guys play here, I’ll be there!

Voted.

[EDIT: Watching the returns come in. It shouldn’t be this close!
Michigan is scaring me. Glad VA is trending blue finally.]

[EDIT2: AAARRRGH!!! ]

Me too. I tried to go early on Sunday, line was about 2 hours long. Went today (day of), in and out within 10 minutes.

Just dont. Bundle your own jre. Will save you a ton of headache…

I probably should. :persecutioncomplex:

Donald Trump has become the 45th President of the United States of America.

For better or worse.

I don’t think he’ll be as bad as everyone makes him out to be, we’ll just have to wait and see.

Even if he eliminates his hate speech and pushes totally moderate agenda and none of his WTF things…it’s still a disaster. Hate of others is now OK. Hate of america is flamed.

Drew the character for my November’s GitHub GameOff game JAM.

First time making a better character. Don’t ask why he is not having eyes, I’m not gonna tell you that.

Trump doesn’t appear to be a wise leader or a good role model judging from the past. However, since winning he has refrained from gloating and has promised to unite the country again, acting more ā€˜presidential’. Let’s hope that continues