tinyrenderer
NGL
tinyrenderer | NGL | |
---|---|---|
61 | 13 | |
19,389 | 87 | |
- | - | |
0.0 | 8.1 | |
6 months ago | 15 days ago | |
C++ | C++ | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tinyrenderer
-
How to Become a Software Engineer ?
C++: How OpenGL works: software rendering in 500 lines of code
-
From scratch OpenGL and shaders with raw Xlib
I don’t think that exists (I sure would like for it to), but until it does you could amuse yourself with:
- A 500-line (non-OpenGL-compatible) 3D rasterizer: https://github.com/ssloy/tinyrenderer/wiki.
- A “hello Wayland” app written in C without libwayland or anything else: https://gaultier.github.io/blog/wayland_from_scratch.html.
- A “hello X11” app written in x86-64 assembly(!) without libX11, libxcb, or anything else: https://gaultier.github.io/blog/x11_x64.html.
-
Tiny Compiler – Writing a Compiler in a Weekend
the tinyrenderer[1] project has been on my todos forever now. glad to see the author is writing more self-paced programming projects.
[1]: https://github.com/ssloy/tinyrenderer
-
Is there space in this field for extreme cases like mine ?
- Game development - Unity3D project based learning in C#: https://learn.unity.com/ - Graphics - There was another user on r/GraphicsProgramming the other day (who teaches Computer Graphics at his university) that linked their lecture series for the entry year of their course here: https://tamats.com/learn/realtime-graphics/ - Project based learning: https://github.com/ssloy/tinyrenderer/wiki - Rendering API tutorials: https://vulkan-tutorial.com/, https://learnopengl.com/
-
How do I become a graphics programmer? – A guide from AMD Game Engineering team
There are a couple of excellent resources out there for implementing 3D rendering from scratch.
On that I cannot recommend enough is this github repo:
https://github.com/ssloy/tinyrenderer/wiki/Lesson-0:-getting...
If you are more of a visual learner, this guy is also a treasure trove:
https://www.youtube.com/watch?v=ih20l3pJoeU
-
Ask HN: What books or courses do you know similar to "From Nand to Tetris"?
Other people have mentioned ray-tracing in one weekend
If anyone is really interested in graphics I would also recommend TinyRenderer
https://github.com/ssloy/tinyrenderer/wiki
This one is a CPU-based rasterizing renderer
Its good if you want to get a good understanding of what a GPU does underneath
-
Trying to learn wgpu
I was in a similar position to you, and I first did this https://github.com/ssloy/tinyrenderer/wiki
- Where do I start learning graphics programming?
-
Recommendation for graphics experimentation project
Yes, my thoughts exactly, shader!=program on GPU. It's just a code which calculates pixel color or pixel position. See for example this: https://github.com/ssloy/tinyrenderer/blob/master/main.cpp. It's not GLSL or anything uploadable to GPU yet it's still a shader.
-
I have a few months to prepare for an interview. Is there a project that would get me at least part of the way there for the interview?
In terms of a project which would be worthwhile, I think building a software rasterizer from scratch is a useful first step. TinyRenderer is a great place to start. Looking at the high level overview of many graphics subjects, ScratchAPixel is a valuable resource. Theres also just great information in some of the rote graphics programming textbooks (Michael Abrash's Black Book fully available online from Jason Gregory, and this book is really interesting). The "RayTracer in a weekend" series is also (seemingly) very illuminating (no pun intended).
NGL
-
Understanding OpenGL setup & compilation on Windows
I have a number of instructions on my Github pages here https://github.com/NCCA/NGL/blob/main/Windows.md whilst aimed at my own library the first part about installing Visual Studio and the basic setup will help.
-
How objects lifetime should be managed by library?
code here https://github.com/NCCA/NGL
-
How to deal with MSVC in DevOps
My Windows build is here https://github.com/NCCA/NGL/blob/main/.github/workflows/windows.yml I use vcpkg for installing 3rd party libs and the msvc-dev command from here https://github.com/ilammy/msvc-dev-cmd
-
I have spent two whole work days trying to install GLEW
Also I have just done an experimental version of my code that uses WSL2 (which supports graphics). You could try that. https://github.com/NCCA/NGL/blob/NewShaderLib/WSL.md
-
An OpenGL Renderer
I also have a ShaderLib class that does similar stuff keeping everything in a static map (used to be a singleton class). Been using it for teaching for a number of years you can see it here https://github.com/NCCA/NGL
-
4 hours of my .obj parser so far 😭
There are loads of edge cases and gotcha's as well. I have a full(ish) parser here with unit tests if it helps. (Note I use pystring to do the string processing). https://github.com/NCCA/NGL/blob/main/src/Obj.cpp unit tests here https://github.com/NCCA/NGL/blob/main/tests/ObjTests.cpp. May give you some ideas.
-
C++ library management absolutely sucks!
I use glfw in a number of projects here are my instructions for building my library https://github.com/NCCA/NGL/blob/main/Windows.md You should be able to use the bits you need from here to setup vcpkg etc. I suggest using the free Visual Studio community edition and installing most of the tools you need from there. After that install vcpkg and setup the paths required. (see my notes).
-
I am 13 I think I'm finished learning intermediate C++ whats next?
The one I use in my teaching is here. https://github.com/NCCA/NGL it also includes Math / Vec class which you may not need if you use something like GLM. Also this uses TDD so get into writing unit tests as part of it.
-
Smart pointers question
typically I just have classes with static factory methods to keep things together, usually with a std::unordered_map s_things; so I can create by name. This is an example for an OpenGL Vertex Array Object https://github.com/NCCA/NGL/blob/master/include/ngl/VAOFactory.h
-
GLFW Creating a VAO/VBO Class
I have several using a Factory design pattern here https://github.com/NCCA/NGL Checkout https://github.com/NCCA/NGL/blob/master/include/ngl/AbstractVAO.h for the basic structure, then I have different versions depending upon context and usage.
What are some alternatives?
sokol - minimal cross-platform standalone C headers
RayTracer - A ray tracing program
raylib - A simple and easy-to-use library to enjoy videogames programming
msvc-dev-cmd - GitHub Action to setup Developer Command Prompt for Microsoft Visual C++
BodySlide-and-Outfit-Studio - BodySlide and Outfit Studio, a tool to convert, create, and customize outfits and bodies for Bethesda games.
GLFW-CMake-starter - Use CMake to create a project with GLFW - Multi-platform Windows, Linux and MacOS.
deko3d - Homebrew low level graphics API for Nintendo Switch (Nvidia Tegra X1)
opengl_renderer
Pangolin - Pangolin is a lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input.
NCCABoilerplate - A set of Boilerplate projects for most of the work we do
3d-game-shaders-for-beginners - 🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
ninja - a small build system with a focus on speed