Open Wonderland with JOGL 2.2.4 and Oculus Support 1.3

87 views
Skip to first unread message

Carlos Rafael Ramirez

unread,
Apr 28, 2016, 2:59:01 PM4/28/16
to openwonderland
Hello,

After a lot of work I finally reached one step in the goal to complete VR support.The changes includes binary files so a patch is impractical. So I push the changes in my patches repository so everyone can see the changes, and also download the source code. I uploaded a compiles Wonderland.jar as well.

JOGL 2.2.4

First I've updated the JOGL implementation from 2.0rc to 2.2.4. As a result there is some stability and smoothness gained. In complex worlds like the Meeting Complex you can see an increase in FPS. The others you can perceive a slightly improvement in smoothness. 

The changes:


The source code:


And the compiled executable:


Oculus Runtime 1.3

The JOGL migration to 2.2.4 was a prerequisite to give Oculus support. Without it the application simply crash.

The Oculus support was included directly in the core. It is compatible with the latest runtime 1.3.2 so any DK2 or CV1 will run without problems.

This is the first stage of the roadmap. In this stage you only can look and navigate but no interact with any objects. For use with Oculus just launch the client, log in and put on your Oculus. As simply as it sounds.

Beware java 32 bits. It used to work in Oculus 1.3.0 but in 1.3.2 it hangs. I recommend testing with Java 64. Probably you need to start Open Wonderland from command line if your browser is wired to use Java 32. "C:\Program Files\Java\jre1.8.0_73\bin\javaws.exe" http://localhost:8080/wonderland-web-front/app/Wonderland.jnlp

I want to specially thank to two people without their help implementation couldn't be achieved in this time frame.

Allan Conda: He made the first effort to migrate Open Wonderland to Oculus. With his participation in this forum which guided me in the right direction and also he was very kind giving me all his source code which was specially useful to calibrate the camera with the head tracking.

Brad Davis: We worked together to upgrade the java-oculus binding library jovr to the latest version to be compatible with Oculus CV1

The changes:


The source code:


The compiled executable:


Enjoy it!

Thinsia - Roland Sassen

unread,
Apr 28, 2016, 3:48:21 PM4/28/16
to openwon...@googlegroups.com
very cool Carlos!
Roland
--
You received this message because you are subscribed to the Google Groups "Open Wonderland Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwonderlan...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Mohamed Abdelnaby

unread,
Jun 12, 2016, 7:30:06 AM6/12/16
to Open Wonderland Forum
Hello Calros thanks for your help before about X11 ubuntu 13 but i need to know if i can run the client on windows and it can run X11 shared application or not.

becouse it is not working with me ... the client on ubuntu 12 working fine but the clients on windows dosen't work and don't give me an massages on log.

best Regards,
Mohamed

Carlos Rafael Ramirez

unread,
Jun 13, 2016, 12:52:07 AM6/13/16
to Open Wonderland Forum
Hello,  Mohamed 

if your server is in Linux. You can use shared applications with any client. Either in Windows Linux or Mac.  Check maybe the ports blocked in Windows by the firewall. 

Regards 
Carlos 

--

Mohamed Abdelnaby

unread,
Jun 25, 2016, 5:58:09 AM6/25/16
to Open Wonderland Forum
thank you Calros but i tried to see the firewall and many things but the shared application is not the only thing is not working in windows client for linux server, uploading videos and images and files can't be uploaded to the server. then i setup ed  an new ubuntu 12 and xorg and wonderland server again. the shared application worked but the text of menus in open office doesn't appears and the problem of  not dragging the images and pdfs,videos are the same can't upload it on server massage.

best reagrds,
mohamed 

Ric Moore

