HelloJME3 (blank screen) - Resolved

Resolution:

User Error (my version of HelloJME3, I failed to put in the line mat.setColor(…))

When I was running the Jmonkeyplatform.exe (I was running with 32bit vm on 64x windows…which I think caused it to not render properly…it is now working that I re-installed 64 jvm).







Hi folks, just downloaded the alpha, and trying to get the first tutorial working…when it fires up, and run it full screen or not, using LWGL-OPenGL2, or any other option on the drop down, the window just appear black, with the 'text' hud displayed at the bottom.



I'm running on windows 7 - 64bit.



My class path includes every jar from: jme3root/jmonkeyplatform/libs



I didn't see any mention of adding the lwgl dll's to the path? is it not needed? and if so which version (i tried 2.2.1 still nothing).



here is the output in the console (running this from eclipse)





Jul 18, 2010 12:21:46 PM com.jme3.asset.DesktopAssetManager <init>

INFO: DesktopAssetManager created.

INFO JmeSystem 12:22:29 PM Running on jMonkey Engine 3 ALPHA 0.50

INFO Natives 12:22:29 PM Extraction Directory #1: file:/C:/devel/jmonkeyplatform/jmonkeyplatform/libs/

INFO Natives 12:22:29 PM Extraction Directory #2: C:UsersDanworkspacejme3_tut

INFO Natives 12:22:29 PM Extraction Directory #3: C:UsersDanworkspacejme3_tut

INFO LwjglAbstractDisplay 12:22:29 PM Using LWJGL 2.4.2

INFO LwjglDisplay 12:22:29 PM Selected display mode: 640 x 480 x 0 @0Hz

INFO LwjglAbstractDisplay 12:22:29 PM Display created.

INFO LwjglAbstractDisplay 12:22:29 PM Adapter: nvd3dumx,nvwgf2umx,nvwgf2umx

INFO LwjglAbstractDisplay 12:22:29 PM Driver Version: null

INFO LwjglAbstractDisplay 12:22:29 PM Vendor: NVIDIA Corporation

INFO LwjglAbstractDisplay 12:22:29 PM OpenGL Version: 3.2.0

INFO LwjglAbstractDisplay 12:22:29 PM Renderer: GeForce GTX 275/PCI/SSE2

INFO LwjglAbstractDisplay 12:22:29 PM GLSL Ver: 1.50 NVIDIA via Cg compiler

INFO LwjglTimer 12:22:29 PM Timer resolution: 1000 ticks per second

INFO Camera 12:22:29 PM Camera created (W: 640, H: 480)

INFO LwjglMouseInput 12:22:29 PM Mouse created.

INFO LwjglKeyInput 12:22:29 PM Keyboard created.

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Gui Node)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (BitmapFont) attached to this node (Statistics View)

INFO Node 12:22:29 PM Child (Statistics View) attached to this node (Gui Node)

INFO Node 12:22:29 PM Child (Box) attached to this node (Root Node)

WARNING LwjglRenderer 12:22:29 PM Uniform m_VertexColor is not declared in shader.

INFO LwjglMouseInput 12:23:14 PM Mouse destroyed.

INFO LwjglKeyInput 12:23:14 PM Keyboard destroyed.

INFO LwjglAbstractDisplay 12:23:14 PM Display destroyed.





any points greatly apprecaited :slight_smile:

note: jme2.0.1 works just fine, when I include lwgl-2.2.1 in the path. (I see from the above log that it is indeed using the ldwgl 2.4.2 included in the jmonkeyplatform root.



also of note: i get the same blank screen (i.e. no graphics are ever rendering), when I run demos via the jmonkeyplatform.exe


I think it might help, if you add following code in the line 152 of the class LwjglAbstractDisplay:


new Exception().printStackTrace();


and let us know resulting stacktrace.

hmm, maybe my version of the class is different then yours…but the stack is not very useful.



java.lang.Exception

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:151)

at java.lang.Thread.run(Unknown Source)



The function is the thread run() (line 152 is bolded)



and is:

  public void run(){

        logger.info("Using LWJGL "+Sys.getVersion());

        initInThread();

        while (true){

            if (Display.isCloseRequested())

                listener.requestClose(false);

            new Exception().printStackTrace();

            if (wasActive != Display.isActive()){



                if (!wasActive){

                    listener.gainFocus();

                    wasActive = true;

                }else{

                    listener.loseFocus();

                    wasActive = false;

                }

            }



            runLoop();



            if (needClose.get())

                break;

        }

        deinitInThread();

    }

Ye seems you got different classes (hm I believe I updated them only couple days ago).

Any way you need to put this line somewhere there (method deinitInThread):


   /**
    * De-initialize in the OpenGL thread.
    */
   protected void deinitInThread() {
      listener.destroy();
      if (Display.isCreated()) {
         renderer.cleanup();
         Display.destroy();
      }
      logger.info("Display destroyed.");
      super.internalDestroy();
   }

yeah…it turns out it was user error (see initial post on this thread), thanx for the tips though :slight_smile: