Graphics twitter, can anybody point me in the direction of generating the intersecting shape of two 2D shapes? I don't mean just detecting if two shapes intersect, but generating the intersection in the sense of constructive solid geometry.
The problem with these kinds of operations in general is that is gets in the way of draw order. There is a feature in Vulkan and OpenGL|ES that I might be able to leverage (pixel local storage) to do this without changing my draw order, but I'm yet uncertain. Need to try it.
-
-
regarding draw order, I'm not just drawing one of these intersecting shapes. I'm drawing many, and they are batched by material.
Kiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
-
-
The alpha trick works regardless of draw order i think. You just need a separate render target large enough to cover the maximum extent and you can blit from that render target in a subsequent draw. (Just making sure I’m coming up with all the dumb tricks first)
-
Right. I've already exhausted this option because of memory constraints and a concern over FBO switch costs. I can't have an FBO for every one of these things.
- Näytä vastaukset
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.