unread,
Jun 25, 2016, 11:42:35 AM6/25/16
to openwon...@googlegroups.com
On 06/25/2016 05:58 AM, Mohamed Abdelnaby wrote:
> thank you Calros but i tried to see the firewall and many things but the
> shared application is not the only thing is not working in windows
> client for linux server, uploading videos and images and files can't be
> uploaded to the server. then i setup ed an new ubuntu 12 and xorg and
> wonderland server again. the shared application worked but the text of
> menus in open office doesn't appears and the problem of not dragging
> the images and pdfs,videos are the same can't upload it on server massage.

Do you have xvfb package installed??


--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html

Mohamed Abdelnaby

unread,
Jun 26, 2016, 2:17:14 AM6/26/16
to Open Wonderland Forum
 yes the xvfb installed and i can remotely access xterm on Linux from windows and every thing working fine abut there is no stander i can walk through to make the server on Linux work. the server on windows working fine with all option drag images and upload worlds even programming swing to be a web browser in 3D. the only thing doesn't work and i tried to get documention for it and i ddi't found  is the shared app for windows it doesn't work ....... even remotely from the linux server. so i'm trying to compile the open wonderland server for Linux and compiled the all modules the client on windows doesn't work right can't load image .... can't load office converter document files... the firewall had no problems becouse i loading the complex land normally..

my question is the problems comes from the linux version i had Ubuntu 12 and it gives me all those problems. i was had Solaris 10 and it was working fine except the shared apps not working at  all.         
 

Mohamed Abdelnaby

