Hello, I'm planning to develop a program in Nim and have been familiarizing 
myself with the language.

I'm writing to seek guidance on an aspect that I'm struggling with. For 
context, I'm not an expert programmer and primarily use programming for 
numerical tasks (and sometimes as a hobby).

I need to graphically represent polyhedra, which involves drawing surfaces and 
edges. Since the main program will create, transform, and delete many 
polyhedra, I require a fast rendering solution to display the changes as the 
program runs. Ideally, these visual aspects should be somewhat decoupled (e.g., 
in a separate module) from the main program.

What is a good approach to achieve this in Nim? I assumed that OpenGL is what I 
need (I have zero experience with it), and I've tried using some libraries like 
Shady, NimGL, and Phosphor without success (usually due to compilation issues, 
even with their example files).

The only library I managed to get an image with (using their examples) is the 
"opengl" library, although it seems to lack available documentation. In 
summary, I need to efficiently render polyhedra and strongly prefer a simple 
code solution that can be decoupled from the complex main program.

Thank you for your time.

Reply via email to