• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

converting J2SE code to J2ME

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
good day all
please i would be most gratefull if anyone could help me with this J2SE code that is meant for AR (Augmented Reality) it detects a marker "hiro" and displays a 3D object. the challenge is that I am trying to implement the same code in J2ME but i don't know how to do it.please could anyone help?below is the J2SE source code

// MultiNyAR.java
// Andrew Davison, ad@fivedots.coe.psu.ac.th, April 2010

/* An Java3D NyARToolkit example using multiple markers and models,
that reports position and rotation information.
NYARToolkit is available at:
http://nyatla.jp/nyartoolkit/wiki/index.php?NyARToolkit%20for%20Java.en

JMF also required:
http://java.sun.com/javase/technologies/desktop/media/jmf/

NCSA Portfolio is used to load the models. It is available at:
http://fivedots.coe.psu.ac.th/~ad/jg/ch9/

--------------------
Usage:
> compile *.java
> run MultiNyAR
*/


 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JME has a very different GUI from JSE - it supports neither AWT nor Swing. But since the code isn't very long, it shouldn't be too hard to find JME or LWUIT equivalents for the GUI elements.

But I'd start by finding out whether the various libraries you're using (Java3D, JMF, NyARToolkit) work on JME. Java3D in particular comes partly as native code, so my guess would be that it does not, which would throw the whole idea in doubt.
 
chinedu iroanyah
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:JME has a very different GUI from JSE - it supports neither AWT nor Swing. But since the code isn't very long, it shouldn't be too hard to find JME or LWUIT equivalents for the GUI elements.

But I'd start by finding out whether the various libraries you're using (Java3D, JMF, NyARToolkit) work on JME. Java3D in particular comes partly as native code, so my guess would be that it does not, which would throw the whole idea in doubt.



i would be most gratefull if i can hear from you soon
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hear what?
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In future, while posting code, please UseCodeTags
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Please take a look at J2ME Polish Library.

It has most of the Container structure that you are using albeit ported to j2me.

Thanks
Pradeep
 
reply
    Bookmark Topic Watch Topic
  • New Topic