www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: guillaume on January 04, 2012, 09:49:51 am

Title: apply textureEffect
Post by: guillaume on January 04, 2012, 09:49:51 am
what's the exact format of  param  src  in ITextueEffect. apply(int[] dest,  int src[]) ?
I have a  128x128 texture and in apply() , I found src.length is 16513., but 128x128=16384
they are not the same.
Title: Re: apply textureEffect
Post by: EgonOlsen on January 04, 2012, 08:57:42 pm
In jPCT-AE? No, that shouldn't be the case. In desktop jPCT...yes. The format in desktop jPCT is 128*128 + 128+1, but you can completely ignore the last 129 entries. There are used by the software renderer only. But as said, in jPCT-AE, this isn't the case... ???
Title: Re: apply textureEffect
Post by: guillaume on January 05, 2012, 01:08:50 am
In jPCT-AE? No, that shouldn't be the case. In desktop jPCT...yes. The format in desktop jPCT is 128*128 + 128+1, but you can completely ignore the last 129 entries. There are used by the software renderer only. But as said, in jPCT-AE, this isn't the case... ???

oh, yes. it's in desktop jPCT.   I develop my app in desktop,
then use a android wrapper to depoly them to android.

thanks.