Comments (9)
Can you share any code here? I don't even know what you are doing. You are trying to detect a context created by this library? Need a lot more information here.
Are you talking about https://github.com/angeloskath/simple-3dviz ?
from moderngl.
from moderngl.
maybe the window does not require a high OpenGL version and the system provides a 3.0.
https://github.com/angeloskath/simple-3dviz/blob/master/simple_3dviz/window/wx.py#L40-L43
from moderngl.
Mabe a bug in the simple-3dviz project?
from moderngl.
Mabe a bug in the simple-3dviz project?
I need to find light intensity incident on the object, visit possible to compute in simple_3dviz , or any other library
from moderngl.
Asking again: Can you create an issue in the simple-3dviz project and link this one?
You are not providing much information here, so I don't think it's possible to progress here. The other project probably have a better idea what the problem is. It's WX creating the context, not moderngl.. so It's not really moderngl related at all.
The problem is that WX doesn't create a context with the right version. That code is not on our side. It could also be a driver issue on your side.
from moderngl.
I tried this solution, but it seems the issue with moderngl....
from moderngl.
it is not really possible as moderngl is not involved in the opengl context creation.
you can simply check the version by placing this code right before the moderngl.create_context call:
from OpenGL import GL; GL.glGetString(GL.GL_VERSION)
you might need to pip install pyopengl for the code above to work
from moderngl.
to understand better the problem you should know that:
- in order to have OpenGL available to load, there must be a window and opengl context created.
- when a window is created it must select a pixel format and create an OpenGL context.
- at this point the OpenGL functions are already tight to a version and driver implementation.
the above happens without moderngl being present
- moderngl is a library using the OpenGL methods provided by glcontext.
- glcontext is a very simple module, in your case it just loads the already existing OpenGL methods and pass it to moderngl. (glxGetProcAddr and similar)
- moderngl calls glGetIntegerv for the major and minor versions and finds
3
and0
respectively. - at this point there is no way to get a higher version by calling any other gl methods.
to fix the issue you should check the gl version with the snippet pasted above right after the window creation and tweak the window creation parameters until you get your 4.6.0 NVIDIA 470.182.03
version reported.
PS: if you use X11 forwarding you might not get it unless setting LIBGL_ALWAYS_INDIRECT
properly.
from moderngl.
Related Issues (20)
- Some functions have no signature in the docs
- Converting large variables from type Int(32) to LongLong(64) HOT 2
- x11 error HOT 1
- Ubuntu 22.04 Exception:(standalone) cannot create context HOT 7
- Stencil buffer support HOT 1
- Incorrect annotation on varargs for `simple_vertex_array` HOT 1
- Problems after Robustness (after Framebuffer refactoring) HOT 5
- Exception: requested device index 0, but found 0 devices
- in-GPU-memory interoperability with Machine Learning frameworks? HOT 6
- use case for framebuffer with multiple color attachments? HOT 2
- support for clearing integer-valued textures?
- support for rendering to integer-valued textures? EDIT: Must specify `binding=` in layout clause of shader code HOT 5
- moderngl with pygame-ce fps drop HOT 3
- missing sdist for moderngl-window 2.4.6 release on pypi HOT 1
- How to access the data within a Shader Storage Buffer Object? HOT 1
- Unable to change color_mask of framebuffer when using additional color attachments HOT 1
- How to configure distinct blend_func for multiple color-attachments ?
- Context.gc() crashes with "AttributeError: 'InvalidObject' object has no attribute 'release'"
- Can't pip install moderngl HOT 3
- Problems when migrating PyOpenGL code to ModernGL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moderngl.