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 - Haze

Pages: 1 [2] 3 4 ... 9
16
I just grab a texture which has all the letters. The constructor also takes a "mapping" from characters to indices. Otherwise I mostly copied the interface of sf::Font, returning an sf::Glyph, and not supporting italic/bold/...

Is your bitmap font a monospace one (all letters have the same width and height) ? If it's the case, your bitmap font class doesn't need to return a glyph, a simple texture sub rectangle is enough, and the API will be much simpler than sf::Font's one. A simple bitmap font is merely a tileset, and your bitmap texts are tilemaps.

Feel free to have a look at my implementation of BitmapFont/BitmapText if you want (I closely followed sf::Font/sf::Text semantics). See screenshot.

On a side note, sf::Font also supports bitmap fonts, and rendering at small size has been fixed in the upcoming 2.2 release, making custom BitmapFont classes quite useless (except if you really need an image).

17
Graphics / Re: using the erase function of sf::sting
« on: May 27, 2014, 06:16:10 am »
Before manipulating a character from a TextEntered event, you should check if the character is actually printable, otherwise you probably want to discard it.
You can use the isprint function:
if (isprint(event.text.unicode))
{
...



18
General discussions / Re: SFML 3 - What is your vision?
« on: April 28, 2014, 04:48:17 pm »
One feature I would love to see added in the Graphics module is rendering masks, especially texture-based masks.
There's already a task in the tracker: issue #1 - Implement rendering masks
I understand this is something quite big but it's been 3 years already, and some user has already proposed a working implementation. Please see this post, you can see in the screenshots what kind of neat tricks you can achieve with this feature.


19
General discussions / Re: Future release of SFML 2.2 (feedback needed)
« on: April 07, 2014, 04:44:33 pm »
Features I'm really looking forward:
- Mouse lock/grab (issue #394)
- Allow alt-tab in fullscreen mode in Linux (pull #425)

20
General / Re: opinions: how to handle resource errors?
« on: December 14, 2013, 09:01:08 am »
Regarding the questions from the two previous posters about displaying a MessageBox in Linux:

Zenity looks better as it uses the native desktop theme, but it may not be available on all systems.
zenity --text="Bad news" --error

There is also xmessage, which is a X11 app provided with the X11 server, so you can safely assume it's available:
xmessage "Bad news"

and on Linux... well, I doubt you can assume any specific text editor is installed, unfortunately.
xedit will do the job! (it's another X11 app).


21
I remember this feature has already been requested quite early in SFML history. See previous threads:
[Clipboard Support]
[cross platform clipboard support?]

Well, I've seen Laurent rejecting feature requests with much stronger terms, so maybe there's still hope ;)
Especially since it seems to be quite a popular one.

And thanks to GLFW3, there's a portable, lightweight implementation which can be easily adapted to SFML:
Windows implementation @github
Cocoa implementation @github
X11 implementation @github

22
General discussions / Re: A new logo for SFML
« on: April 22, 2013, 08:10:56 pm »
Laurent, I think it's great you've decided to put a deadline on the logo.
I expect this week to be full of news propositions!

And thanks Nexus and eXpl0it3r for these wise words, it was clear we couldn't keep suggesting new ideas forever, especially since it's holding back the SFML 2.0 release.

Ignore the anti-aliasing, it's scaled. Considering only the symbol, the thing I like more in
https://legacy.sfmluploads.org/cache/pics/348_variation7.png than in http://i.imgur.com/h5vyUHh.png
is that it doesn't look so soft/rounded. The first one makes a more... hm, "self-confident" or "resolute" impression :)
Also, the thickness of the power symbol matches the font's thickness better. Maybe we can try with a slightly less round symbol?
But the round logo matches better the roundness of the font... also I'm not a fan of the green, it looks too grey-ish. What about a lighter one, closer to the website banner?

@eigenbom nice variations. I like the last four ones and the double arrow.


Here's a revamp of my previous attemp, I tried to keep a curvy arrow while getting ride of sine wave.



with text reflection:


double arrow:


I'm not sure if the arrow should overlap the first or last letter...


23
General discussions / Re: A new logo for SFML
« on: April 20, 2013, 05:28:30 pm »
Hey Haze, try making the arrow blue or something to contrast the already strong green page layout.
I agree, it could be better with another colour, it looks too boring right now. The green/white colour scheme worked better with the ellipse logo.

What about "arrow-man", a cool cartoon guy leaned on the 'S' of SFML? ;D

The more I think about it, the more I feel like we need a mascot. Look at all those libraries that use simple shapes as logos, you never remember them, and hardly identify them when you just see the logo. But look at the Ogre engine. Although the "Ogre" word has nothing to do with 3D rendering, I think it's really cool and does a pretty good job as a logo.
I'm afraid a human cartoon guy would look childish and goofy, but an animal mascot would be great.
They are widely popular among open source projects and users love them, I suggest you have a look at http://chl.be/mascots/ for some inspiration.

However, it will require some skills... and you also need to give some directions, or it will takes months, especially if we start from scratch...
Among the previous ideas, there were a falcon and raptor, what do you think about that?

Java uses a thing that isn't even human but looks personified.
The Java mascot is as ugly as the language it's portraying  :P

24
General discussions / Re: A new logo for SFML
« on: April 19, 2013, 07:29:45 pm »
I can't decide alone, I'd like to find a logo that almost everyone likes.
Well, you'll nevertheless have the final say, so I think it would be better if you can give us some dos and don'ts.
Do you plan to drop all the previous ideas (ellipse/orbit, pentagon, power button), and should we focus on arrow derivations instead?

Some integration tests...

#1


#2 (increased drop shadow)


#3 (reflection on text)


[attachment deleted by admin]

25
General discussions / Re: A new logo for SFML
« on: April 18, 2013, 03:43:21 pm »
Maybe one that looks more like an actual arrow (shot by a bow) rather than the logistic arrow.
Sure an arrow is fast, but there is quite a gap from a medieval weapon to a multimedia library, don't you think it would look out of place?


The arrow looks like a wave/sine, doesn't it convey a wrong impression? (like audio/analysis stuff)
I thought it was a sine wave at first (and it probably is), and the first thing that came to me was a math library. I think Haze's logo is visually nice, but I'm having a hard time relating it to SFML itself.
The sine was semi-intended. I've tried straight arrows but the results would look too generic for my tastes, so I went with a curve.
Regarding the conveyed impression, I believe a curve is strongly associated with 2D graphics, I think it could fit the purpose.


And in terms of being "fast" (which is what the arrow was originally meant to represent), a sine wave doesn't look very fast (but then again, I suppose the arrow can mean something other than "fast").
Point taken! The curve has been decreased so the arrow is a bit more straight. I've added a light gradient to make the arrow darker at its beginning, I hope it reminds less of a sine.





[attachment deleted by admin]

26
General discussions / Re: A new logo for SFML
« on: April 17, 2013, 06:42:16 pm »



[attachment deleted by admin]

27
General discussions / Re: A new logo for SFML
« on: April 16, 2013, 06:49:40 pm »
Laurent, you better choose Haze' logo. It's awesome.
Thank you, but it's hardly mine, krzat did most of the job!

In my opinion, SFML should really get a unique logo. And neither an ellipse nor a round power symbol is something that can be associated directly with SFML.
I know, and you raised some valid concerns, but a multimedia library is something very abstract. I don't think you can come with a logo which has a distinctive visual representation and is simple / minimalist in the same time, for something this abstract.
Regarding the pentagon logo, I like the concept but as I said before I would prefer a logo where "SFML" is directly a part of it.

You can also recognize the library only by the logo itself, without the text.
The pentagon-shaped power button may be more unique, but if taken apart, it's hard to associate it to SFML. That's why I wish "SFML" could be better integrated.
The ellipse/power button may not be distinctive when taken apart, but the logo as a whole is (and the logo should only be considered as a whole IMO).


One thing I like about the ellipse is maintaining a continuity from the current logo.
SFML has been around for 6 years, its logo has never changed and is well known by many users. While I understand the need for a change, which is already reflected by the new website (cleaner, simpler), I wish the new logo reminds a bit of the former one, so users can still recognize easily SFML when they see it.
For example, the Microsoft Windows logo changed at every OS release to fit with design trends of the time, but they nevertheless maintained a continuity and avoided breaking the visual identity.


Anyway, some experiment with the pentagon.
I used Ubuntu-bold font, which is free.



Smaller icon:



[attachment deleted by admin]

28
General discussions / Re: A new logo for SFML
« on: April 16, 2013, 01:39:15 pm »
Bigger and more padding, so be it.
The margin above the menu is 36px.

With dropshadow #1 (light):


With dropshadow #2 (darker):


Full size with gradient:



[attachment deleted by admin]

29
General discussions / Re: A new logo for SFML
« on: April 15, 2013, 06:02:15 pm »
Thanks for the positive feedback. Do you have any other improvements to suggest?

- Font #1 or font #2 (rounded)?
- Should the ellipse be visible above the menu or cropped?
- Is there enough padding between the text and the inner bounds of the ellipse? (I think it's ok with font #1, but with font #2 the text is too close to the power button, cf. matkod's comment).

30
General discussions / Re: A new logo for SFML
« on: April 12, 2013, 06:27:17 pm »
Maybe insert the power button inside the white circle?
There's just one thing I don't like: the white circle, which doesn't fit very well, and can make people believe that the name is OSFML :P
Indeed, you're right. I've curved a power button in the white circle and it looks better IMO.

With font #1:



With font #2:



Integration tests:


[attachment deleted by admin]

Pages: 1 [2] 3 4 ... 9