madavd

  • 29 juin 2015
  • Inscrit 27 oct. 2014
  • I am writing a Spine runtime for SDL(willing to open-source if it works), and until now everything went smoothly (Using SFML Runtime as reference). However i'am having a hard time getting the correct UV coordinates... everything else is working.
    I am pretty sure the problem is here, this is from the sfml-runtime:

    texture = (Texture * )((AtlasRegion * )regionAttachment->rendererObject)->page->rendererObject;
    auto size = texture.getSize();
    vertices[0].texCoords.x = regionAttachment->uvs[VERTEX_X1] * size.x;
    vertices[0].texCoords.y = regionAttachment->uvs[VERTEX_Y1] * size.y;

    I am doing this:

    texture = (GLTexture * )((AtlasRegion * )regionAttachment->rendererObject)->page->rendererObject;
    auto size = {hardCodedSizeForTesting, hardCodedSizeForTesting};
    vertices[0].setUv(regionAttachment->uvs[VERTEX_X1] * size.x, regionAttachment->uvs[VERTEX_Y1] * size.y);

    The texture pointer here returns invalid, i cant see any special conversion in the sfml runtime. My texture class/struct needs a specific memory layout or something? Does the c runtime change the struct values?

    Thank you!


    Ok guys we got it.
    Thanks anyway.

  • Hello friends, :hi:

    We at Hyder Games(Independent game developer in Brazil) are anxious to get some feedback on our first project, an adventure game called The Mountain's Heart.

    Please let us know what you think! :wait: Keep in mind everything here is not much more than a prototype.

    Synopsis

    Life in the world of Allurian was happy and full of peace. A paradise where all creatures lived in perfect harmony. The Gods had given the world a sacred gift hidden amidst the mountains: A beating heart, the essence of life and the pillar of it all.

    Gilgrim grew listening to stories about his father Gelthorn and how he became a great hero of Allurian. It goes something like this:

    The world's heart was corrupted and tainted by evil. The legends say that a plague came from heaven. Evil beasts emerged from it, and existing creatures were corrupted. Gelthorn gathered his army and entered the heart of the mountain, overcoming the forces of evil and saving the world.

    Allurian was no longer the same, but there was hope to fully restore to what it once was: After victory Gelthorn found a dragon egg, said hold the key to reign Allurian in peace for eternity.[/quote]

    Still new, Gilgrim saw Terek murdering his father in the night, stealing the dragon's egg. Vowing revenge, Gilgrim fled as his village was subdued by Terek. Now he seeks the dragon egg to avenge his father and restore harmony in Allurian again ...

    Some Concepts/Assets
    Battle in the village
    Cinematic

    This is our main character Gilgrim

    Our level editor
    We plan to ship it with the game(The player will be able to use the map files in it's own game if he wants to), hopefully getting it to work with steam workshop. This is just a teaser.
    Level Editor preview!

    Everything here could change any minute, we tought it would be nice to get some feedback here before we fully commit to a finished game. We plan to do a series of posts from both the artistic and programming perspectives of what we learned since it's our first game and we learned so much already.

    Thanks everyone!

  • Is the C runtime updated for the new scaling method? Seeing some crazy positions in game right now.

  • Nate a écrit

    Disable rotation and scale inheritance will work.

    Well I don't think it work as it should.

    As you can see i deactivated the rotation and scale inheritance (in SETUP mode), and the result (in ANIMATE mode) was very funny actually. The thing is, I probably made something wrong to end up with this result.

  • You see Nate, I use a lot of flip bones and scale on my animations.
    The first screenshot was after i put the "


    skew" on the spine, and pretty much all the animations were broken. :drunk:
    The second screenshot is from the old system, everything seems fine.
    Sorry I didn't explained on the other post.

  • I think you can imagine the shock when I opened the program. :S

  • Yeah, i tried everything and then i finally decided to reimport the data.

  • i am having trouble activating events in some skeletons, i uploaded a video showing whats happening:

    https://www.youtube.com/watch?v=ZkDC9Bg9_fQ

    Any ideias?

    Thanks.


    I solved the problem by exporting the data then importing it back again.