Comments (12)
Yeah it looks possible with JNA. I’ll look into it:
- https://github.com/java-native-access/jna/blob/master/contrib/platform/src/com/sun/jna/platform/mac/IOKit.java
- http://sharmar0hit.blogspot.com/2013/08/detecting-graphics-hardware-using.html?m=1
from processing4.
If all you want to do is nix the warning, then passing some --add-opens
should do it.
from processing4.
Hey! Started poking around to see what we can do without ‘sun.java2d’. It looks hard generally speaking without JNA to migrate out. However, the JavaCL folks might have it sorted. Seems a bit excessive to include JavaCL for that but maybe could help point us in the right direction even if we don’t use the full lib. I’ll play with it a bit. All that said, not sure if knowing the graphics card is helpful anywhere else...
from processing4.
Yeah, this is a messy one because it’s old hardware (meaning that it gets less relevant as that equipment is replaced) but it was used on a lot of apple machines, so there’s a large (or at least very vocal) installed base.
Is there a JNA approach? I’d be more inclined to move that into core than OpenCL, since it’d be useful elsewhere (hidpi detection, display resolutions, menubar hacks, etc...)
from processing4.
@sampottinger doesn't JOGL already have an API that gives you this information?! As does LWJGL.
Still think you'll have fun trying to remove all warnings right now - and most of those are probably as safe to use for now as they ever were - ie. not! 😄
from processing4.
Thanks @neilcsmith-net! I looked into JOGL (GLProfile
) and it wasn't clear to me that this information was accessible. Do you have the API reference for JOGL or LWJGL that you had in mind? Thanks!
from processing4.
@sampottinger well, isn't the same information available in PGraphicsOpenGL at https://github.com/processing/processing4/blob/master/core/src/processing/opengl/PGraphicsOpenGL.java#L6884 This is set using the OpenGL API (JOGL or LWJGL). It's a little later checking, but early enough I think? It's where the Pi workarounds are.
from processing4.
Sorry I dropped the thread on this one... Anyway, thank you @neilcsmith-net!
Yeah I can find what I'm looking for pretty easily if I have the GL context already active. For the folks following along at home, consider this sketch:
import com.jogamp.opengl.*;
void setup() {
size(100, 100, P3D);
GL gl = GLContext.getCurrentGL();
println(gl.glGetString(GL.GL_VENDOR));
println(gl.glGetString(GL.GL_RENDERER));
}
void draw() {}
That said, inside Processing, this is happening up at initDisplay
inside PSurfaceJOGL
which I think was intended to happen before initGL
. Now that I am taking a closer look though, I'm not sure if there is a reason fboAllowed
has to be part of initDisplay
. I'll move it and we should (?) be good to go.
from processing4.
Blocked on #73.
from processing4.
Posted possible solution at #76! :D
from processing4.
Should be fixed in cc39c94
from processing4.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from processing4.
Related Issues (20)
- Wrong line numbers in error messages when using .java files
- .tga PImage flips y axis after save() and load()
- A problem with command-line-version processing-java.
- OSX 14.4.1 Sonoma upgrade breaks USB webcams - seems to be an issue with Java/Processing video library HOT 2
- Contribution Manager is Blank or Unable to Download Anything on Mac (Processing 4) HOT 1
- hello constructions in python HOT 1
- curveVertex() causes OutOfMemory in P2D renderer
- Flat rendering on PGraphics3D of PShapes created from PGraphics2D
- Is there any chance to build a release for Windows ARM64 platform?
- SVG Export does not match sketch HOT 1
- Add autocomplete feature to the IDE HOT 1
- performance breakpoint with strokeWeight >= 2.0 in P2D
- Resizing the sketch makes P2D / P3D freeze forever
- Provide AppImage for Linux
- Creation date updates during sketch saving (macOS)
- Reference for `Try` hangs the execution if there is no file to be loaded. HOT 1
- Manage Modes ... Blank
- Blendmode not respecting alpha in P3D under certain circumstances
- exhibhition
- Feature Request: Editor Font Size using Command + and Command - 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 processing4.