View Full Version : 16x16 showing up as 17x17

07-28-2008, 11:07 PM
Finally got around to making a new coin graphic (same lua code from TreeWorld still) to better match the scale of my game, but it's not rendering properly.

The graphic:


The visual style:


<profile name="ent_coin">
<anim state="idle_left" spritename="spin" mirrorx="no" x="0" y="0"/>

<sprite name="spin">
<image file="coin.png">
<grid size="16,16" array="8,2"/>
<translation origin="bottom"/>
<animation pingpong="no" loop="yes" speed="65"/>


What it looks like in-game:


I've also tried using a fileseq with the individual frames output by Max, but the coin still ends up tiling to 17x17 pixels.

Is this a bug? Or does Novashell/ClanLib just kind of expect there to be a 1px buffer on two sides of a frame?

It's not a showstopper either way since I can just scale down the coin a bit (probably will anyway for better AA). It just seemed a bit odd.

07-29-2008, 04:46 AM
This must be a bug - either in Clanlib or NS.. I'll take a look and get back to ya. :cool:

07-29-2008, 06:40 AM
No hurry, I scaled it down so it fits inside of 14 to fix the jaggies caused by the camera clipping right after posting. With the way it was tiling, I just figured there might be a fencepost error, a UV clamping glitch, or something you might like to know about.