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

Pages: [1]
1
Graphics / Re: OpenGL SFML graphics module troubles.
« on: September 08, 2014, 12:11:53 am »
Quote
If you don't mind humoring me, why is binding a vao before drawing necessary? When I saw your answer I was really skeptical, but thought I'd try it anyway. I was a little shocked that it worked, to be honest.

Because when you bind with the id 0 (NULL) it is the same as unbinding the previous bound object. When you leave your own objects bound it messing up SFML's rendering. If you search around I believe binary1248 has a post on this explaining in more detail.

Ah, that makes sense, I think. I'll look up that post.

And thanks for the welcomes everyone :)

2
Graphics / Re: OpenGL SFML graphics module troubles.
« on: September 07, 2014, 06:06:16 am »
Oh, wow. I was so not expecting a working answer so quickly :D

That works perfectly and fixes everything.

If you don't mind humoring me, why is binding a vao before drawing necessary? When I saw your answer I was really skeptical, but thought I'd try it anyway. I was a little shocked that it worked, to be honest.

I'm truly interested, if you have time to explain, but, either way, you have my genuine gratitude.

Thanks again! :)

edit*
also, I'm new to this forum. Is there a form of reputation or anything I can give in response to your answer, or do I need to mark anything closed, or is it all good?

3
Graphics / OpenGL SFML graphics module troubles [Solved].
« on: September 07, 2014, 04:00:59 am »
Hello,
After searching the forum, the only other thread I could find that covered this was from 2012:
http://en.sfml-dev.org/forums/index.php?topic=7508.msg49549#msg49549

Unfortunately, the thread concludes with recommending that he updates his version as the new version may have contained a fix.

However, I'm having the exact same difficulty. Basically, I'm unable to render 2D text in an SFML window that's integrated with OpenGL. My code setup is identical to the OP in the aforementioned thread and generally, is identical to the OpenGL example in the SDK. The only difference is the inclusion of a VBO. The OpenGL elements, objects, textures all render fine. However, the 2D SFML elements (text) do not.

If I remove the VBO, everything renders correctly, though it would be extremely useful to be able to use them. Is there a workaround for this, or is it still a known problem?

I'll refrain from posting the code, if only because the relevant elements are identical to the SDK example. In theory, I'm set up correctly, and can get the SDK example working fine. However, when implementing the VBO for the OpenGL elements, the 2D SFML text stops working.

Relevant info: Ubuntu 14.04, OpenGL 4.4, SFML 2.1

I truly appreciate any advice, and thank you in advance. :)

Pages: [1]
anything