1
Support / Simple AR development with JPCT-AE?
« on: September 10, 2017, 12:51:48 am »
I had very good memory of using JPCT a few years back. Now I'm trying to do AR programming. Does it support AR purely in Android (no native/NDK)?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
waterput = Loader.loadMD2(stream("waterput.md2"),1f);
tm.addTexture("waterput", new Texture(res.openRawResource(R.raw.waterputtex)));
waterput.setTexture("waterput");
waterput.clearAnimation();
waterput.translate(170, -35, -130);
world.addObject(waterput);
waterput.strip();
BufferedInputStream stream(String name) throws IOException{
//TODO
String objURL = "http://www.xxx.edu/xxx/"+name;
URLConnection conn = new URL(objURL).openConnection();
conn.connect();
BufferedInputStream bis = new BufferedInputStream(conn
.getInputStream());
Loader.clearCache();
return bis;
}
btw, I do not need all the keyframes in the .md2 files, so I call clearAnimation() to remove them.