Better HN
topnewbestaskshowjobs
Log inSign up

rjkaplan

204 karma · joined Dec 5, 2015 (10y ago) · 37 submissions

Submissions

comment 1y ago · link · parent

True... this was a conscious trade-off at Figma since it needs to support designs for web, iOS, Android, etc. That unfortunately means it doesn't map 1:1 to any of them.

2.

Notes from My Time at Figma(andrewkchan.dev ↗)

4 points · by rjkaplan · 2y ago · discuss

3.

Dynamic loading of real-time content at Figma(figma.com ↗)

49 points · by rjkaplan · 2y ago · discuss

comment 2y ago · link · parent

I'm guessing the comment was downvoted because the suggestions are mentioned in the first paragraph of the article...

> After trying a few stopgap solutions—like purchasing M1 Maxs for our team—build times gradually reverted to their original pace; Ccache and remote caching weren’t enough either.

comment 2y ago · link · parent

Figma supported vector networks a few years before that thesis was written (I worked there at the time).

comment 2y ago · link · parent

Hmm, why does this page say that iOS has 1.26% support? Safari developer preview isn't supported on iOS, and neither are non-Apple browser engines.

comment 5y ago · link · parent

Strongly recommend either The Way of Kings or Mistborn. They're the first books in two separate series of his. The Way of Kings is epic fantasy. Mistborn is somewhere between fantasy and YA.

comment 6y ago · link · parent

Neat! In my experience jump flooding on the GPU is faster than any CPU side approach for images bigger than a few hundred pixels. It's O(n ^ 2 log n) which sounds really expensive, but it requires just O(log n) draw calls.

The link you provided also describes a GPU amenable approach, but it says that jump flooding on the GPU is faster.

> For a more efficient GPU-amenable method, see also jump flooding by Rong and Tan. Their method generates a closest point coordinate field from which a distance field can be derived.

comment 6y ago · link · parent

Ah, thanks for clarifying! I think someone already called this out above, but the benefit of the approach I describe is that you only need one sample per pixel. Four samples per pixel starts to feel pretty slow on my machine, and I suspect you'd need more than that to make the averaging approach look good.

comment 6y ago · link · parent

There are definitely more physically accurate ways to render soft shadows, but AFAIK they all involve some kind of bounce lighting where light bounces off of objects in the scene and indirectly lights other parts of it.

This looks great when combined with area light sources, like you suggest, but in my experience it's too slow for interactive demos.

I'd love to be proven wrong on this :)

comment 6y ago · link · parent

Thanks! I've learned a ton from iq's writing. He's such an inspiration!

I find that his articles are best for folks who already know a thing or two about computer graphics. Here's a post that I think is pretty good for beginners: http://jamie-wong.com/2016/07/15/ray-marching-signed-distanc...

comment 6y ago · link · parent

Thanks! I just pushed a fix. Does it work now?

comment 6y ago · link · parent

Thanks! I just pushed a fix. Does it work now?

comment 6y ago · link · parent

I just pushed something that will print more info when that error happens. If you or anyone else runs into it again, please post the error here so I can fix it :)

comment 6y ago · link · parent

Whoops, just pushed a fix! Does it work now?

comment 6y ago · link · parent

Author here. That's a neat trick!

> I mention this because the mystery of the getDistance() function is often one of the tricky parts of demos like these.

I agree! In the demos I use a library I wrote to generate 2D distance fields: https://github.com/ryankaplan/gpu-distance-field

It's also pretty fast :)

17.

Ray Marching Soft Shadows in 2D(rykap.com ↗)

172 points · by rjkaplan · 6y ago · 36 comments

comment 9y ago · link · parent

The page's domain and title are disappointing to me.

Using sexualized language can create an environment that is unduly hostile to women, even if this is not intended. Many of the biases against women that such language provokes are totally unconscious, so even if the intent is not harmful, it can be bad regardless.

More info here: http://geekfeminism.wikia.com/wiki/Sexualized_environment

Wording in this comment borrowed from here: https://github.com/alecthomas/voluptuous/issues/287

19.

Rendering math equations on the GPU(rykap.com ↗)

1 points · by rjkaplan · 9y ago · discuss

20.

Building a Fast Equation Grapher (part 1)(rykap.com ↗)

2 points · by rjkaplan · 9y ago · discuss

comment 9y ago · link · parent

Thanks! (I wrote the article and just found it here)

22.

Building a fast Equation Grapher (part 1)(rykap.com ↗)

1 points · by rjkaplan · 9y ago · discuss

comment 9y ago · link · parent

That depends on how you define progress.

Just to play devil's advocate: what if you define progress as "that stuff" that will increase the general well-being of the greatest number of people over the next 20 years? With that definition, does technology-powered automation still count as progress?

comment 10y ago · link · parent

Out of curiosity, what platform do you design for? I often make designs for web and mobile web, and I want my text to look the same in my design tool as it does on the platform I'm designing for. Since mobile devices don't support sub-pixel antialiasing, I don't want it enabled in my design tool either.

comment 10y ago · link · parent

Thanks for the report - I reproduced and fixed an issue on a Windows machine. It'd be great if you could let me know if it now works for you!

comment 10y ago · link · parent

I fixed an issue that I was able to repro on a Windows machine. It'd be great if you could try again and let me know if it now works for you!

comment 10y ago · link · parent

Yeah! It's a pretty big omission in my post that I don't talk about other methods of generating Voronoi diagrams, but I wanted to keep it relatively short.

Chris Wellons has a great article on the method that you mention: http://nullprogram.com/blog/2014/06/01/

It's also mentioned in the OpenGL red book: http://www.glprogramming.com/red/chapter14.html#name19

12