News for hackers. Stuff that matters.
Re:Show HN: Primitive for macOS by hftf on Tuesday November 15, 2016 @01:25PM (#12960721)
I wonder if it’s possible to turn this into a video filter.
Re:Show HN: Primitive for macOS by spython on Wednesday November 16, 2016 @01:38AM (#12964992)
Last time primitive was posted I wrote some bash scripts to make it work on video using ffmpeg - https://rybakov.com/blog/primitive/
Re:Show HN: Primitive for macOS by cproctor on Wednesday November 16, 2016 @01:33AM (#12964978)
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.
Re:Show HN: Primitive for macOS by ultrafez on Tuesday November 15, 2016 @02:02PM (#12961104)
I don't see why that wouldn't be possible, it likely wouldn't run in realtime though.
Re:Show HN: Primitive for macOS by amelius on Tuesday November 15, 2016 @05:23PM (#12962883)
Well, a problem could be that you get a lot of noise if all the frames are rendered independently.

You need a constraint that guarantees for example that without any changes in the video, you won't see any changing primitives.

Re:Show HN: Primitive for macOS by JoshTriplett on Tuesday November 15, 2016 @11:46PM (#12964596)
> Well, a problem could be that you get a lot of noise if all the frames are rendered independently.

The site shows an example of what a still image looks like if rendered with the same parameters several times; it provides an interesting animated effect. I think that might produce an interesting animation style.

But for a more consistent style between frames, it'd help to have a way to seed the RNG consistently.

Re:Show HN: Primitive for macOS by amelius on Wednesday November 16, 2016 @05:02AM (#12965743)
I think there is more to it than just seeding the RNG consistently.

For example: what if you have a minor change in the area of the screen that got the first primitive (and hence used the first few RNG numbers)? Then all the remaining primitives will use different RNG numbers.

I think the problem becomes more difficult: you want to find the primitives that result in the minimal change wrt the previous frame.