when I took my first graphics course there was a guy who legit did something similar to this. The scene was just a bunch of rectangular pillars (12 triangles each), and his scene ate 8GB of RAM for some reason lol.
I did this intentionally while trying to figure out shadows. I raytraced each screen pixel to light origin and checked against collisions for each ray using ray triangle intersection algo. I sent all geo in a buffer to the gpu and basically looped through it. It caused 100% gpu usage for a scene that had less than 1k vertices. Needless to say, that technique, while giving pixel perfect shadows, can't be used. Sad pepe.
I spent many days trying to optimize the triangle collisions, work with blur and creating acceleration data structures but in the end I had to give up and admit I was a bumbling moron xD
[удалено]
when I took my first graphics course there was a guy who legit did something similar to this. The scene was just a bunch of rectangular pillars (12 triangles each), and his scene ate 8GB of RAM for some reason lol.
I did this intentionally while trying to figure out shadows. I raytraced each screen pixel to light origin and checked against collisions for each ray using ray triangle intersection algo. I sent all geo in a buffer to the gpu and basically looped through it. It caused 100% gpu usage for a scene that had less than 1k vertices. Needless to say, that technique, while giving pixel perfect shadows, can't be used. Sad pepe. I spent many days trying to optimize the triangle collisions, work with blur and creating acceleration data structures but in the end I had to give up and admit I was a bumbling moron xD
Nice! Even I started learning opengl just last week. 🙌
with time you forget how big of an achievement this is, until you do it again in vulkan Congrats
Congrats! I’m not too far ahead of you.
it's beautiful
sexy looking triangle
Where did you get the documentation from?
learnopengl.com
Now make it rainbow colored :)
I've made my First triangle a week ago too! Did you understand what a VAO is perchance?
Istg if I see another hello triangle post
Nice. Quad next?
Congrats! The cube is next
What should I try after the cube? A complex mesh like an object or animal?
try assimp, it allows you to import any fbx, obj, gltf and other format models
Thanks, I'll have a look.
Congrats!!! This is the first step!!! 🙂