unread,
Jun 27, 2016, 8:56:56 AM6/27/16
to Open Wonderland Forum
WARNING 2:39:23 PM org.jdesktop.wonderland.client.input.InputManager drop
Drop: 1 items
WARNING 2:39:23 PM org.jdesktop.wonderland.client.jme.dnd.DragAndDropManager$GlobalDropListener drop
In global listener: 1
WARNING 2:39:43 PM org.jdesktop.wonderland.client.jme.ViewManager addViewManagerListener
||-- listener added --||org.jdesktop.wonderland.client.cell.ProximityComponent@1736b84
WARNING 2:39:44 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:39:44 PM org.jdesktop.wonderland.client.cell.CellCacheBasicImpl$CellStatusChanger run
Exception thrown in Cell.setStatus Could not initialize class org.jdesktop.wonderland.modules.videoplayer.client.VideoPlayerImpl
java.lang.NoClassDefFoundError: Could not initialize class org.jdesktop.wonderland.modules.videoplayer.client.VideoPlayerImpl
at org.jdesktop.wonderland.modules.videoplayer.client.VideoPlayerWindow.createVideoPlayer(VideoPlayerWindow.java:232)
at org.jdesktop.wonderland.modules.videoplayer.client.VideoPlayerWindow.<init>(VideoPlayerWindow.java:113)
at org.jdesktop.wonderland.modules.videoplayer.client.cell.VideoPlayerCell.setStatus(VideoPlayerCell.java:191)
at org.jdesktop.wonderland.client.cell.CellCacheBasicImpl.setCellStatus(CellCacheBasicImpl.java:459)
at org.jdesktop.wonderland.client.cell.CellCacheBasicImpl.access$700(CellCacheBasicImpl.java:78)
at org.jdesktop.wonderland.client.cell.CellCacheBasicImpl$CellStatusChanger.run(CellCacheBasicImpl.java:973)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
WARNING 2:42:16 PM com.jmex.awt.input.AWTKeyInput toInputCode
unsupported key:524
WARNING 2:42:16 PM com.jmex.awt.input.AWTKeyInput toInputCode
unsupported key:524
WARNING 2:42:23 PM org.jdesktop.wonderland.client.input.InputManager drop
Drop: 1 items
WARNING 2:42:23 PM org.jdesktop.wonderland.client.jme.dnd.DragAndDropManager$GlobalDropListener drop
In global listener: 1
WARNING 2:42:27 PM org.jdesktop.wonderland.modules.officeconverter.client.OfficeContentImporter convertFile
Output filename: قائمة المركز المالى.xlsx1950912087978624710.pdf
WARNING 2:42:27 PM org.jdesktop.wonderland.modules.officeconverter.client.OfficeContentImporter uploadContent
Converted file: C:\Users\Mohamed\AppData\Local\Temp\قائمة المركز المالى.xlsx1950912087978624710.pdf
WARNING 2:42:27 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf element قائمة المركز المالى.xlsx1950912087978624710.pdf not found
WARNING 2:42:27 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf element قائمة المركز المالى.xlsx1950912087978624710.pdf not found
WARNING 2:42:29 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.1.png element قائمة المركز المالى.xlsx1950912087978624710.pdf.1.png not found
WARNING 2:42:30 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.2.png element قائمة المركز المالى.xlsx1950912087978624710.pdf.2.png not found
WARNING 2:42:30 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.3.png element قائمة المركز المالى.xlsx1950912087978624710.pdf.3.png not found
WARNING 2:42:31 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.4.png element قائمة المركز المالى.xlsx1950912087978624710.pdf.4.png not found
WARNING 2:42:31 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.5.png element قائمة المركز المالى.xlsx1950912087978624710.pdf.5.png not found
WARNING 2:42:33 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.6.png element قائمة المركز المالى.xlsx1950912087978624710.pdf.6.png not found
WARNING 2:42:34 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.7.png element قائمة المركز المالى.xlsx1950912087978624710.pdf.7.png not found
WARNING 2:42:35 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.8.png element قائمة المركز المالى.xlsx1950912087978624710.pdf.8.png not found
WARNING 2:42:36 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.9.png element قائمة المركز المالى.xlsx1950912087978624710.pdf.9.png not found
WARNING 2:42:36 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.10.png element قائمة المركز المالى.xlsx1950912087978624710.pdf.10.png not found
WARNING 2:42:37 PM org.jdesktop.wonderland.modules.webdav.common.WebdavContentCollection getChild
In path قائمة المركز المالى.xlsx1950912087978624710.pdf.xml element قائمة المركز المالى.xlsx1950912087978624710.pdf.xml not found
WARNING 2:42:46 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:42:46 PM org.jdesktop.wonderland.client.assetmgr.content.WlContentAssetRepository openAssetStream
Unable to open URL for asset http://moyatech:8080/webdav/content/users/Mohamed/pdf/قائمة%20المركز%20المالى.xlsx1950912087978624710.pdf/قائمة%20المركز%20المالى.xlsx1950912087978624710.pdf response 404
WARNING 2:42:46 PM org.jdesktop.wonderland.modules.pdfviewer.client.PDFDocumentLoader run
failed to open: wlcontent://users@moyatech:8080/Mohamed/pdf/قائمة%20المركز%20المالى.xlsx1950912087978624710.pdf/قائمة%20المركز%20المالى.xlsx1950912087978624710.pdf: java.lang.NullPointerException
java.lang.NullPointerException
at org.jdesktop.wonderland.modules.pdfviewer.client.PDFDocumentLoader.getDocumentData(PDFDocumentLoader.java:97)
at org.jdesktop.wonderland.modules.pdfviewer.client.PDFDocumentLoader.run(PDFDocumentLoader.java:118)
at java.lang.Thread.run(Unknown Source)
WARNING 2:42:46 PM org.jdesktop.wonderland.modules.pdfviewer.client.PDFViewerPanel$2 documentLoadStateChanged
failed to load: wlcontent://users@moyatech:8080/Mohamed/pdf/قائمة%20المركز%20المالى.xlsx1950912087978624710.pdf/قائمة%20المركز%20المالى.xlsx1950912087978624710.pdf: java.lang.NullPointerException
WARNING 2:42:46 PM org.jdesktop.wonderland.client.cell.CellChannelConnection$CellMessageDelivery deliver
Delaying messages for cell 14

