Web2D_Games
Web2D_Games copied to clipboard
Issues with Precision in Handling Quad Images in Photoshop
Hello rufaswan,
I have been developing a Photoshop plugin that segments quads and automatically creates individual layers for each frame, as part of utilizing your Web2D_Games project. However, I've encountered some issues regarding image precision.
In my plugin, I've noticed that Photoshop seems to handle image unit movements using only integer pixel units, which conflicts with the floating-point type data in the quad format. This integer pixel limitation leads to some discrepancies when transforming images.
To mitigate this, I've currently implemented a method that rounds up all pixel values. While this approach works well for image segmentation, it is less than ideal when collecting frame data and performing transformations.
I am exploring solutions to enhance the precision of data handling. Do you have any suggestions or potential solutions for dealing with such precision issues? I aim to improve this aspect and plan to commit my code to a new repository once the issue is resolved.
Looking forward to your response, and thank you very much for your time and assistance!