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.

Messages - mpeg3

Pages: [1]
A PR would be even more appreciated.  ;)

Pulled down the older Pull Request, added a new one in the light of Mario's comment.

New one is at:


SFML website / Re: Please add hasFocus() to the Events-Window tutorial
« on: August 24, 2017, 02:08:57 pm »
I think Hapax points hold. Also, in the "Playing with the window" part of the "Opening and managing a SFML window" tutorial, it reads
You can refer to the API documentation for a complete list of sf::Window's functions.
because we don't want to discuss every function in the tutorial -- it is intended to give the basic understanding of the system to then be able to use the documentation efficiently.

That being said, I think it would be okay to have something like this added to the tutorial. Would you agree?
Yes, I agree.

SFML projects / Re: Faux Car
« on: February 15, 2017, 11:20:31 pm »
The pixelation is currently togglable.

One problem, though, is that I need a render texture to pixelate but can't use anti-alias on the render texture. This would mean that to use anti-alias, I would have to provide a work around that skips the render texture and draws directly onto the screen :(

Another problem, too, is that the "quality of the pixels" would determine the level of detail required in the actual textures. If pixelated, lesser textures are needed. If not pixelated, more detail can be added.

See? A dilemma! ;D
It's looking great. Well done. BTW I vote for non-pixelated version!

General discussions / Re: 2.4.2 released!
« on: February 14, 2017, 07:38:05 pm »
The long overdue second path version SFML 2.4.2 has been released! :)

The biggest changes are regarding context management again, where we fixed some pending issues.

The full list of bugfixes can be found in the changelog: http://www.sfml-dev.org/changelog.php#sfml-2.4.2

Visit http://www.sfml-dev.org/ for download instructions and extensive documentation. We hope this release is useful to you and would love to get some feedback in our forums!
Thanks for the fantastic work!

SFML website / Re: Please add hasFocus() to the Events-Window tutorial
« on: February 14, 2017, 07:25:21 pm »
The hasFocus() and requestFocus() methods should not be included in a tutorial about events as they are not events.
If they are to included in a tutorial, it should be the Opening and managing a SFML window tutorial.

I see your point but being pragmatic about it and adding a one line (even a one word hyperlink) reference will go a long way.
I am not asking about a change to the official API reference guide but to the tutorial. One word can help a lot, one word will not disturb anyone that don't need it.

SFML website / Please add hasFocus() to the Events-Window tutorial
« on: February 11, 2017, 09:12:49 am »

When searching about window focus, the window-events tutorial page comes up in web search engine results. Page mentions lost/gainedFocus() which is great but we also have hasFocus() and requestFocus() which is the real deal from what I read.

I believe these focus related functions should be on the tutorial page, even if it's just a single sentence, to ensure all newcomers reading about focus is aware of these two functions.

Here is an example web search showing very old stuff and NOT making clear that these new two functions exist:

I have created a pull request for this.


SFML projects / Re: Voronoi Generator
« on: January 17, 2017, 08:26:58 pm »
aah! so this is the magic behind Picassoesque visuals. very cool!

SFML projects / Re: Cendric: An RPG Platformer
« on: January 16, 2017, 02:21:18 am »
Just gave it a quick try - it's amazing! Keep up the good work :)

Cool! Would one of you provide a fix for https://github.com/SFML/SFML-Website/issues/46, especially with something with a clean licence?  :D

Hello Hiura,

In response to your question, for a fix for SFML website issue #46 (public domain clone of the wiki tileset) please feel free to use the two files in the 1st post. It would do the job till someone supply a better ready-to-use file.


Here's an awesome looking tileset which has really cool license which permits you to distribute it easily:


If the license is still not too good, I think that having good looking tileset for tutorials is really important. Ugly tilesets can provide some bad feelings about the library/tutorials.

however it might also help adding a corresponding pixel editor file so that completely new people to the subject
Isn't a simple .png enough for this? Why create dependency on some editor considering png can be edited with nearly every editor?

Better looking tile is definitely, well, better.

My suggestion about also supplying pyxel edit file is not creating any dependency however. It is merely providing another file for those who wish to manipulate tiles easily with a special software. Those who do not wish so are not forced to use it, or even download the second file.

edit: typo

This was brought up before; no-one was sure which licence is applied to the image and not sure who created it or couldn't contact its creator. Therefore, sharing this image might be against the limits allowed by the creator.

That's a valid point. I have edited 1st post, removed the files I created by modifying unknown artist's work. Instead added hopeless artist's work (mine). it's ugly but gets the point across, I still think it would be beneficial to give people something they can open and inspect. license is cc0, public domain, free to add if you like.


For other beginners following the vertex tutorial may I suggest adding a link to the file mentioned in the article.

tutorial: Designing  your own entities with vertex arrays
link: http://www.sfml-dev.org/tutorials/2.3/graphics-vertex-array.php

main file I suggest adding to the wiki is "tileset.png" (attached to this post)

however it might also help adding a corresponding pixel editor file so that completely new people to the subject can download the free application, open it in the pixel editor software and see how it is formatted to create their own. I am using Pyxel Edit for this purpose and I have also attached the corresponding .pyxel file for this application (attached to this post). This is a commercial software package but a free (older) version can be obtained free of charge from the official website (I'm not affiliated and this is not a hidden ad :P ).


EDIT: Removed unknown artist's tiles.

EDIT: Added my own tile files & added embedded picture.

Pages: [1]