Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighting problem in 3D view with dual screen setup #1156

Open
nicolaspayette opened this issue Sep 6, 2016 · 0 comments
Open

Lighting problem in 3D view with dual screen setup #1156

nicolaspayette opened this issue Sep 6, 2016 · 0 comments

Comments

@nicolaspayette
Copy link
Member

nicolaspayette commented Sep 6, 2016

When moving the 3D view from one screen to the other, the scene becomes flooded with light. For example, with Traffic 2 Lanes:

screenshot from 2016-09-06 18-41-11

Moving the window back and forth results in an exception after a few times:

com.jogamp.opengl.GLException: Caught IllegalArgumentException: requirement failed: Failed to add light: Only a maximum of 8 lights is supported in OpenGL. on thread AWT-EventQueue-0
 at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
 at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1327)
 at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
 at com.jogamp.opengl.awt.GLCanvas$12.run(GLCanvas.java:1438)
 at com.jogamp.opengl.Threading.invoke(Threading.java:223)
 at com.jogamp.opengl.awt.GLCanvas.display(GLCanvas.java:505)
 at com.jogamp.opengl.awt.GLCanvas.paint(GLCanvas.java:559)
 at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
 at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:64)
 at sun.awt.RepaintArea.paint(RepaintArea.java:240)
 at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:584)
 at java.awt.Component.dispatchEventImpl(Component.java:4965)
 at java.awt.Component.dispatchEvent(Component.java:4711)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
 at java.awt.EventQueue.access$500(EventQueue.java:97)
 at java.awt.EventQueue$3.run(EventQueue.java:709)
 at java.awt.EventQueue$3.run(EventQueue.java:703)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
 at java.awt.EventQueue$4.run(EventQueue.java:731)
 at java.awt.EventQueue$4.run(EventQueue.java:729)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IllegalArgumentException: requirement failed: Failed to add light: Only a maximum of 8 lights is supported in OpenGL.
 at scala.Predef$.require(Predef.scala:224)
 at org.nlogo.gl.render.LightManager.addLight(Lighting.scala:41)
 at org.nlogo.gl.render.Renderer.init(Renderer.java:192)
 at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
 at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
 at com.jogamp.opengl.awt.GLCanvas$10.run(GLCanvas.java:1407)
 at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
 ... 29 more

NetLogo 6.0-BETA1
main: org.nlogo.app.AppFrame
thread: AWT-EventQueue-0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_102 (Oracle Corporation; 1.8.0_102-b14)
operating system: Linux 4.4.0-36-generic (amd64 processor)
Scala version 2.11.8
JOGL: 2.3.2
OpenGL graphics: Mesa DRI Intel(R) Haswell Desktop 
OpenGL version: 3.0 Mesa 11.2.0
OpenGL vendor: Intel Open Source Technology Center
model: Traffic 2 Lanes

06:43:48.297 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
06:43:48.297 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
06:43:48.297 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
06:43:48.297 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
06:43:48.297 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
06:43:48.086 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
06:43:48.086 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
06:43:48.086 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
06:43:48.086 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
06:43:48.086 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0

That's with 6.0-BETA1 on Ubuntu 15.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant