gpt4 book ai didi

java - 无法启动 LibGDX 工具 2D 粒子编辑器

转载 作者:行者123 更新时间:2023-12-01 10:16:37 25 4
gpt4 key购买 nike

请帮帮我。我从https://libgdx.badlogicgames.com/tools.html下载了jar文件它是runnable-2D-particles.jar当我运行它时,打开程序无法使用。没有字段渲染,所有 block 都是空的。

登录控制台:

C:\Users\matha>java -jar C:\runnable-2D-particles.jar
java.lang.NullPointerException
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:320)
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(LwjglGraphics.java:214)
at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.create(LwjglCanvas.java:190)
at com.badlogic.gdx.backends.lwjgl.LwjglCanvas$1.addNotify(LwjglCanvas.java:90)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at javax.swing.JRootPane.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at java.awt.Window.addNotify(Unknown Source)
at java.awt.Frame.addNotify(Unknown Source)
at java.awt.Window.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at com.badlogic.gdx.tools.particleeditor.ParticleEditor.<init>(ParticleEditor.java:92)
at com.badlogic.gdx.tools.particleeditor.ParticleEditor$6.run(ParticleEditor.java:532)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

附注视频驱动程序已安装。我该如何解决这个问题?我使用WIN10,jdk1.8.0_51,jre1.8.0_60(如果重要的话)

最佳答案

问题出在 OpenGL 上,因为在 LwjglGraphics 中的 com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGrap‌​hics.java:320) 第 320 行> 表示视频驱动程序不支持 OpenGL
因此,您应该检查您的显卡是否至少支持 OpenGL 1.5,如果支持,请更新您的显卡驱动程序。

关于java - 无法启动 LibGDX 工具 2D 粒子编辑器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35856253/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com