Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does anyone have a good solid modern guide or pointers on making easy 3D stuff in text/CLI mode (not x-windows, etc), and hopefully using a convenient library? I'm trying to make a simple fast-booting instrumentation display.

I picked up a Pi zero and muddled my way through what I could in C/C++ from piecemeal guides, and from text boot mode managed to initiate a graphics mode and draw a spinning triangle. Think I threw darts at the board for linking libraries in the compilation.

I have no idea what I'm doing, and of course, the level of scaffolding that had to be put into a simple spinning triangle was just astounding. My prior experience was using three.js and BabylonJS, and poorly. Is there something convenient to use library-wise in text mode, or is a safer bet doing windows -> firefox -> three.js?



If you’re OK with .NET, you can try my library: https://github.com/Const-me/Vrmac/ The library supports both X windows, and bare OS kernel DRM/KMS.

Spinning textured cube: https://github.com/Const-me/Vrmac/tree/master/RenderSamples/...

Spinning teapot with lightning, inertia, mouse and keyboard input, etc: https://github.com/Const-me/Vrmac/tree/master/RenderSamples/...

Dependencies: https://github.com/Const-me/Vrmac/blob/master/Installation.m...


Thanks kindly, will take a look.


BTW, that thing also supports Windows 10. The same .NET binary runs on top of Direct3D 12 there, instead of GLES 3.1.

Way easier to debug on Windows, because visual studio and renderdoc. There’re a few incompatibilities but these are minor. Here’s one example, in a vertex shader: https://github.com/Const-me/Vrmac/blob/master/RenderSamples/...


ImGui [0]

Immediate-mode UIs are by far the easiest for quick and dirty work. Near trivial to get stuff up on screen you can interact with.

[0] https://github.com/ocornut/imgui


Thanks for the pointer, will check it out.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: