Results 1 to 3 of 3

Thread: 16x16 showing up as 17x17

  1. #1

    Default 16x16 showing up as 17x17

    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.

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002


    This must be a bug - either in Clanlib or NS.. I'll take a look and get back to ya.
    Seth A. Robinson
    Robinson Technologies

  3. #3


    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.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts