PDA

View Full Version : Bug in PatternIndex



Nightmare_82
13-09-2004, 07:22 PM
When you have an image withvertical and horizontal tiles, the patternIndex works incorect..
It should be :
0 1 2 3
4 5 6 7 ...

but actually it is:
0 2 4 6
1 3 5 7 ...

I tried to find the reason but I wasn't succesfull.

Paulius
13-09-2004, 07:53 PM
From you?¢_~re example it looks like tiles are counted top to bottom first, it should be easy enough to adapt you?¢_Tre tile counting to this.

Nightmare_82
13-09-2004, 10:03 PM
yes, thats right. In the last version(Powerdraw3) patterns were numbered like I mentioned.
I only want to know if it's a bug or if the numbering has changed in the ne version.

LP
13-09-2004, 10:16 PM
Greetings! Actually the correct and used numbering is:
0 1 2 3
4 5 6 7
I didn't read your post well at first (this is an EDIT), but if the numbering is as you have shown, then it's probably a bug. If you are using the recent version of Asphyre then it's probably already fixed (I'll release new version as soon as I finish some minor changes I'm making in the structure of the library).

Cheers,
Lifepower

Nightmare_82
13-09-2004, 10:22 PM
I used the actual version. The VTD-Tool also creates the frames in the wrong order.

snorga
14-09-2004, 01:53 PM
This sounds like the same problem i had.

See my tread about it, its the one named "LoadFromFile".
http://terraqueous.f2o.org/dgdev/viewtopic.php?t=1510

Nightmare_82
14-09-2004, 02:27 PM
thanks, that solves my problem.

snorga
14-09-2004, 03:29 PM
Cool 8)

VTD-Tool will still have the problem, until Lifepower releases a new version.
But it sounds like, it is not that far away :wink:

LP
14-09-2004, 09:31 PM
It's finished... I'm writing examples and trying to rewrite Hasteroids game - Hab made it as an example for PowerDraw3 but it was buggy and the code was hard to read... basically I wouldn't call it an example. However, with new particle and object engine - it's a lot easier than before. Sorry for not releasing new version right away but I'd rather prefer releasing more complete version.