How do I implement a Camera Class in C# Forms?
I'm trying to project a 3D Mesh of 2D Noise, but I want to include a camera class which will allow me to apply more advanced optimisation like Back Face Culling. But unfortunately, I'm not an expert on vectors and the subject. I just can't visualise how or even begin, any tips are welcome 🙏
4 Replies
Well, either find and use a library, or learn linear algebra
look up 3b1b linear algebra
that should get you started
Silk.Net has nice bindings for GPU stuff, so you could start there: https://dotnet.github.io/Silk.NET/docs/opengl/c1/1-hello-window/
Hello Window | Silk.NET
[!NOTE]
Thank you that is actually very useful
Sorry i forget to mention, im making it using only the C# built in Graphics so the ones that run on the cpu
WPF has a basic directx 3D api out of the box along with simple Camera class
https://learn.microsoft.com/en-us/dotnet/desktop/wpf/graphics-multimedia/3-d-graphics-overview?view=netframeworkdesktop-4.8