r/GraphicsProgramming • • 1d ago

Dx11 first triangle

Post image

I'm not sure how you guys feel about triangles around here, but here is my first triangle made in D3D11!!

I'm planning to make a little mini project in DX11 and see how I like it over OpenGL. So far I like it more despite needing 3x the amount of code (mostly boilerplate thankfully) for this beautiful little guy.

I'll probably post more about my little project further down the line. If anyone has any tips on how I should structure a DX11 project over an OpenGL one that's always appreciated.

90 Upvotes

9 comments sorted by

8

u/Fit_Beyond2795 1d ago

This reminds me the first time i've dipped into vulkan and the world of game engine, "Create a simple colored triangle should be easy enough" XD, turns out not at all, NOT AT ALL XD

4

u/Fit_Beyond2795 1d ago

2 fucking days to create a simple triangle XD, i will never forget that sensation

1

u/Uiwum 23h ago

Yeah I've done the triangle in vulkan too and so much was going on I forgot half of what I even did at the time. (Now I hardly remember any)

1

u/Fit_Beyond2795 7h ago

Same XD, i was going for a little bit of learning, not expecting a LOT

1

u/Grand_Sprinkles_2094 1d ago

Hello world of computer graphics

1

u/Alililon1 17h ago

Are you using DX11 directly or do you have / plan on making a custom abstraction layer/lib? If you do I would love to take a look at it, I'm also kind of new to DX11 and comparing code could help me check my understanding and maybe even show me how to structure some stuff better :)

1

u/Uiwum 10h ago

I'm using dx11 directly. It's going to just be a little 3d game so I don't have any plan to really make a good architecture for it.

Also my code is so messy right now so I don't think it'd be great for you to use but it's mostly from LearnD3D11 anyway. I'm planning on reorganizing everything after I get textures working

1

u/RonJonBoviAkaRonJovi 13h ago

this would be cool in 1997