Java-based rescomp not picking up flipped tiles?

SGDK only sub forum

Moderator: Stef

Post Reply
hotrodx
Very interested
Posts: 50
Joined: Thu Mar 21, 2019 1:23 pm

Java-based rescomp not picking up flipped tiles?

Post by hotrodx » Sun Apr 28, 2019 7:46 am

I just recently tried switching to the Java-based rescomp. The new resulting IMAGE I am using now had garbage tiles (where it didn't have before on standalone rescomp). Upon inspecting the VRAM, I noticed that the flipped tiles were no longer optimized, resulting in spilling over the allotted Plane VRAM.

My res file reads:

Code: Select all

IMAGE level01_tilemap "tilemaps/level01.png" 0 1 0
Did I miss anything? Any help or suggestions are appreciated.

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Java-based rescomp not picking up flipped tiles?

Post by Stef » Mon Apr 29, 2019 9:01 am

Your image definition :

Code: Select all

IMAGE level01_tilemap "tilemaps/level01.png" 0 1 0
looks correct but i cannot reproduce the problem with 'sprite' example which is using flipped tiles too (at least i believe it has some) for BG.
Is it possible to post a minimum reproducible example image so i can test in same condition ? Thanks :)

hotrodx
Very interested
Posts: 50
Joined: Thu Mar 21, 2019 1:23 pm

Re: Java-based rescomp not picking up flipped tiles?

Post by hotrodx » Mon Apr 29, 2019 9:24 am

Here is the image. Works on old rescomp.
Attachments
level01.zip
(24.18 KiB) Downloaded 181 times

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Java-based rescomp not picking up flipped tiles?

Post by Stef » Mon Apr 29, 2019 9:48 am

Oh sorry i found the stupid typo just looking at the sources, indeed H/V flipped tiles weren't properly detected.
Thanks for the image. i already pushed the fix on github repository :)

hotrodx
Very interested
Posts: 50
Joined: Thu Mar 21, 2019 1:23 pm

Re: Java-based rescomp not picking up flipped tiles?

Post by hotrodx » Mon Apr 29, 2019 10:19 am

Thanks!

EDIT: Confirmed working

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Java-based rescomp not picking up flipped tiles?

Post by Stef » Mon Apr 29, 2019 1:17 pm

Thanks for your report :D

Post Reply