Giter Club home page Giter Club logo

Comments (7)

bmarien avatar bmarien commented on May 13, 2024 1

What about linux?

from tsugite.

 avatar commented on May 13, 2024 1

@bart9h, @DanielJoyce, @bmarien

The problem was the hardcoded backslashes in the paths. I have replaced them to os.sep. I have sent a pull request with these changes. If you want to try it, you can use my fork too. Still there are problems for me but I am sure those are not because of my system (blackPanther OS Linux). I think the authors have some fixes for this just they did not uploaded them here yet.

@hudbrog
Unfortunately I don't know mac but which are those opengl extensions? Could you show us error messages?

from tsugite.

DanielJoyce avatar DanielJoyce commented on May 13, 2024

Probably has some hardcoded path name assumptions.

from tsugite.

hudbrog avatar hudbrog commented on May 13, 2024

Sadly, won't work on mac os. Requires some opengl extensions mac doesn't provide =(

from tsugite.

hudbrog avatar hudbrog commented on May 13, 2024

@hmikihth there are a few issues with using it on MacOS. First one, is that by default mac provides a 'legacy' profile that only supports opengl2. You can enable 'core profile' that supports more modern versions of opengl. After that - a small issue with how vertex arrays are initialized which can be fixed easily enough as well, here are the diffs:

diff --git a/setup/Buffer.py b/setup/Buffer.py
index 04f8070..ff2d002 100644
--- a/setup/Buffer.py
+++ b/setup/Buffer.py
@@ -14,6 +14,8 @@ class Buffer:
         self.parent = parent
         self.VBO = glGenBuffers(1)
         glBindBuffer(GL_ARRAY_BUFFER, self.VBO)
+        self.VAO = glGenVertexArrays(1)
+        glBindVertexArray(self.VAO)
         self.EBO = glGenBuffers(1)
         glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, self.EBO)
         self.vertex_no_info = 8
diff --git a/setup/Tsugite_app.py b/setup/Tsugite_app.py
index 50f5418..e415347 100644
--- a/setup/Tsugite_app.py
+++ b/setup/Tsugite_app.py
@@ -43,8 +43,12 @@ def get_untitled_filename(name,ext,sep):

 class GLWidget(QGLWidget):
     def __init__(self, parent=None):
+        glformat = QGLFormat()
+        glformat.setVersion(3,3)
+        glformat.setProfile(QGLFormat.CoreProfile)
+        # glformat.setSampleBuffers(True)
         self.parent = parent
-        QGLWidget.__init__(self, parent)
+        QGLWidget.__init__(self, glformat, parent)
         self.setMinimumSize(800, 800)
         self.setMouseTracking(True)
         self.click_time = time.time()

And after all that you will get:
extension \'GL_ARB_explicit_uniform_location\' is not supported
when building shaders. Fixing that would require a more thorough refactoring, but I don't have opengl skills to do one.

from tsugite.

marialarsson avatar marialarsson commented on May 13, 2024

Thank you for bringing attention to this issue. We are currently working on making it run on Mac, too.
If anybody got some solutions, please share.

from tsugite.

callhomenow avatar callhomenow commented on May 13, 2024

Hi I would love Tsugite to run on mac OS!

from tsugite.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.