Show Posts

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.


Topics - BarbosaRTS

Pages: [1]
1
Support / Texture Scratching
« on: June 10, 2014, 03:45:52 pm »
Hi,

I would like to realize an effect of scratching, with the touch scratch a texture to appear the other one.

I puts an image " scratch here " in first texture on a plane object and second image in the second texture.

You have an idea?


2
Support / Multi-texture 3Ds
« on: June 06, 2014, 04:12:01 pm »
Hello,

How to load multi textured object in jpct-ae?

I load my textures  ;D:

Code: [Select]
String[] textures = getAssets ().list("textures");
   
for (int i = 0; i < textures.length; ++i)
{
            TextureManager.getInstance().addTexture(textures[i], new Texture(BitmapHelper.rescale(BitmapHelper.loadImage(getResources(). getAssets (). open ("textures" + "/" + textures[i])), 256, 256)));
}


After I load my model in .3ds format  :):

Code: [Select]
ImageTargetsRenderer.obj3D = Object3D.mergeAll(Loader.load3DS(stream, absScale));

I use settexture()  :-\ :

Code: [Select]
obj3D.setTexture("Metal_Co");
obj3D.setTexture("Metal_Ro");

But finally stay just second texture  ??? :( :(

How to associate the texture with good object and not all objects?

I don't understand how load textures and show them in good place.

help please.

Pages: [1]