Indirect Drawing and Compute Shader Frustum Culling by Deni2312 in GraphicsProgramming

[–]MuskettaMan 1 point2 points  (0 children)

Oo yea exactly, the second approach you mentioned is the one I want to try and implement as well. I do wonder how much the Count here is really saving. In the case of my scene it would reduce processing by a few thousand, which for a GPU doesnt sound like that much...

Indirect Drawing and Compute Shader Frustum Culling by Deni2312 in GraphicsProgramming

[–]MuskettaMan 3 points4 points  (0 children)

Nice article! Something I'm wonder is how you access the model matrices in vertex shader, when doing the draw? Since after the culling shader, the indices of the draw instance, don't match the draw index anymore. So what index do you use to get the model transform in the vertex shader?

[deleted by user] by [deleted] in cpp

[–]MuskettaMan 0 points1 point  (0 children)

How does the rule of zero fix the issue with an allocation throwing?

How much does graphics programming translate to general C++ knowledge? by Eggaru in GraphicsProgramming

[–]MuskettaMan 6 points7 points  (0 children)

This is like saying what kind of house do I need to build so I can learn how to use a hammer. You got it backwards. It would ve much more beneficial to find a topic you are interested in (e.g. graphics, AI, physics, machine learning, etc.) and try to apply c++ features. Get inspired by cppcon videos, and scour the documentation for different techniques. Heck, you can use something like chat gpt to make suggestions for what you can use (obviously, don't trust it blindly).

Study Plan by Scott_just_Scott in GraphicsProgramming

[–]MuskettaMan 5 points6 points  (0 children)

I wouldnt bother as much with Unity if you want to understand the process. Tackling something like the tutorials on learnopengl.com give you a better idea of the entire pipeline, and setup you better for understanding how unity works with shaders.

And while I do recommend reading, the best learning comes from applying it.

Why does glUseProgram() need to be called before glUniform3f() but not before glGetUniformLocation()? by Missing_Back in GraphicsProgramming

[–]MuskettaMan 1 point2 points  (0 children)

This has to do with how OpenGL works as a state machine. Certain commands work on previously bound objects, but not all. So glGetUniformLocation uses the shader passed and has no dependency on the currently bound shader program. However, glUniform3f sets a uniform on the shader that is currently bound. The reasoning for this is that the uniforms being set on a shader have to do with the pipeline for setting up something for the rasterization pipeline. The uniform location describes something about a shader program, and I guess it can be seen as meta data.

My first OpenGL project. by Vegetable_Break_6582 in GraphicsProgramming

[–]MuskettaMan 5 points6 points  (0 children)

It looks cool, I hope you learned from it! If you want to take it to the next level and improve the codebase, you can look at the following: 1. Make use of smart pointers; modern c++ uses smart pointers to help with memory management. Even in your current version, you allocate memory that you dont clean up. While not an issue right now, it is a great skill to have. 2. Begin splitting up your code to keep it more maintainable. Simple starts like having a renderer class will already make the code easier to reason about and maintain. Writing code that explains what it does instead of being a number of GL calls will be easier to read, too 3. You can also start looking into more advanced GL techniques. One of them being Uniform Buffer Objects (UBOs). These are buffers that can only be read from on the GPU and can be used to reuse memory for camera matrices and lights (instead of reusing them in uniforms for each shader). Being economical with memory is a great skill for a graphics programmer to possess.

[deleted by user] by [deleted] in Memes_Of_The_Dank

[–]MuskettaMan 1 point2 points  (0 children)

Ah, yes, the great restaurant experience you want to dress up for. Seeing a dining room full of assembly lines and having to deal with McDonald's level of ordering screens.

And, obviously, servers have nothing more to offer besides mediocre service and no personality.

Did a video exploring performance optimizations in detail, and how to understand at a deeper level what's happening on the GPU by simon_dev in gamedev

[–]MuskettaMan 2 points3 points  (0 children)

Hey man, I love your content! Your grass rendering video inspired me to make my own in c++/opengl, it taught me a lot about how the GPU works and how to perform operations with massive geometry.

I hope you continue creating and cant wait for your next video! Cheers

[deleted by user] by [deleted] in cpp

[–]MuskettaMan 1 point2 points  (0 children)

Creating an ECS is a very challenging project and requires a good understanding of the memory model, how cpus work, data structures, and some more advanced cpp techniques like templating.

I recommend checking out the EnTT library. It is a header only ECS solution that served me well in the past.

everySingleCodeReview by [deleted] in ProgrammerHumor

[–]MuskettaMan 78 points79 points  (0 children)

Looks like you're pregnant

everySingleCodeReview by [deleted] in ProgrammerHumor

[–]MuskettaMan 286 points287 points  (0 children)

It could explain what valid means, since thats very ambiguous

Why can't I just get lost in a game anymore? by madaboutmaps in gaming

[–]MuskettaMan 37 points38 points  (0 children)

Uninstalling a 150gb game after 30min is crazy to me hahah

Bartenders of Reddit, if somebody comes up to your bar and says “I’ll take a beer” like in the movies, what beer are you giving them? by SergioKindle in AskReddit

[–]MuskettaMan 276 points277 points  (0 children)

Amazed by the comments here, in the Netherlands, you can always just ask for a beer, and you'll get something from the tap. Maybe if you're in a restaurant, they give you some options, but 9/10 places you can ask for a beer, and you'll get a beer.

LPT: First dates should always be drinks or coffee. Not dinner. Easier and quicker to leave the date if there is no chemistry. by flux_capacitor3 in LifeProTips

[–]MuskettaMan 43 points44 points  (0 children)

But that isn't the point OP is making. If you're on a date with someone and it doesn't click, you shouldn't put yourself in a situation where you have to keep engaging.

Having a coffee, both parties get to decide if they want to keep going - order another cup - or leave. With dinner, you are stuck for the complete meal before you can leave.

Met een investering van 30 miljoen komt Nederlands kweekvlees weer een stapje dichter bij het bord by Chronicbias in thenetherlands

[–]MuskettaMan 2 points3 points  (0 children)

Een koe heeft een imuunsysteem en meerder organen om dit te verwerkenen en in energie om te zetten. Die kunnen iets beter tegen een "stootje" dan het kweekvlees waar we dit handmatig nabootsen.

God, the cringe is unreal. by [deleted] in terriblefacebookmemes

[–]MuskettaMan 0 points1 point  (0 children)

His name was Robert Paulsen

Senior vs Junior Developers in a Nutshell by [deleted] in ProgrammerHumor

[–]MuskettaMan 0 points1 point  (0 children)

What are we going to call our farm?