News for hackers. Stuff that matters.
Re:Show HN: Particle Simulation with OpenGL compute shader –... by __mp on Wednesday January 13, 2016 @01:28PM (#10896358)
Nice! It's a bit unfortunate that OSX doesn't support OpenGL 4.3 which is needed for this project. It currently only supports OpenGl 4.1. I'm currently toying around with a similiar project where I would have enjoyed to try out compute shaders.
Re:Show HN: Particle Simulation with OpenGL compute shader –... by melling on Wednesday January 13, 2016 @02:18PM (#10896723)
From what I've read, you can get pretty good performance on an iPad Pro. Here's 8M pixels:

http://flexmonkey.blogspot.com/2015/11/a-first-look-at-metal...

The author provides the source. Portable to the Mac?

https://github.com/FlexMonkey/ParticleLab

Re:Show HN: Particle Simulation with OpenGL compute shader –... by __mp on Saturday January 16, 2016 @01:11PM (#10916130)
It's an XCode project: I'm pretty sure it works on Mac. However the code uses Metal, which does not have a C/C++ API. I'll wait for Vulkan to be available on Mac.
Re:Show HN: Particle Simulation with OpenGL compute shader –... by EllipticCurve on Wednesday January 13, 2016 @02:01PM (#10896605)
I think, there is a possibility to not use the core-OpenGL but kind of upgrade to the legacy-version.

But I don't know much about that...

Re:Show HN: Particle Simulation with OpenGL compute shader –... by EllipticCurve on Thursday January 14, 2016 @01:01PM (#10903070)
Turns out, there is not. No way to get over OpenGL 4.1 on OSX, sorry...
Re:Show HN: Particle Simulation with OpenGL compute shader –... by EllipticCurve on Wednesday January 13, 2016 @05:17AM (#10893369)
If you like it, I will record and post a video of it this evening.
Re:Show HN: Particle Simulation with OpenGL compute shader –... by EllipticCurve on Wednesday January 13, 2016 @02:19PM (#10896728)
Re:Show HN: Particle Simulation with OpenGL compute shader –... by meagain20000 on Wednesday January 13, 2016 @02:06PM (#10896642)
It would be much appreciated.
Re:Show HN: Particle Simulation with OpenGL compute shader –... by bronz on Wednesday January 13, 2016 @01:17PM (#10896281)
Please do this.
Re:Show HN: Particle Simulation with OpenGL compute shader –... by Abundnce10 on Wednesday January 13, 2016 @01:22PM (#10896317)
Yes, please!
Re:Show HN: Particle Simulation with OpenGL compute shader –... by EllipticCurve on Wednesday January 13, 2016 @02:18PM (#10896725)
All right, here is a small video of the simulation:

https://vimeo.com/151682787

But after all this recording, converting and uploading, the quality is a bit down... If you like it and have the necessary hardware, I would recommend to just run it yourself. Looks a lot better :)

Re:Show HN: Particle Simulation with OpenGL compute shader –... by JoshuaJB on Wednesday January 13, 2016 @01:07PM (#10896212)
"In the future, we are committed to bringing it to other platforms, starting with Linux..."

Nice to see a change of heart.

Re:Show HN: Particle Simulation with OpenGL compute shader –... by EllipticCurve on Wednesday January 13, 2016 @02:20PM (#10896734)
It kind of is Linux ;)
Re:Show HN: Particle Simulation with OpenGL compute shader –... by prezjordan on Wednesday January 13, 2016 @01:38PM (#10896430)
What are some cool snippets of code in this repo? I realize A) that's a loaded question and B) it's all very cool. Just curious if any readers have come across any "Whoa that's cool" parts of the codebase.
Re:Show HN: Particle Simulation with OpenGL compute shader –... by EllipticCurve on Wednesday January 13, 2016 @02:25PM (#10896774)
I won't know, if you find some^^

I consider myself as decent (but not genius) programmer and you might find some cool code snippets, but probably not in this project ;)

For me this was more about the endresult and getting compute shader to work. Never considered publishing it really...

Re:Show HN: Particle Simulation with OpenGL compute shader –... by jheriko on Wednesday January 13, 2016 @01:23PM (#10896320)
a video would be cool. nobody is going to bother to get the code and build it, especially in the state its in.

i'm not really sure what this proves beyond the power of the hardware. there are no clever tricks here that i can see beyond 'keeping it simple' but even then... its not so simple as it could be either.

Re:Show HN: Particle Simulation with OpenGL compute shader –... by EllipticCurve on Wednesday January 13, 2016 @01:30PM (#10896369)
Yes, you are right, it is more like a proof of concept for myself. And as it seems, there are people (similar thread on Reddit), for whom it might help.

Just wanted to share, as there were not too many working projects out there with compute shaders. And it would have helped me :)

Re:Show HN: Particle Simulation with OpenGL compute shader –... by jheriko on Thursday January 14, 2016 @04:49PM (#10904799)
ok, that makes some sense. it can be hard to find resources if you are looking for tutorials, examples or guides rather than specifications... not just for this but in general.

the trick imo is to learn not to require those things... which you seem to have managed. but you are right that its a lot easier not to have to work stuff out from the basics. :)

Re:Show HN: Particle Simulation with OpenGL compute shader –... by reacweb on Wednesday January 13, 2016 @12:47PM (#10896051)
How long before a nodejs based on chakraCore ?
Re:Show HN: Particle Simulation with OpenGL compute shader –... by cjbprime on Wednesday January 13, 2016 @12:49PM (#10896076)
Re:Show HN: Particle Simulation with OpenGL compute shader –... by baldfat on Wednesday January 13, 2016 @01:29PM (#10896364)
How long till the 2nd one exist?