clofresh

  • 2019년 1월 21일
  • 2014년 8월 7일에 가입함
  • Thanks for pointing me in the right direction. I submitted a pull request adding the yDown parameter and fixing the LÖVE and Corona runtimes:

    https://github.com/EsotericSoftware/spi ... s/pull/269

    I tested it out on both and it looks good, and fixes my bounding box bug as well, but please let me know if I missed something.

  • Hi,

    Can you tell me if I'm doing something wrong or if it's a bug in the spine-love runtime? The bounding box vertices seem to have inverted y coordinates.

    package.path = package.path .. ";../spine-runtimes/spine-love/?.lua;../spine-runtimes/?.lua"
    
    Spine = require('spine-love.spine')
    
    function love.load()
        local json = Spine.SkeletonJson.new()
        local skeletonData = json:readSkeletonDataFile("skeleton.json")
        skeleton = Spine.Skeleton.new(skeletonData)
        skeleton.x = 400
        skeleton.y = 300
        skeleton:updateWorldTransform()
        bounds = Spine.SkeletonBounds.new()
        bounds:update(skeleton, false)
    end
    
    function love.update(dt)
        skeleton:update(dt)
        x, y = love.mouse.getPosition()
    end
    
    function love.draw()
        love.graphics.setColor(255, 255, 255)
        love.graphics.print(string.format('(%f, %f)', x, y), 20, 20)
    
    love.graphics.setColor(0, 255, 0)
    local p1 = bounds:getPolygon(skeleton:getAttachment('p1', 'p1'))
    print('p1', unpack(p1))
    love.graphics.polygon('line', p1)
    
    local p2 = bounds:getPolygon(skeleton:getAttachment('p2', 'p2'))
    print('p2', unpack(p2))
    love.graphics.polygon('line', p2)
    
    love.graphics.setColor(255, 0, 0)
    love.graphics.point(400, 300)
    end
    

    I've attached a zip of the spine project and love code. I'm running spine-runtimes from master (059cc6), love 0.9.1 on OS X 10.9.4.


    EDIT:

    I created a hacky workaround, but there must be a better way:

    https://github.com/clofresh/spine-runti ... inverted-y

  • Hi,

    I came across this thread when searching for a GIMP plugin to export to Spine. Since the feature looks to be pretty low on your backlog, I decided to implement it myself:

    https://github.com/clofresh/gimp-spine

    Regarding GIMP Python version, I don't think it matters what version of python you have on your system since GIMP bundles its own version of python. At least that's the case for the OSX version I'm using.