Live data from Hacker News

Python and OpenGL for Scientific Visualization

labri.fr

21–28 of 28 posts

Re: Python and OpenGL for Scientific Visualization

#21
post #8

Is it down? I cannot access it.

You can clone the Github repo and then run a local webserver to access it at localhost:8000/book.html (there is a `make.sh` build script, but the repo already contains the produced HTML).

You can also fork the repo, enable Github Pages, and then access it at yourgithubname.github.io/python-opengl/book.html

I just made a Github issue suggesting to the author, if he's not opposed to using Github pages himself: https://github.com/rougier/python-opengl/issues/38

Re: Python and OpenGL for Scientific Visualization

#22
post #21
post #8

Is it down? I cannot access it.

You can clone the Github repo and then run a local webserver to access it at localhost:8000/book.html (there is a `make.sh` build script, but the repo already contains the produced HTML). You can also fork the repo, enable Github Pages, and then access it at yourgithubname.github.io/python-opengl/book.html I just made a Github issue suggesting to the author, if he's not opposed to using Github pages himself: https://…

Thanks, I'll look into that and it would make sense t ohost it on github.

Re: Python and OpenGL for Scientific Visualization

#25

Why is GLUT deprecated? This and just about every other tutorial I've seen uses it. Since it's deprecated, is there something else I should be using?

There's nothing horribly wrong with using GLUT; it's just a badly designed library (lack of a context parameter on callbacks requiring use of globals, tons of missing functionality). GLFW is the "spiritual successor" to GLUT and is generally preferred nowadays. SDL2 is also a fine alternative.

Re: Python and OpenGL for Scientific Visualization

#26

Why is GLUT deprecated? This and just about every other tutorial I've seen uses it. Since it's deprecated, is there something else I should be using?

The original GLUT has been abandoned two decades ago, it seems. Freeglut, a drop in replacement still seems to get regular updates and releases.

Alternatives that come to my mind are GLFW and SDL and you can also grab ImGUI for a nice, easy to use UI library that covers simpler use cases very well. They all deviate from how you use GLUT, but they aren't substantially harder to use.

Re: Python and OpenGL for Scientific Visualization

#28
post #18

I remember this domain/author name from his fantastic Matplotlib tutorial a few years back, which is still the best matplotlib tutorial I've seen in the wild, and made me realize matplotlib could be as viable as ggplot2 for good data viz: https://github.com/rougier/matplotlib-tutorial

Jesus, I've just realized it's the author of the best numpy tutorial I've ever read! https://www.labri.fr/perso/nrougier/from-python-to-numpy/
Post reply on HN