r/GraphicsProgramming • • Jul 15 '24

Unity or OpenGL

I want to get into graphics programming. I know the math and am experienced with programming. I now want to get into Computer Graphics. Which is better to learn CG concepts, Unity or OpenGL?

0 Upvotes

9 comments sorted by

View all comments

11

u/msqrt Jul 15 '24

Depends on what exactly you want to learn. If it's more on the math/theory side, Unity might be better as it lets you easily visualize things and focus on the concepts, but OpenGL will give you more of the programming side of things with handling buffers and such yourself. There are other options too, like writing your own software rasterizer (if you want to really know the full pipeline from .obj to pixel), or WebGPU which is a pretty nice new API -- there aren't as many resources available, but the API itself is quite a nice combo of a more modern design without going extremely verbose and low-level.