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

Author Topic: Dissapearing text SFML2  (Read 1368 times)

0 Members and 1 Guest are viewing this topic.

malatin3

  • Newbie
  • *
  • Posts: 5
    • View Profile
Dissapearing text SFML2
« on: February 06, 2012, 09:25:04 am »
Hello everyone. I seem to have caused some strange problem I do not know how to fix. Frankly, I can't even seem to really pinpoint where it may be coming from so I'll do my best to describe it and then maybe you can tell me what part of my code I should examine first.

I was working on writing a chat client, and when I try to draw text to the screen I'll get missing characters. 'm' and 'a' are two that are frequently missing. Like typing the word "farmer" would end up displaying as "f r er" with holes where the characters should have been drawn.

On the server console that I am sending the string data to, I can see that characters aren't actually missing from the strings because they are being displayed correctly there.  

What's even weirder is that if I send a message from another client, sometimes it will cause the characters that were missing to suddenly appear and a new set of characters will disappear.

I had no problems with my client until I tried to move most of the chat functionality to its own class. However, despite my best effort, I can't really find anything that would have caused this with my new class.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Dissapearing text SFML2
« Reply #1 on: February 06, 2012, 09:29:03 am »
Unfortunately we won't be able to find out what's wrong in your code without seeing it.

http://www.sfml-dev.org/forum/viewtopic.php?p=36368#36368
Laurent Gomila - SFML developer

Zinlibs

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Dissapearing text SFML2
« Reply #2 on: February 06, 2012, 02:16:25 pm »
I have the same problem on my client program. This could be caused by using a thread without an opengl valid context. But by adding a such context to my thread function, the problem still remains. Maybe should I call additionally some OpenGL functions like glFlush() ?
Zoost & Zoom libraries : An easy way to create and handle geometric objets, animate and use them for better graphics !