Skip to content

LwjglDisplay cannot be cast to LwjglWindow #14

@ThomasSchemmer

Description

@ThomasSchemmer

Hi Phr00t,

thanks for your library. I'm currently trying to port OpenDS to accept a Vive and therefore mashing your library in between. As a starter i tried to reenact your basic example, but when i run it i get the following error message:

Jun 30, 2017 11:41:17 AM jmevr.app.VRApplication handleError
SCHWERWIEGEND: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.ClassCastException: com.jme3.system.lwjgl.LwjglDisplay cannot be cast to com.jme3.system.lwjgl.LwjglWindow
at jmevr.util.VRMouseManager.update(VRMouseManager.java:153)
at jmevr.util.VRViewManager.update(VRViewManager.java:425)
at jmevr.util.VRViewManager.initialize(VRViewManager.java:277)
at jmevr.app.VRApplication.initialize(VRApplication.java:1091)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:130)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
at java.lang.Thread.run(Unknown Source)

I think i included every library that i needed, as i get the following log before the message pops up:

Initializing OpenVR...
OpenVR initialized & VR connected.
Jun 30, 2017 11:44:17 AM com.jme3.system.JmeDesktopSystem initialize
INFORMATION: Running on jMonkeyEngine 3.2-6153

  • Branch: master
  • Git Hash: 8eab825
  • Build Date: 2016-07-20
    OpenVR Compositor initialized OK!

What am I missing? Would appreciate any input.
Thanks
Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions