• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

converting J2SE code to J2ME

 
chinedu iroanyah
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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
*/


 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • 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
  • 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: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hear what?
 
Maneesh Godbole
Saloon Keeper
Posts: 11312
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In future, while posting code, please UseCodeTags
 
Pradeep Gudipati
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic