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

Author Topic: ContextSettings problem  (Read 1422 times)

0 Members and 1 Guest are viewing this topic.

adamw

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
ContextSettings problem
« on: November 02, 2016, 12:16:50 am »
I've been using SFML on Raspberry Pi.
The repository was using version 2.1.
I needed a later version, so I downloaded and built the code to get 2.4.

However, now when I run, I get a message that says "The created OpenGL context does not fully meet the settings that were requested".

In particular, the AA level I got is 0 instead of 8.
As a result, it looks pretty bad.

Any ideas how I can fix this?

thanks!

adamw

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: ContextSettings problem
« Reply #1 on: November 02, 2016, 03:29:00 am »
I noticed there was a cmake flag for SFML_OPENGL_ES.
I tried to rerun cmake with this flag set to true, but it failed: "Could NOT find GLES (missing: GLES_LIBRARY GLES_INCLUDE_DIR)"

I know the pi (pi 3, w/ latest) supports OpenGL ES, but I'm not sure if I just need to set a path or something.

Can anyone point me in the right direction?

adamw

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: ContextSettings problem
« Reply #2 on: November 02, 2016, 02:32:41 pm »
Looking through the cmake stuff, I saw it was looking for GLES/gl.h.

However, looking at files on the pi, it seemed to be located at GL/gl.h.

I made the change and re-ran cmake.
This time, it seemed it found the GL library.

However, when running my app, and asking for 8 levels of AA in my ContextSettings, I still get the output from SFML that requested was 8 and actual was 0.

And the lines I draw still look crappy.

I'd really appreciate any help on this. 
As I mentioned...same code using the pre-build 2.1 library on Raspberry Pi works great.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
AW: ContextSettings problem
« Reply #3 on: November 02, 2016, 03:22:41 pm »
Can you provide the complete and minimal code?

If I understand my quick Googling right, the Raspberry Pi supports OpenGL ES 2.0, which we don't. Luckily there seems to be an (experimental?) OpenGL driver, as such you can forget the ES CMake option.

If you still have SFML 2.1 around, could you retrieve the conext settings that get applied?

My guess would be, that the Pi, doesn't support 8x AA, but previously it would simply drop to 2x or 4x and not warn you about it.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

adamw

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: ContextSettings problem
« Reply #4 on: November 02, 2016, 06:52:00 pm »
Thanks for the reply...I'll try to do that this evening after work.

The ConextSettings I used with 2.1 were identical to what I use with 2.4.
All defaults, except the AA level, which was set to 8.

If 2.1 dropped me down to 4 or 2, I would expect 2.4 would do the same.
However it's going to 0.
That makes me think something is fundamentally missing/wrong in the setup.

I also tried AA level 4 using 2.4 with no luck.
I'll try 1 and 2 tonight also.


adamw

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: ContextSettings problem
« Reply #5 on: November 02, 2016, 09:24:07 pm »
Just learned that the Raspberry Pi supports both OpenGL ES 2.0 and 1.1.
So, maybe I just need to tweak the cmake to look for 1.1.

I'll give that a try tonight and let folks know.

 

anything