nodebox-opengl icon indicating copy to clipboard operation
nodebox-opengl copied to clipboard

Trying to adapt the code to Python3+

Open Torxed opened this issue 9 years ago • 0 comments

This is a WIP copy of a version that is working in the sense that it's able to install and run a basic examples (without desired results?):

Preview image

Would love to see this merged into a new branch of the official repo. I'm well aware that some of these conversions breaks backwards compability.

  • the canvas = Canvas() definition in ./nodebox/graphics/__init__.py confused me a bit, couldn't get it to go global in Python3 so i just created a wrapper function that returns it from the local scope whenever called.
  • the def draw() function doesn't appear to actually draw anything, haven't really started to learn the library yet since i spent most of the day just converting old broken Py2.6 code up to speed. (not done yet perhaps).

Files modified in short:

nodebox-opengl-master\nodebox\ext\psyco\
    core.py
    kdictproxy.py
    profiler.py
    support.py
    __init__.py
nodebox-opengl-master\nodebox\graphics
    beizer.py
    context.py
    geometry.py
    physics.py
    shader.py
nodebox-opengl-master\nodebox\gui
    controls.py
nodebox-opengl-master\nodebox\sound
    osc.py
    process.py

Torxed avatar Apr 12 '16 14:04 Torxed