Giter VIP home page Giter VIP logo

Comments (5)

szabolcsdombi avatar szabolcsdombi commented on May 31, 2024

when will they release pyglet 2.x? for now I get 1.3.2 installed.

from moderngl-window.

einarf avatar einarf commented on May 31, 2024

I have no idea when the release is. I'm hanging around on their Discord server now : https://discord.gg/QXyegWe

from moderngl-window.

einarf avatar einarf commented on May 31, 2024

From Pyglet Discord:

Benjamin
I have my GL3+ code in a personal fork at the moment, but I plan to merge it in to the main repository as a new branch soon.

from moderngl-window.

einarf avatar einarf commented on May 31, 2024

More info

Trying with pyglet 1.3.2 and 1.4 beta like the developers suggested also trying to disable the shadow window and use 4.1 specifically.

pyglet.options['shadow_window'] = False

config.major_version = 4
config.minor_version = 1
config.forward_compatible = True

Quick Tests

moderngl.create_context(require=330)

result:

ValueError: Requested OpenGL version 330, got version 0

A CGLContextObj is at least found, but the version was not parsed out.

moderngl.create_context()

Results in:

ModernGL: 5.5.0
vendor: NVIDIA Corporation
renderer: NVIDIA GeForce GT 650M OpenGL Engine
version: 2.1 NVIDIA-12.0.21 355.11.10.50.10.103
python: 3.7.2 (default, Jan 11 2019, 03:25:25) 
[Clang 10.0.0 (clang-1000.11.45.5)]
platform: darwin
code: 0

...
mgl.Error: GLSL Compiler failed

vertex_shader
=============
ERROR: 0:2: '' :  version '330' is not supported

So yep. We are getting a 2.1 context still.

from moderngl-window.

einarf avatar einarf commented on May 31, 2024

I figured this out after debugging pyglet. It was the shadow window that caused trouble. I found a way to navigate around that, so pyglet should be working on OS X even with 1.3.x.

from moderngl-window.

Related Issues (20)

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.