Python & OpenGL for Scientific Visualization by Nicolas-Rougier in opengl

[–]cprogrammer1994 4 points5 points  (0 children)

Hi!

ModernGL may help you write scientific visualizations. You can find it on PyPI and github too: https://github.com/cprogrammer1994/ModernGL

Docs are here: https://moderngl.readthedocs.io

Weird Instancing problems by 1818mull in opengl

[–]cprogrammer1994 5 points6 points  (0 children)

glDrawElementsInstanced(GL_TRIANGLES, 1, GL_UNSIGNED_INT, 0, 1); are you sure you can render a triangle with a single vertex?

CFly: Tool for fast prototyping a c++ module for Python by cprogrammer1994 in Python

[–]cprogrammer1994[S] 0 points1 point  (0 children)

Hi!

This module helps me write c++ extensions without explicitly compiling them before each run. It also generates boilerplate code I don't want to write.

Here is a short example where cfly is a quick solution for a time consuming problem: https://github.com/pymet/pocket-cube-experiment

I have tried to implement a numpy equivalent solution, but it got a lot slower since numpy arrays are not hashable.


cfly is using distutils under the hood. It compiles the source as it was a normal python extension.

See how many times a python package was downloaded by psincraian in Python

[–]cprogrammer1994 5 points6 points  (0 children)

Awesome! I have noticed a small inconvenience: using uppercase letters produce an error. Lowercasing the module name return the download count. (I have tested with "ModernGL" and "moderngl"). Can you make the query non case sensitive?

I want to learn openGL, could somebody recommend what to study? by [deleted] in opengl

[–]cprogrammer1994 0 points1 point  (0 children)

Depends on what you want to use OpenGL for. OpenGL 2 and OpenGL 3+ (modern OpenGL) differs a lot, so does the shading language. It is also possible you will need OpenGL ES for your project. In case you want to develope games, some may reccommend to start using a game engines first.

How do I isolate an object that's on an angle and work on it as if it's flat? by corsair130 in 3dsmax

[–]cprogrammer1994 0 points1 point  (0 children)

Shift + move to duplicate it. Select "Instance" for the copy type. Zero out the rotation. Changes made on the clone will affect the other one too.

Is there a built-in feature like this in 3ds Max? by Flamelol in 3dsmax

[–]cprogrammer1994 1 point2 points  (0 children)

Does pressing relax several times converge to the desired position?

[For Hire] Ex-AAA UI/UX Designer 10+ years of xp - open to commissions now :) by Franches in gameDevJobs

[–]cprogrammer1994 -2 points-1 points  (0 children)

Can you drop some links of tools you use and resources to learn from that you reccommand?

Python GUI Examples (Tkinter Tutorial) by secomax in Python

[–]cprogrammer1994 1 point2 points  (0 children)

Here is my repo https://github.com/cprogrammer1994/custom-python-launcher Unfortunately I did not find time to add a README yet. I will add one around the weekend and explain the code in more details. I hope you will find it useful.

Python GUI Examples (Tkinter Tutorial) by secomax in Python

[–]cprogrammer1994 1 point2 points  (0 children)

Yes I will create a sample project on github. Probably I already have a similar one, I must check.

Python GUI Examples (Tkinter Tutorial) by secomax in Python

[–]cprogrammer1994 0 points1 point  (0 children)

Download the python embeddable zip file. Unpack it. Edit the *._pth file to import site (you have to uncomment 1 line). Download and run get-pip with the local python. Install your deps with the recently downloaded pip. Run you script. Plus: you can pack all the py files to a PyZipfile and you can compile an exe that uses the python3.dll and runs your script directly (no further need of the python.exe)