Giter Club home page Giter Club logo

Comments (13)

MistahMojo avatar MistahMojo commented on May 21, 2024 3

Hey, are pivot points still being worked upon? This software is great and it's the only big thing yet to be added.

from free-tex-packer.

odrick avatar odrick commented on May 21, 2024 1

I plan to do this. But I do not know when.

from free-tex-packer.

123survesh avatar 123survesh commented on May 21, 2024 1

Hi @JannikGM , so a pivot point is going to define a point in an image based on which its going to be positioned on screen.
111947-pivott

The above image illustrates a simple use case. So now to position the stickman based on the default pivot point, we have to factor in the space between the pivot point and the stickman, when we are writing code to position it.

If we say position the stickman to position (100, 100) in a 2D plane, then the image will be positioned such that the pivot point is in (100, 100). But we would want our stickman's body to be on (100, 100) and using the default pivot will create an undesired offset. So to get out stickman's body on (100, 100), we may have to manually set the image's pivot in code (if supported), or change the position from (100, 100) to say (110, 120).

But if we had the ability to choose our own pivot point, say a point on the stickman, then we just have to worry about positioning the stickman and not the difference between the default pivot point and our desired pivot point. This usage also applies for rotation based on a pivot point as you have asked.

Pivots usually do not pose a problem for people using Game Engines like Unity or Godot, but for those using Gaming frameworks like Phaser, where everything is coded by hand (mostly), people bring in the pivot data using visual editors like texture packers.

from free-tex-packer.

odrick avatar odrick commented on May 21, 2024

Great ideas! Right now I'm not planning new works on this project. You can implement these features.

from free-tex-packer.

rtalon83 avatar rtalon83 commented on May 21, 2024

Perfect!

from free-tex-packer.

rtalon83 avatar rtalon83 commented on May 21, 2024

Hi!

I'm making the pivot function but I'm having trouble because I dont know how do it without change critical code.
The only solution I see would be a simple panel (like a Animation panel) where the user only can select only one image.
What do you think?

Another question.
If I choose a huge image and following this last way, what happend it? we scale the image to fixed dimension.

from free-tex-packer.

odrick avatar odrick commented on May 21, 2024

This is a very complex task. We need:

  • ui for multiple images pivot editing
  • transfer pivot information to exporters
  • implement pivots in exporters templates
  • store pivot information in project file
  • implement pivots in ftp core (as addition parameter? I'm not sure...)

I think that single window for one image not enough...

from free-tex-packer.

rtalon83 avatar rtalon83 commented on May 21, 2024

I was doing a test using a simple ui where you can see all images (simple order) but I saw a problem when you have a lot of large images (chrome memory increased 2 GB). Maybe the problem is to use Canvas rendering instead of WebGl, I don't know perfectly.
I think that the most important is making a correct UI.

from free-tex-packer.

eduke2k avatar eduke2k commented on May 21, 2024

Great to see that this feature is being worked on. Came here because that's the last thing I would need as well. Also, I think a single window/screen per selected sprite would be enough. The Unity editor, for example, can only edit one sprite at a time, was far as I remeber.

from free-tex-packer.

wtfiwinomgs avatar wtfiwinomgs commented on May 21, 2024

yea +1 from me as well need pivot point. is there any update since jan of this year on this feature?

from free-tex-packer.

wtfiwinomgs avatar wtfiwinomgs commented on May 21, 2024

also if I may add, for animation with lots of frames, have a way to import pivot points from a list of x, y via .txt or something.

from free-tex-packer.

JannikGM avatar JannikGM commented on May 21, 2024

Can someone explain, possibly with images, what this issue is about? I don't quite understand what workflow or part of the software would benefit from having a pivot point. Are we talking about custom rotations? Is this for manual placement?

from free-tex-packer.

odrick avatar odrick commented on May 21, 2024

At the moment I don't have much time to develop this project. Feature requests are postponed.

from free-tex-packer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.