Comments (13)
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.
I plan to do this. But I do not know when.
from free-tex-packer.
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.
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.
Great ideas! Right now I'm not planning new works on this project. You can implement these features.
from free-tex-packer.
Perfect!
from free-tex-packer.
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.
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.
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.
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.
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.
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.
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.
At the moment I don't have much time to develop this project. Feature requests are postponed.
from free-tex-packer.
Related Issues (20)
- Install update doesn't work properly.
- Custom Format Not Editable
- how to package spritesheet-only
- 0.6.7 Extrusion bug
- Exporting multiple spritesheet doesn't allow custom pattern on file name
- [Feature Request] Export Solar2D information and data HOT 2
- Is there a way to change how sprites are sorted based on name? 1,2,3... instead of 1,10,100,101...
- How to refresh the updated assets in Free Texture Packer?
- Corrupt undeletable file created upon generating json without an extension
- .ftpp projects are generated with absolute path + option to remove pivot points HOT 3
- PNG premultiplied alpha support please
- cannot paste with cmd+v on MacOS
- update to https for tinify.php url
- Support for pixel format and dithering
- How do disable pivot points being added to atlas?
- How does one convert an xml from adobe Animate to Free Texture Packer?
- Support .webp?
- Website is down! HOT 2
- Idea: custom pivot position by tile.
- wrong:split sheet can't be used HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from free-tex-packer.