Driver issue bugfix
Some people have reported getting a plain brown screen in What The Frog?!
I couldn't reproduce the problem, because it is driver related and it works fine with my drivers.
Many thanks to rdb who spent an hour working through the problem with me. Ultimately we think it is this one-line fix - but to make it easier I've re-packed the release and uploaded it to GitHub (which includes another commit that may or may not do nothing).
Apologies, and good frogging!
(log in to comment)
Comments
If that doesn't work I created a no-fbo branch that doesn't have the fancy water effects.
The underlying issue is that your graphics drivers or hardware is not very up-to-date. I thought GLSL 1.30 was being pretty conservative but your drivers only support 1.20. The latest is version 4.60.
import wtf.main
File "/home/paul/pyweek27/unzip/git/what-the-frog/wtf/main.py", line 219, in <module>
water_batch = WaterBatch(mgl)
File "/home/paul/pyweek27/unzip/git/what-the-frog/wtf/water.py", line 84, in __init__
''',
File "/home/paul/.local/lib/python3.6/site-packages/moderngl/context.py", line 777, in program
varyings
mgl.Error: GLSL Compiler failed
vertex_shader
=============
0:4(2): error: `in' qualifier in declaration of `vert' only valid for function parameters in GLSL 1.20
Sorry, I'll have to port it if you need GLSL 1.20 support.
What is your GPU?
My computer runs an ATI Radeon HD 5570 Graphics card. If that is the issue I cant play it.
Traceback (most recent call last):
File "C:/Users/Phantasma/PycharmProjects/what-the-frog-1.0.1/run_game.py", line 95, in <module>
import wtf.main
File "C:\Users\Phantasma\PycharmProjects\what-the-frog-1.0.1\wtf\main.py", line 42, in <module>
height=round(HEIGHT * PIXEL_SCALE)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pyglet\window\win32\__init__.py", line 134, in __init__
super(Win32Window, self).__init__(*args, **kwargs)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pyglet\window\__init__.py", line 571, in __init__
self._create()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pyglet\window\win32\__init__.py", line 266, in _create
self.context.attach(self.canvas)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pyglet\gl\win32.py", line 267, in attach
super(Win32ARBContext, self).attach(canvas)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pyglet\gl\win32.py", line 212, in attach
raise gl.ContextException('Unable to share contexts')
pyglet.gl.ContextException: Unable to share contexts
capturts on 2019/04/02 14:24: