Tutorial HelloNode/Assets - all I see is a blue box?

Hi all,



I’m new to jMonkeyengine, and java for that matter; but any way, I have been starting the tutorials and no matter what I do when I follow the 2nd and 3rd tutorials (helloasset/node) all I see is a blue box. I made sure to double check I did everything, but no cigar. I also tried searching the forum although I couldn’t find anything, as well as making a new project.



This is my log:

[java]

INFO: Using LWJGL 2.7.1

Oct 23, 2011 7:32:05 AM com.jme3.system.lwjgl.LwjglDisplay createContext

INFO: Selected display mode: 640 x 480 x 0 @0Hz

Oct 23, 2011 7:32:05 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

INFO: Display created.

Oct 23, 2011 7:32:05 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

INFO: Adapter: igdumd64

Oct 23, 2011 7:32:05 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

INFO: Driver Version: 8.15.10.2125

Oct 23, 2011 7:32:05 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

INFO: Vendor: Intel

Oct 23, 2011 7:32:05 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

INFO: OpenGL Version: 2.1.0 - Build 8.15.10.2125

Oct 23, 2011 7:32:05 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

INFO: Renderer: Intel® HD Graphics

Oct 23, 2011 7:32:05 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

INFO: GLSL Ver: 1.20 - Intel Build 8.15.10.2125

Oct 23, 2011 7:32:05 AM com.jme3.system.lwjgl.LwjglTimer <init>

INFO: Timer resolution: 1000 ticks per second

Oct 23, 2011 7:32:05 AM com.jme3.renderer.lwjgl.LwjglRenderer initialize

INFO: Caps: [FrameBuffer, FrameBufferMRT, OpenGL20, OpenGL21, ARBprogram, GLSL100, GLSL110, GLSL120, VertexTextureFetch, FloatTexture, FloatColorBuffer, FloatDepthBuffer, PackedFloatTexture, SharedExponentTexture, PackedFloatColorBuffer, MeshInstancing, VertexBufferArray]

Oct 23, 2011 7:32:05 AM com.jme3.asset.DesktopAssetManager <init>

INFO: DesktopAssetManager created.

Oct 23, 2011 7:32:05 AM com.jme3.renderer.Camera <init>

INFO: Camera created (W: 640, H: 480)

Oct 23, 2011 7:32:05 AM com.jme3.renderer.Camera <init>

INFO: Camera created (W: 640, H: 480)

Oct 23, 2011 7:32:05 AM com.jme3.input.lwjgl.LwjglMouseInput initialize

INFO: Mouse created.

Oct 23, 2011 7:32:05 AM com.jme3.input.lwjgl.LwjglKeyInput initialize

INFO: Keyboard created.

Oct 23, 2011 7:32:05 AM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread

INFO: AudioRenderer supports 64 channels

Oct 23, 2011 7:32:05 AM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread

INFO: Audio effect extension version: 1.0

Oct 23, 2011 7:32:05 AM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread

INFO: Audio max auxilary sends: 1

Oct 23, 2011 7:32:05 AM com.jme3.material.MaterialDef <init>

INFO: Loaded material definition: Unshaded

Oct 23, 2011 7:32:05 AM com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

Oct 23, 2011 7:32:05 AM com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Gui Node)

Oct 23, 2011 7:32:06 AM com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

[i redacted a bit since they were identical messages)<br /> Oct 23, 2011 7:32:06 AM com.jme3.scene.Node attachChild<br /> INFO: Child (null) attached to this node (Statistics View)<br /> Oct 23, 2011 7:32:06 AM com.jme3.scene.Node attachChild<br /> INFO: Child (Statistics View) attached to this node (Gui Node)<br /> Oct 23, 2011 7:32:06 AM com.jme3.material.MaterialDef &lt;init&gt;<br /> INFO: Loaded material definition: Solid Color<br /> Oct 23, 2011 7:32:06 AM com.jme3.material.Material checkSetParam<br /> WARNING: Material parameter m_Color uses a deprecated naming convention use Color instead<br /> Oct 23, 2011 7:32:06 AM com.jme3.scene.Node attachChild<br /> INFO: Child (Box) attached to this node (Root Node)<br /> Oct 23, 2011 7:32:06 AM com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation<br /> INFO: Uniform m_VertexColor is not declared in shader.<br /> Oct 23, 2011 7:32:07 AM com.jme3.input.lwjgl.LwjglMouseInput destroy<br /> INFO: Mouse destroyed.<br /> Oct 23, 2011 7:32:07 AM com.jme3.input.lwjgl.LwjglKeyInput destroy<br /> INFO: Keyboard destroyed.<br /> Oct 23, 2011 7:32:07 AM com.jme3.system.lwjgl.LwjglAbstractDisplay deinitInThread<br /> INFO: Display destroyed.<br /> BUILD SUCCESSFUL (total time: 4 seconds)[/java]



Does anybody have any idea why this is a

Probably you press the play button to start the application which runs the main class in the project that is selected as main project?

2 Likes

im guessing you have all these files in the same project, and your pressing F6 to run them. F6 only references 1 Main class and its not always the one your currently looking at. Try pressing shift+f6 on the file you want to run.

2 Likes

Thanks wezrule and normen. That solved it; I was pressing the green play button. I assume it runs the default SimpleApplication, which is a blue box?



It would be helpful if the wiki said to put Shift-f6; It just says build+run your project.



Is there any toolbar button that does this feature? (run current file)



It’s also insane that I got a response within 2 minutes at 7 AM on a Sunday.



Thanks a lot!

2 Likes

You can set the “Main Project” by right-clicking a project and selecting “Set Main Project”. Then you can set the main class of that project using the project settings (also available via right-click on the project).

1 Like

you can also, right click the toolbar → customize → run file (drag it to the toolbar)