fiji / 3D_Viewer

https://imagej.net/plugins/3d-viewer
GNU General Public License v3.0
20 stars 18 forks source link

Java 3D ERROR : OpenGL 1.2 or better is required (GL_VERSION=1.1) #18

Open ctrueden opened 8 years ago

ctrueden commented 8 years ago

Several people have now reported the following error:

org.scijava.java3d.IllegalRenderingStateException: Java 3D ERROR : OpenGL 1.2 or better is required (GL_VERSION=1.1)
    at org.scijava.java3d.JoglPipeline.setupCanvasProperties(JoglPipeline.java:8083)
    at org.scijava.java3d.JoglPipeline.createNewContext(JoglPipeline.java:6440)
    at org.scijava.java3d.Canvas3D.createNewContext(Canvas3D.java:4602)
    at org.scijava.java3d.Canvas3D.createNewContext(Canvas3D.java:2376)
    at org.scijava.java3d.Renderer.doWork(Renderer.java:881)
    at org.scijava.java3d.J3dThread.run(J3dThread.java:271)

These reports indicate new systems with new high-quality graphics cards, so it seems unlikely that the version of OpenGL is actually that old. Need to investigate...

ctrueden commented 7 years ago

Please use ImageJ-win64.exe, not fiji-win64.exe, and not ImageJ-win32.exe.

Reasons:

  1. I am not 100% certain, but if I recall correctly, we only updated ImageJ-win64.exe, not ImageJ-win32.exe.

  2. I have learned that the current fiji-win64.exe launcher—which has not been updated either—still passes the wrong setting for OpenGL. But if you use Aschain's fiji-win64.exe above, it will work. Perhaps we should update the official fiji-win64.exe to that one as well. It's just the same thing with the Fiji icon instead of the ImageJ2 one.

aschain commented 7 years ago

Keep in mind my fiji-win64.exe is simply the ImageJ-win64.exe with the Fiji icon and renamed. I'm not sure how to properly compile the Fiji launcher but I would be happy to do it.

howff commented 3 years ago

This is still a problem for people who have to use a remote desktop.

I've tried installing a software implementation of OpenGL from here https://github.com/pal1000/mesa-dist-win/releases

That works for all other applications but still doesn't work for ImageJ. I've tried installing it globally and also I've put all the opengl DLLs into folders inside ImageJ with no success.

tatsunidas commented 3 years ago

Hi, @ctrueden

This is not an issue comment, just a question. I am glad about this ImageJ-win64.exe file. But I still don't understand the important points.

I have tested two scenarios on two Windows PCs(win10, 64bit). PC1: CPU with built-in HD 3000 graphics (does not have an OpenGL driver) PC2: CPU with built-in Iris family graphics Scenario 1: Can run by Fiji's ImageJ-win64.exe? Scenario 2: Can run from eclipse code?

Results on PC1 Scenario 1 works fine. Scenario 2 shows grayed-out 3d viewer and output unusable with this GL_VERSION error.

Results on PC2 Both scenarios 1 and 2 work fine.

Why does PC1 can boot the 3D Viewer well when booted from exe? (I also tried -Dsun.awt.nopixfmt=true VM options, but failed( result was same as PC1 scenario2).)

I am glad if you could tell me.

tatsuaki