21/10/12

GWT Augmented Reality - HOWTO - step 1

Welcome to the second step of using NyARToolkit in a GWT project.

NOTE:
At the end of the previous step we used the super-source tag; someone may have noticed that when you use super-source you end up with an eclipse project with errors: the project compiles with GWT and works without problems but eclipse signals errors in all the super-source'd classes (actually because package names are not correct).
To find the best solution for this annoying situation, last week I asked on the  google-web-toolkit google group. Actually the full solution is harder than we can afford in this post but you can find here the thread; in our demo-project without serverside component and without tests the first response in the thread is enough, but for a bigger application some care is needed.



20/10/12

WebGL tinysample

 Tiny WebGL/Elemental sample

  1. Donwload latest GWT  (here) and setup a new project.
     
  2. Add to the build path gwt-elemental.jar (is in the unpacked gwt 2.5 archive).
     
  3. Add to the gwt.xml file the line  <inherits name='elemental.Elemental'/>.
     
  4. Use TestWGLdrawrectangles.java as EntryPoint.
     
  5. Compile and enjoy.

08/10/12

WebGL/GWT Fundamentals/Elemental, tiny update, texture loading works on firefox


Just after the publication of our  first post on Elemental and WebGL  (here) we found that the first two  examples we wrote for the post were running on firefox but not the remaining three.
The sample that uses a video as background image requires WebRTC so it is not a surprise, but
the sample that just loads an image and draws it in a canvas and the one with a small rotating cube were supposed to be 'portable'.


03/10/12

GWT Augmented Reality - HOWTO - step 0

This post is the first of a short (we hope) series describing the steps required to use NyARToolkit in a GWT/Elemental project.





The sample is at http://www.jooink.com/experiments/ARtest1/ (use chrome !!)