Trouble Displaying FPS with Oculus Rift


I’m starting to experiment with jME3 and the Oculus DK2. Things look a little choppy, but I can’t seem to get the framerate stats to display.

In my simpleInitApp() override, I added setDisplayFPS(true) and setDisplayStatView(true), but these don’t seem to make anything show up on the screen.

Is the method for setting up these displays for the Oculus different from that for SimpleApplication?



The regular guiNode doesn’t work with the stereoscopic view. It’s possible to display things, but they won’t be in stereo. Instead you need to use the OculusGuiNode which is created in OVRApplication. Without looking deeper, I think it overwrites the original guiNode. I haven’t tried adding the fps and stats views to it, so I’m not sure what will happen.
I’ve however written a tutorial on one way of using it here:
Free floating VR menu in jMonkeyEngine with Oculus Rift
There’s also a fully functional example in the repository.

1 Like

Thank you for your reply. I will let you know how it goes once I’ve tried it.