learn-wgpu icon indicating copy to clipboard operation
learn-wgpu copied to clipboard

Antialiased circle/rectangle

Open madmaxio opened this issue 2 years ago • 10 comments

Would you mind adding example for drawing antialiased circle/rectangle? It's interesting to see the approach.

madmaxio avatar Jun 25 '22 15:06 madmaxio

Are you talking about vector type graphics, or simply enabling multi-sampling?

sotrh avatar Jul 02 '22 17:07 sotrh

I mean just drawing it with primitives, I found some examples from opengl/metal etc, they all say about smoothstep function. So it is about using primitves + smoothstep.

madmaxio avatar Jul 02 '22 20:07 madmaxio

Here is an example of what I'm talking about, absolutelly briliant article imho, but it is about metal. But the content is exactly the same - primitive basics. https://www.warp.dev/blog/how-to-draw-styled-rectangles-using-the-gpu-and-metal

madmaxio avatar Jul 02 '22 20:07 madmaxio

Yeah I could probably do something like that with the signed distance field example I've been thinking of doing.

sotrh avatar Jul 22 '22 17:07 sotrh

@sotrh I also need some wgpu related consulting on a payment basis, can you be up for this?

madmaxio avatar Aug 06 '22 15:08 madmaxio

@madmaxio what did you have in mind?

sotrh avatar Aug 06 '22 20:08 sotrh

@sotrh I need to load and render a couple of gltf models with wgpu. So far I only succeeded with basic cube model. And also make a correct camera implementation.

madmaxio avatar Aug 06 '22 20:08 madmaxio

What do you mean by "correct camera implementation"? Also is there a better way I can contact you?

sotrh avatar Aug 07 '22 01:08 sotrh

@sotrh Discord maximb 5928, or, drop your contacts.

madmaxio avatar Aug 07 '22 07:08 madmaxio

I sent you a friend request.

sotrh avatar Aug 31 '22 01:08 sotrh