r/GraphicsProgramming • u/How_do_I_change_IP • Jan 19 '22
Question It is so boring
Look I've seen the stuff on shadertoy and youtube. Damn it is so cool. For some background I am a CS major in my third year. I've taken linear algebra in preparation. I bought a VR and have learned about unity (even some of their shader stuff) on my own as preparation for making cool VR graphics (that's what I'd like to do). I have been wanting to do graphics since high-school (and have done some minor studying). I am taking a graphics class this quarter, and god damn it is... boring. I'm wondering if you guys had any similar experiences; we're learning about lines and shapes and pixels and dear fuck it sucks. I'm wondering if this is like the Mr. Miyagi "washing the car" type shit. I am struggling to read the textbook or listen to the lectures because it is near the most uninteresting thing I have learned in my CS schooling yet! I can see how people could make cool things even with these basic concepts, but it is presented so terribly.
TLDR: Basically, when does it get interesting? Does this mean graphics programming isn't for me or should I Stick with it? Did you have similar experiences?
2
u/hotbf Jan 25 '22
it's not you. programming is made unnecessarily obtuse and overly complex, by men that got bullied and now they subconsciously gatekeep others from their smarty boys club
2
u/How_do_I_change_IP Jan 25 '22
Yeah. I totally disagree. I think I just need to learn the boring stuff before I can get to the interesting stuff. Like many good things
10
u/shadergremlin Jan 19 '22
Learning the basics of a graphics API and the rendering pipeline can be very dry and boring. However, once you get past that, you can start doing the fun stuff like implementing a rendering technique or writing a cloth simulator. Also shadertoy is pretty straightforward, so you could probably try making your own shaders on there if you are looking for some ‘fun’ graphics to do.
7
u/the_Demongod Jan 19 '22
The stuff you're learning in the class is critical background knowledge. Your class probably won't actually teach you how to write modern graphics, that much takes a bunch of practice outside of class. The course is giving you background knowledge that will make it easy to charge ahead on your own and actually learn the complicated graphics APIs that let you whip up high-performance graphics quickly.
6
u/falaeco09 Jan 19 '22
If you just started the semester, you need to give it some time. The first 2-3 weeks of my computer graphics class was a lot of boiler plate code, drawing triangles and points, and understanding what it does. You'll eventually get to a part where you can load and manipulate 3D objects, experiment with texture and write shaders for realistic illumination and casting shadows. You might even build your own ray tracer, who knows? So to answer your question, I believe you should complete the class to get the bigger picture. If you don't enjoy it at all after that, then you can always make use of a game engine to focus on what you consider more fun.
6
u/camilo16 Jan 19 '22
90% of graphics programming is very dull and dry, which I guess can be defined as boring (source I do this thing for a living), I cannot say if it is or isn't for you, but expect lots of learning pedantic low level shenanigans most people don;t care about, bugs that take hours to figure out and ours of work for marginal gains on performance.
The only Positive part is the math you learn along the way
5
u/jtsiomb Jan 19 '22
I can't relate. I was entranced from the first time I saw a pixel show up on my screen. And no matter how simple any thing I made was, it always seemed the best thing I had ever seen. I distinctly remember the first time I drew a bezier curve, the first time I managed to rotate 3D dots, first wireframe cube, first gouraud triangle. All these looked miraculous to me.
4
u/metaquine Jan 19 '22
learn the fundamentals. see how many giants your latest whiz-bang framework is standing on.
3
u/pattrikk Jan 19 '22
This probably won't help you with your course but these are short introductions to classical OpenGL-like rendering and raytracing.
You implement almost everything yourself, get results quickly and learn some background information about what your GPU actually does.
3
u/corysama Jan 19 '22 edited Jan 19 '22
If you are learning how to draw lines and shapes by putting individual pixels, you might be in a class that is about 30 years out of date. For example: Mentioning Bresenham's is fine. But, if you actually had to implement it yourself, or similar algos for drawing circles and other shapes, then the class is wasting time. Even if you really did want to draw those shapes on a modern CPU without using a GPU, those algos are way out of date, slower, lower quality, less capable and more complicated than block-evaluating pixel coverage with a SIMD-based approach.
You need to understand pixels from the POV of sampling theory.
You need to understand how to draw a triangle with coverage, depth and barycentrics using both rasterization and ray-tracing.
You need to understand how to convert barycentrics to other properties, like UV coordinates.
You need to understand texture sampling
You need to understand MSAA and resolve filters.
You need to understand GPU architecture under the hood.
You are now caught up with what the GPU is doing for you and ready to move on to what you have to do yourself.
Learn about gamma encoding and tone mapping.
Learn lighting and materials
I don't have a good reference on-hand for implementing animation. Anyone?
Go learn on your own at this point! :P https://graphicscodex.courses.nvidia.com/app.html
2
u/Bilbo_85 Jan 19 '22
I'm also in my third year doing graphics this semester for the first time. Check out some of the shaders made by this guy https://www.reddit.com/user/evvvvil/ . Really inspiring, being able to write shaders like that one day is more than enough reason to keep going, even with all of the boring bits.
2
u/HabemusAdDomino Jan 19 '22
Lol, come do the job, it's 90 percent boring and 10 percent incredible.
3
u/the-last-willy Jan 19 '22
There are multiple things here and I don't know which one you're referring to.
- For example, there is the difference between liking to play games and liking to make games (I'm aware we're talking about CG and not gamedev however this applies to basically any field). I am under the impression that this is not the issue here as you seem to have gotten your hands dirty to some extent.
- Then there is the abstraction level you're working at. This is where I don't agree with other comments. You don't have to start with low level graphics API or understand how the rasterizer works to get into get into CG. As you said you can also do computer graphics stuff just fine with high level engines (Unity, Unreal) or graph tools (shader graphs, geometry nodes, substance model graph, ...). I mean that's what VFX artists and tech artists do (notice the word "artist", not "programmer" even though they have technical knowledge). Making the argument that you have to start with low level stuff is just ridiculous gatekeeping.
- Then there is university. The approach taken there is usually bottom-up and historical. If it doesn't match with how you prefer to learn, well, tough luck... I just can't comment on your experience on this side because a good teacher can make anything interesting and, conversely, a bad one will make anything you find interesting painful. Perhaps you just don't have the right teacher.
In my case I'm almost done with my master's degree in computer graphics and it was hell for me. Either the class was boring because I didn't wait to learn whatever we learned and I was way ahead so it was just a waste of time; or it was a class I had little interest in and I wasted most of my time working on it instead of doing more interesting stuff.
To answer your question: If you find whatever you're doing on your free time interesting then I wouldn't worry too much about it. University is just what it is: boring. You need to power though it. Don't let it get to you. Keep working on what interests you in your free time. Eventually you'll get to the good stuff (or find a job that fits your interests).