.............................................................................................................................
at org.jdesktop.mtgame.Renderer.run(Renderer.java:960)
WARNING 2:52:13 PM org.jdesktop.wonderland.modules.affordances.client.AffordanceHUDPanel updateGUI
Setting name to Edit Object: file01Texture
WARNING 2:52:26 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:52:27 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:52:28 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:52:28 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:52:29 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:52:30 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:52:30 PM org.jdesktop.wonderland.client.cell.CellChannelConnection$CellMessageDelivery deliver
Delaying messages for cell 23
WARNING 2:52:31 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:52:33 PM org.jdesktop.wonderland.modules.affordances.client.AffordanceHUDPanel updateGUI
Setting name to Edit Object: soffice
WARNING 2:52:35 PM org.jdesktop.wonderland.modules.xremwin.client.ClientXrw processMessage
WindowSetBorderWidth: window doesnt exist: wid = 6291610
WARNING 2:52:43 PM org.jdesktop.wonderland.modules.xremwin.client.ClientXrw processMessage
WindowSetBorderWidth: window doesnt exist: wid = 6291666
WARNING 2:52:47 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:52:48 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:52:49 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:53:02 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:53:03 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:53:12 PM com.jmex.awt.input.AWTKeyInput toInputCode
unsupported key:154
WARNING 2:53:12 PM com.jmex.awt.input.AWTKeyInput toInputCode
unsupported key:154
WARNING 2:53:12 PM com.jmex.awt.input.AWTKeyInput toInputCode
unsupported key:154
WARNING 2:53:18 PM org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor commit
Trying to draw to texture whose ID hasnt been allocated
WARNING 2:53:18 PM org.jdesktop.mtgame.Renderer processCommitList
MTGame: Exception Caught in renderer commit: javax.media.opengl.GLException: Thread[MTGame Renderer,5,javawsApplicationThreadGroup] glGetError() returned the following error codes after a call to glTexSubImage2D(<int> 0xDE1, <int> 0x0, <int> 0x0, <int> 0x0, <int> 0x131, <int> 0x18, <int> 0x1908, <int> 0x1401, <java.nio.Buffer> java.nio.DirectByteBuffer[pos=0 lim=29280 cap=29280]): GL_INVALID_VALUE ( 1281 0x501), 
javax.media.opengl.GLException: Thread[MTGame Renderer,5,javawsApplicationThreadGroup] glGetError() returned the following error codes after a call to glTexSubImage2D(<int> 0xDE1, <int> 0x0, <int> 0x0, <int> 0x0, <int> 0x131, <int> 0x18, <int> 0x1908, <int> 0x1401, <java.nio.Buffer> java.nio.DirectByteBuffer[pos=0 lim=29280 cap=29280]): GL_INVALID_VALUE ( 1281 0x501), 
at javax.media.opengl.DebugGL2.checkGLGetError(DebugGL2.java:24811)
at javax.media.opengl.DebugGL2.glTexSubImage2D(DebugGL2.java:13843)
at com.jme.renderer.jogl.JOGLRenderer.updateTextureSubImage(JOGLRenderer.java:1993)
at com.jmex.awt.swingui.JOGLImageGraphics.update(JOGLImageGraphics.java:186)
at org.jdesktop.wonderland.modules.appbase.client.DrawingSurfaceImageGraphics$UpdateProcessor.commit(DrawingSurfaceImageGraphics.java:338)
at org.jdesktop.mtgame.Renderer.processCommitList(Renderer.java:1407)
at org.jdesktop.mtgame.Renderer.run(Renderer.java:960)
WARNING 2:53:33 PM com.jmex.awt.input.AWTKeyInput toInputCode
unsupported key:154
WARNING 2:53:34 PM com.jmex.awt.input.AWTKeyInput toInputCode
unsupported key:154
WARNING 2:53:34 PM com.jmex.awt.input.AWTKeyInput toInputCode
unsupported key:524
WARNING 2:53:34 PM com.jmex.awt.input.AWTKeyInput toInputCode
unsupported key:524


 
pdfviewernotworking.png
openofficemenu.jpg
Reply all
Reply to author
Forward
0 new messages