For a vision research experiment, I have a monitor that supports 10bit/channel (=30bit color). I want to render a triangle mesh in a simple scene that uses the full bit depth, and I want to save this rendering as a .png file. The rendering is just for single, static images, and doesn't need to happen lightning fast.
For the triangle mesh, I have:
- List of vertices in xyz coordinates
- List of triangles containing the indices of the vertices
- List of the vertex normals
- List of the triangle/face normals
My hardware includes (possibly irrelevant)
- Dell UP3218K monitor - 8k and 10bits/channel
- GeForce RTX 2080 Super (but can get a better one if needed)
I tried using the pyrender library, but it outputs the rendered scene as uint8 (limiting it to 8bit).
I can't find any code examples of OpenGL or PyOpenGL rendering meshes at 10bits or higher. With the increasing popularity of >8bit monitors, surely this is possible?
What can I use to render a mesh at 10 bit/channel depth?