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.

Messages - BarbosaRTS

Pages: [1]
Support / Re: Texture Scratching
« on: June 11, 2014, 02:59:49 pm »
Finally I add two object3D, picture under, picture overground.

When getAction return MOVE i reduce transparency of Object :D.

Thank you.

Support / Re: Texture Scratching
« on: June 11, 2014, 11:12:55 am »
Thank you.

I blend both textures, it's ok for apply effect with seteffect.
But now how make this effect to apply alpha reduction.

ITextureEffect :

init, apply, containsAlpha ......  ???

Support / Texture Scratching
« on: June 10, 2014, 03:45:52 pm »

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?

Support / Re: Multi-texture 3Ds
« on: June 10, 2014, 08:52:39 am »
I Don't need readtextures finally. because the method of link working thank you  :).

Support / Re: Multi-texture 3Ds
« on: June 09, 2014, 02:01:50 pm »
I have just verified with Deep exploration.
I had good name but in my model nothing was associated.
Maybe because my model come from a conversion of sketchup - > 3ds

Thank you for your help.

Support / Re: Multi-texture 3Ds
« on: June 09, 2014, 09:04:05 am »
I use file 3ds.
I thus have to use the function readTextureNames3DS I presume?


Object3D[] Objs = Loader.load3DS(stream, absScale);
String [] textureNames = Loader.readTextureNames3DS(stream);


java.lang.RuntimeException: [ 1402298151668 ] - ERROR: Couldn't read file from InputStream

Support / Re: Multi-texture 3Ds
« on: June 07, 2014, 09:31:37 am »
Thank you for your answer.

I have already tried manually but for my application it would not be adapted.

I have seen this link, but I does not understand to let make the loader...

Just use TextureManager? Because it also I have already tried without succes.

If you have an example of code to give me I would be very grateful to you.

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

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]

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]