Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Kharyus

Pages: [1]
1
SFML projects / Sprite Sheet Manipulator
« on: April 27, 2016, 11:30:31 pm »
Hello,

I have developed a program that detects sprites' boundaries inside a sprite sheet, and then splits them into separate files. This is particularly useful for fighting games' sprite sheets since they may have no clear pattern to how they are laid out.

It was done using SFML(of course) and TGUI. It currently only works on windows, but I intend to implement Linux support soon. It utilizes the GPL license.

The reason i've decided to do this is because i couldn't find anything like it at the time i needed this. Not too long ago though, I discovered there are other programs like mine in the internet. I've compared another free solution, and could see that mine has considerably better performance with faster loading times, so i guess there's still a reason to keep this project going.

Link to the github page: https://github.com/kharyus/Sprite-Sheet-Manipulator
If you want to download it, go to the releases tab. There are only the 64 bit binaries right now.

I hope people find this useful. :D

Screenshot:

2
Python / SFML + GUI Issue
« on: July 30, 2015, 05:56:48 pm »
Hello. :)
I'm having trouble using SFML with PyQt. I assume this is not something specific to the integration with PyQt since i had the same problem when i was trying to use SFML + WxWidgets.

Basically the problem is that when i resize my 'SFML + GUI' window the paintable area does not follow the new dimensions and a part of the window just stays black. Another issue is that when i resize the window, it grows upwards instead of downwards.
http://www.tiikoni.com/tis/view/?id=ad30d78
http://www.tiikoni.com/tis/view/?id=ea4d499
(the koala is rotating)

I wanted to know if there are some flags i need to adjust, if anyone had this problem before, or if anyone has any lead towards the issue. Thanks for your time.

3
Python / PyQt4 + PySFML feedback
« on: July 17, 2015, 02:21:27 pm »
Hello. I have found a little problem in the PyQt4 example in PySFML and thought i'd share just in case. I do not know if this is the suited place so feel free to delete this.

In the PyQt example that can be found here there seems to be a minor issue in the initialization order of things.

# let the derived class do its specific stuff
        self.onInit()
Is inside def showEvent(self, event):, which caused the onUpdate method of the derived class to run once before the onInit step, which in turn caused some errors because things had not been initialized yet. In c++ this would be a bigger problem, but i still thought it was a bother having those errors showing so i found the solution. The onInit call must be inside the base class' constructor, i put mine after
self.__dict__['display'] = self._HandledWindow.display
and things started to run smoothly.

Since i'm already writing this, in the example it was still required for me to figure how to start the program on my own. I suggest that it would be interesting having some code like this available in the example so the user could have a running application from the start
# Main part
app = QApplication(sys.argv)

# Qt Frame
mainframe = QFrame()
mainframe.setWindowTitle("QtPySFML")
mainframe.resize(500, 500)
mainframe.show()

# QSFML Canvas
position = QPoint()
position.setX(0)
position.setY(0)
size = QSize()
size.setHeight(400)
size.setWidth(400)
# this SFMLCanvas class is the derived class that the user must create basing on QSFMLCanvas
sfmlwidget = SFMLCanvas(mainframe, position, size)
sfmlwidget .show()

sys.exit(app.exec_())

I'm not really used to giving feedback so i don't know if i'm being a bother, but thought i'd share this stuff.

Pages: [1]
anything