As a result, I decided to follow through and make more of it. So today I am announcing Primitive for macOS, now available on the Mac App Store. The core is still implemented in Go. The GUI is written in Objective-C (haven't bothered to learn Swift yet!) and communicates with the Go process over stdin/stdout via NSTask and NSPipe. The rendering is done on the front-end; the backend just sends shape coordinates and such. I spent a lot of time fleshing out the GUI layout to make it as simple yet powerful as possible. I hope you find it to be intuitive and I hope that you are pleased with the resulting images. I look forward to seeing what people do with the app. :) Let me know if you have any questions!
I remember seeing the lib a few months ago and thought it was neat. I even went to find the repo and call shenanigans on this post before I looked at the comments. Really cool to see you following up with it.
I downloaded your app from the MAS and find it beautiful.
I have previously implemented a "compressed sensing" image system in Processing, this produces very similar results. I was wondering whether you will be adding support for exporting animations, both of the image being built up and (as you mention) of many images matching criteria formed from different seeds.
I bet it would look really cool to have 3D primitives that can be oriented with respect to the time dimension. So for example, a spherical primitive would be a circle that grows and shrinks as frames progress.
Curious why you're using pipes to communicate when you can use CGO to make the go stuff it's own static C library and communicate bidirectionally that way? Granted it's a bit more complex than that sounds (I've did this to bring v.io to iOS), but I'd figure that'd still be easier than the alternative?
I just put a complex image with shadows/light sources and it did an amazing job. It was fun to watch and eventually stop. It was even cooler to open in sketch and see all the shapes and the way the image was formed. A++
Any chance that we can get the core for other OSs? Sounds like it's where all the magic happens and others could quickly work on UIs for it on other platforms.
I made some videos using primitive + ffmpeg a few months ago, glad to see it's still being developed!
https://theblackbox.ca/blog/primitive-triangles/ Awesome, I see you've added new features too. There goes my evening. A suggestion for video, allow loading the shape data for the previous frame and use that as a starting point. Could bring you closer to real time processing :)
I missed the original post on the primitive core, cause I hadn't seen this.
Just tried it out, and it is probably the coolest 'Show HN' I've ever seen. Spent the last 2 hours playing around with some pictures and different configs, and I absolutely love what this is doing. Also, really appreciate that you provided a value add to the product sold, without compromising the open source core. Thank you for that. Anyways, good job, and good luck. Hope this sells tons, cause it truly is amazing.
Interesting insights! I would love to hear more in how you exactly you bridged ObjC <-> Go.
Do you mean you just ship a compiled Go binary as part of your app and interact with that? If yes, did apple not say anything about it during review? I saw that you can call Go in mobile apps [0]. I'm wondering if that's also applicable for desktop apps [0]: https://github.com/golang/go/wiki/Mobile
Two comments:
1. The original photos are beautiful. What equipment are you using? We're extremely spoiled here in the PNW!
2. Have you considered printing any of the Primitive forms out and displaying them?
Thanks! Equipment on all four were taken with a Sony Alpha A7s with 35mm lens. I haven't thought about printing any of the Primitive images, but mostly because I only downloaded it about 20 minutes before posting these images. They might look interesting on canvas, tempting!
Too late to edit my comment, but I added a couple more photos if you want to check them out. A night scene that I thought would be a tough test (hard to do stars!) and some columnar basalt that turned out great.
It's just a simple jQuery plug-in called Twenty Twenty that I found when I had the idea to take the same picture at different times and compare the result. Drag/swipe across ended up working better as an effect than my original fade-in idea. You can view source to see how it works, it's really simple.
Playing with that comparison, it looks like there's a +y bias in your algorithm. If I didn't say that in a way that's clear, check out the Mowich Lake picture in particular. Its features are mirrored above and below the shoreline, so the generated features should also be somewhat mirrored, right?
Instead, the entire visual center of the image gets moved up by the Primitivization. It looks like trees on the top half get their exposed tops connected, but those same crowns are cropped in the reflection. This is such a phenomenal project. Thanks for making it!
I have let it run for ~40k shapes on a very hi-res photograph of my adorable children in front of a stream, and it is a beautiful thing to watch the resolution unfold. I love that I end up with a vector graphic at the end.
I have a crazy question: It generally seems to fill in detail uniformly, across the entire image. It's like the entire thing is coming slowly into focus. At some point, I'd prefer the algorithm to care a little less about filling in detail on the background, and focus more detail on the "items of interest" in a scene, the high-contrast regions or something. Perhaps even to have some manual control over it. Would this be possible? I am a total amateur when it comes to image analysis, btw, just thought it would be cool.
That would be a great feature. You could spend 500 shapes on the background and 500 on the foreground, instead of needing 3000 to get high detail everywhere.
It would be possible to do that in the app if you could restrict new shapes to a specified region.
Comments (145) 55 threads
As a result, I decided to follow through and make more of it. So today I am announcing Primitive for macOS, now available on the Mac App Store.
The core is still implemented in Go. The GUI is written in Objective-C (haven't bothered to learn Swift yet!) and communicates with the Go process over stdin/stdout via NSTask and NSPipe. The rendering is done on the front-end; the backend just sends shape coordinates and such.
I spent a lot of time fleshing out the GUI layout to make it as simple yet powerful as possible. I hope you find it to be intuitive and I hope that you are pleased with the resulting images. I look forward to seeing what people do with the app. :)
Let me know if you have any questions!
I have previously implemented a "compressed sensing" image system in Processing, this produces very similar results.
I was wondering whether you will be adding support for exporting animations, both of the image being built up and (as you mention) of many images matching criteria formed from different seeds.
You need a constraint that guarantees for example that without any changes in the video, you won't see any changing primitives.
Continue this thread — 2 replies
Curious why you're using pipes to communicate when you can use CGO to make the go stuff it's own static C library and communicate bidirectionally that way? Granted it's a bit more complex than that sounds (I've did this to bring v.io to iOS), but I'd figure that'd still be easier than the alternative?
Continue this thread — 1 reply
https://theblackbox.ca/blog/primitive-triangles/
Awesome, I see you've added new features too. There goes my evening. A suggestion for video, allow loading the shape data for the previous frame and use that as a starting point. Could bring you closer to real time processing :)
Need to use it in some paintings though
https://github.com/dontpanic92/wxGo/issues/8 needs work though fyi
Just tried it out, and it is probably the coolest 'Show HN' I've ever seen. Spent the last 2 hours playing around with some pictures and different configs, and I absolutely love what this is doing.
Also, really appreciate that you provided a value add to the product sold, without compromising the open source core. Thank you for that.
Anyways, good job, and good luck. Hope this sells tons, cause it truly is amazing.
Do you mean you just ship a compiled Go binary as part of your app and interact with that? If yes, did apple not say anything about it during review?
I saw that you can call Go in mobile apps [0]. I'm wondering if that's also applicable for desktop apps
[0]: https://github.com/golang/go/wiki/Mobile
(I will note that the website horizontally scrolls at 1024x768. A lot of sites do, though.)
Continue this thread — 1 more reply
1: http://watercolorbot.com/
http://www.jongales.com/timeshift/primitive/
Continue this thread — 1 reply
http://zurb.com/playground/twentytwenty
Here is the photo that kicked off my idea:
http://www.jongales.com/rainier/timeshift/
I also did another in the Spring that turned out nice:
http://www.jongales.com/timeshift/columbia-river-gorge/
Instead, the entire visual center of the image gets moved up by the Primitivization. It looks like trees on the top half get their exposed tops connected, but those same crowns are cropped in the reflection.
This is such a phenomenal project. Thanks for making it!
I have a crazy question: It generally seems to fill in detail uniformly, across the entire image. It's like the entire thing is coming slowly into focus. At some point, I'd prefer the algorithm to care a little less about filling in detail on the background, and focus more detail on the "items of interest" in a scene, the high-contrast regions or something. Perhaps even to have some manual control over it. Would this be possible? I am a total amateur when it comes to image analysis, btw, just thought it would be cool.
It would be possible to do that in the app if you could restrict new shapes to a specified region.
All comments shown.
Couldn't load more comments. Check your connection and try again.