5 ms·
Fluid Paint Simulation
- anonfunction 10y agoSource code: https://github.com/dli/paint https://github.com/dli/paint
- tantalor 10y agoTouch event support please!
- haxiomic 10y agoGreat stuff! Reminds me of Verve Painter[1], which is a fleshed out fluid-simulation-based oil painting app [1] https://www.youtube.com/watch?v=PBO2hNv_tTE https://www.youtube.com/watch?v=PBO2hNv_tTE
- santaclaus 10y agoCool! Any idea what model or method is used here (or is it heuristic)?
- dorianm 10y agoIt's open source ;) https://github.com/dli/paint https://github.com/dli/paint
- jonr8 10y agoA quick look at the source code seems to suggest Li's work is based on Mark Harris' GPU implementation (with Jacobi iteration) of Jos Stam's method. Ref: http://www.expresii.com/blog/innovations-in-digital-painting-tech6607339 http://www.expresii.com/blog/innovations-in-digital-painting...
- mistercow 10y agoThis is very cool. One thing that I think could be improved: It looks like the model is treating the white background as if it is also paint. This leads to some weird results when painting over existing strokes. Really awesome work though.
- roesel 10y ago20 seconds of drawing with default parameters and laptop temperature went from 40 to 70 °C. Not bad :D. Nice work though, very beautiful and realistic.
- tucaz 10y agoHoly moly! Awesome work. It looks very realistic. Congrats!
- mholt 10y agoHis other work is cool too: http://david.li/ http://david.li/
- lumberingjack 10y agothe green Vortex Spheres maxed out my gtx 1070 what the heck
- jayajay 10y agoThis is a great share. The Fourier example is a great way teach about Fourier series and decomposition. Very cool!
- jefe_ 10y agoAmazing how well it handles painting on top of previous strokes.
- superplussed 10y agoAmazing. It seems like it'd be really useful to be able to zoom in and out as well.
- olegkikin 10y agoDoesn't have dark colors. The darkest paint is brown.
- kepano 10y agoThis seems obvious but somehow I never considered that you need three dimensions to replicate the feel of most paints.
- fjdlwlv 10y agoIf you are accustomed to seeing prints and photos and computer scans, it's easy to overlook how oil paint is like a sculpture. Watercolor, not so much.
- heurist 10y agoPretty cool. Next step is mixing colors and different thicknesses like real oil :)
- aperrien 10y agoThis reminds me of Bob Ross and his "Happy Little Trees". I think I could paint some on here if the canvas were bigger, and there was an area off to the side to mix the paint.
- throwaway2016a 10y agoVery nice work. Reminds me a lot of Corel Painter.
- btzll 10y agoVery cool, but please change the color selector. It is not intuitive, and it's very hard to pick even the most obvious colors.
- bkanber 10y agoThat's a pretty common HSL-style color picker. It's great for artists and designers who think in those terms. Curious, do you have much experience in graphic design, or no?
- btzll 10y agoI have zero experience in graphic design, but I do not think the simulation is made for designers.
- bkanber 10y agoIt makes sense for artists, designers and painters included. This simulation looks like oil paint, and this type of color picker is like mixing pigment to get a hue and then mixing in black and white to change the saturation and value. I guess that makes sense seeing as this is a paint simulation!
- Justsignedup 10y agoFantastic. One criticism. On click please make the paint "dip" and paint, and the paint on the brush should wear out. Then it'll really feel like painting. Click again is to re-dip in the color of choosing. This will even let for mixing of colors like on a painter's palette. :) Very nice tool.
- thomasjudge 10y agoTo "really feel like painting" for me it would have to simulate spending hours with blue tape, spilling on my shoes, making multiple trips to home depot... sounds like a job for VR... ;)
- Ono-Sendai 10y agoCool. Something like this could combine nicely with my automatic painting algorithm: http://www.forwardscattering.org/post/42 http://www.forwardscattering.org/post/42 http://www.forwardscattering.org/post/44 http://www.forwardscattering.org/post/44
- pacaro 10y agoSee also FreshPaint on any version of windows > 7
- zokier 10y agoYou can compare this to what I believe is the state of the art system, "Wetbrush": https://www.youtube.com/watch?v=gwyqh4d-WU8 https://www.youtube.com/watch?v=gwyqh4d-WU8 (SIGGRAPH Asia 2015) https://www.youtube.com/watch?v=k_ndr3qDXKo https://www.youtube.com/watch?v=k_ndr3qDXKo (Adobe demo)
- pavlov 10y agoOf commercial applications, Corel Painter remains the professional natural media paint tool: http://www.painterartist.com/en/product/painter/ http://www.painterartist.com/en/product/painter/ It's been around for about 25 years and some of the UI is a bit creaky, but on the upside, it's pretty fast on modern desktops and it still gets regular updates. Brush strokes with 3D depth ("impasto") were introduced a long time ago, maybe late '90s.
- DaveSapien 10y agoAlso, here is an example of one of mine. Its pretty old now but runs really well on old ipads: https://www.youtube.com/watch?v=BbbQk9JK2OY https://www.youtube.com/watch?v=BbbQk9JK2OY Also been developing a (super fast) paint system for Unity mobile/VR: https://twitter.com/DaveSapien/status/800044501159079937 https://twitter.com/DaveSapien/status/800044501159079937 ....and here is another one of my paint systems for a new game I'm working on: https://twitter.com/DaveSapien/status/791628287915196416 https://twitter.com/DaveSapien/status/791628287915196416 Hope you like!
- fonosip 10y agoA similar app without opengl (for ipads and such) http://ba.net/util/finger-oil-painting/ http://ba.net/util/finger-oil-painting/
- deleted 10y ago[deleted]
- supercoder 10y agoiPads support WebGL / OpenGL just fine
- bsaul 10y agoInterface doesn't seem to work on an ipad ( maybe because of event handling though)
- nilved 10y agoThis is too slow to use on my MacBook... I like the idea though, and it seems really cool.
- robodale 10y agoMy MacBook Pro sounds like it's taking off a runway :P
- divbit 10y agoThis is great for calligraphy with surface pen - can't find the black ink though.
- Jordrok 10y agoVery cool! Man, does it peg the hell out of the CPU though! :P
- exDM69 10y agoIt was hogging about 60% of one CPU core (Skylake i7) on my PC. Seems like it's re-drawing the screen at 60 fps even though nothing is happening. Should be an easy fix.
- ffwacom 10y agoso cool, consider adding an option to remove paint from the brush so you can scumble the fluid to blend.
- kdamken 10y agoI feel like you deserve the nobel prize for this or something. Mind = blown
- overcast 10y agoLooks sweet, but the paint definitely continues sliding in the direction of the stroke for too long. Paint basically just sticks immediately where you put it, it doesn't have that type of momentum. Even at the lowest fluidity level.
- amelius 10y agoWhat primitives is this using?
- andyfleming 10y agoThis is pretty impressive. It'd be really neat if the paint slowly dried!
- shankar_mj 10y agoWow !
- marai2 10y agoThis is oddly therapeutic and calming. My Macbook CPU was just fine as well. Very cool!
- huangc10 10y agoWas playing with your other projects too. Great stuff and super fun. Sharing.
- cr0sh 10y agoI can't paint or draw worth beans - but I like it!
- kin 10y agoAt first I was like, "Wow, this is a cool effect, let's try a different col-- HOLY SHIT". Color me impressed!
- BuffaloBagel 10y agoDid you mean to use the term fluidity rather than the term viscosity? I believe they are mathematically inverse.
- noonespecial 10y agoVery nice. Lots of fun. The only thing missing is that the paint doesn't mix, ie. yellow and blue don't turn greenish etc.
- chris_st 10y agoAnother "natural paint" painting program is ArtRage [1]. They have, bar none, the friendliest, most supportive discussion forums I've ever seen on the internet. Oh yeah, the painting program's pretty good too :-) [1] https://www.artrage.com https://www.artrage.com
- ww520 10y agoThis is awesome. 3D work really have the wow factor. This is definitely at the WOW level. Edit: I would say couple this with VR and it would be a truly awesome experience.
- jayajay 10y agoLike MS Paint, but for VR. Interesting, the "websites" of VR will be worlds... I can totally see people throwing in this kinda stuff "just because wow new technology" in the same way that websites back in the 90s threw in snowflakes falling on the screen, custom pointers, epileptic lighting, audio, flash, etc.
- quakeguy 10y agoWith Opera 43.0.2442.806 (PGO) i cannot do a stroke at all it seems. Just reporting.
- mfisher87 10y agoReminds me of Verve. I watched the author's channel on Youtube religiously, hugely enjoying his video demos with each new release. Sad to say there hasn't been one in like 2 years. https://www.youtube.com/user/333taron/videos https://www.youtube.com/user/333taron/videos
- snailmailman 10y agoOohh! i was looking for this! i remember seeing this a few years ago and being really impressed. It looks pretty good, although im not much of an artist so i dont know how it compares to the paid competition. The UI could use some work though. it took me a while to figure out but im having a lot of fun with it. performs surprisingly well for me on only an intel integrated card.
- mshenfield 10y agoColor me impressed
- dorianm 10y agoI loved it, I feel like it could make some nice backgrounds and decorative paintings will a little more tries: http://imgur.com/a/XBUgn http://imgur.com/a/XBUgn And it's open source: https://github.com/dli/paint https://github.com/dli/paint (I posted my issues there)
- craigleehi 10y agoHere is another eastern watercolor painting tool "Expresii"[1]. [1] http://www.expresii.com http://www.expresii.com
- devwastaken 10y agoQuite nice, though the paint colors don't combine like they do in this kind of oil painting. Can't make bob ross art without that. Also when you try to paint on the edges, the brush goes away, so its difficult to make a full picture without making it larger, and then cropping down.
- ygra 10y agoReminds me of https://www.microsoft.com/en-us/research/project/project-gustav-immersive-digital-painting/ https://www.microsoft.com/en-us/research/project/project-gus... with later became Fresh paint.
- _Codemonkeyism 10y agoLike that, though I wish it would work with FF/Win10/XPS13 touch screen.
- jonr8 10y agoSee a history of fluid sim applied to watercolor-like painting: http://www.expresii.com/blog/innovations-in-digital-painting-tech6607339 http://www.expresii.com/blog/innovations-in-digital-painting... A quick look at David Li's source code seems to suggest Li's work is based on Mark Harris' GPU implementation (with Jacobi iteration) of Jos Stam's method.
- koliber 10y agoI can't seem to create anything beautiful worth sharing with this. But damn, it is soothing and relaxing to play with. It feels almost therapeutic! Thank you!
- joakleaf 10y agoIs this using Navier-Stokes based fluid simulation?
- deleted 10y ago[deleted]
- bsenftner 10y agoSo bizarre: I saw this post last Saturday, loved the site and David.il's other pages, showed some friends... Then I could not find the HackerNews post again. Here it is now, yet it says it was posted within a day, with no history of being posted before. Odd...
- lkbm 10y agohttps://news.ycombinator.com/item?id=13589074 https://news.ycombinator.com/item?id=13589074 Not surer why it's not showing when you search. I got here by using HN search for the URL and picking the one with more comments--both showed up for me.
- FreeFull 10y agoPerhaps it was deleted for some reason, and posted again? I definitely remember seeing it here earlier.
- j_s 10y agoClick on the domain to see all previous posts. https://news.ycombinator.com/from?site=david.li https://news.ycombinator.com/from?site=david.li The most recent was missing the word "Simulation", so clicking on the "past" link does not show it since that is a search by all words in the title.
- itomato 10y agoThis is more of a 'mop' than a 'paint brush'.