Hi,
do you have some plan about integrating ARCore to android edition of JPCT?
Thanks.
do you have some plan about integrating ARCore to android edition of JPCT?
Thanks.
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.
Show posts MenumWorld.renderScene(mFrameBuffer);
mWorld.draw(mFrameBuffer);
Texture texture1 = new Texture(getInputStream("obj/3/texture.jpg"));
TextureManager.getInstance().addTexture("texture", texture1);
Texture texture2 = new Texture(getInputStream("obj/3/kola.jpg"));
TextureManager.getInstance().addTexture("texture2", texture2);
Texture texture3 = new Texture(getInputStream("obj/3/hlava.jpg"));
TextureManager.getInstance().addTexture("texture3", texture3);
object3D = loadModelOBJ("obj/3/robot.obj", "obj/3/robot.mtl", 10);
object3D.setTexture("texture");
object3D.setTexture("texture2");
object3D.setTexture("texture3");
object3D.setTexture("texture");...
there is no texture on object.texture = new Texture(getInputStream("starwarsmodel/mash_u1_v1.jpg"));
private InputStream getInputStream(String fileName) {
InputStream stream = null;
try {
stream = mContext.getAssets().open(fileName);
} catch (IOException e) {
e.printStackTrace();
}
return stream;
}
world.draw(fb);
Texture texture = new Texture(BitmapHelper.rescale(BitmapHelper.convert(mContext.getResources().getDrawable(R.drawable.mash_u1_v1)), 64, 64));
TextureManager.getInstance().addTexture("texture", texture);
object3D.calcTextureWrap();
object3D.setTexture("texture");
object3D.strip();
object3D.build();
mShadowHelper.addReceiver(table);
buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_NORMAL);
buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);
buffer.enableRenderer(IRenderer.RENDERER_OPENGL, IRenderer.MODE_OPENGL);
buffer.setPaintListener(this);
Page created in 0.024 seconds with 12 queries.