r/GraphicsProgramming • u/rh12503 • Oct 04 '20
Efficient methods to rasterize a scene of connected triangles
5
u/Botondar Oct 04 '20
I don't really understand the question. Triangle rasterization is something that GPUs have been continuously optimizing ever since they first came into existence. Unless you're trying to render billions of triangles no GPU will have a problem with this. You don't even need to know the exact method since the rasterization happens in a fixed function stage that you don't have much control over.
So basically using any graphics API with a simple vertex and pixel shader should suffice.
5
u/NegativeEntr0py Oct 04 '20
GPUs are literally designed to do what you’re asking. And with only a handful of triangles any way you do it (OpenGL, DirectX, Vulkan) will be extremely efficient. Just simple graphics programming stuff, although I can admit getting the application running has a lot of boilerplate code.
3
u/HighRelevancy Oct 04 '20
What's the context of this question? Why are you asking it? What are you trying to achieve?

3
u/ShillingAintEZ Oct 04 '20
What have you tried so far? Anything will work, including early 90s opengl.