Serebriakov / pink-pony

Automatically exported from code.google.com/p/pink-pony
0 stars 0 forks source link

heightmap.frag compilation issues #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
heightmap.frag does not compile correctly on my GL system (mesa 7.10).

To fix it:
line 50, replace "3" with "3.0"
line 63, replace "0" with "0.0"
line 65, replace "0" with "0.0"

Original issue reported on code.google.com by sam@hocevar.net on 25 Mar 2011 at 12:35

GoogleCodeExporter commented 9 years ago
Sorry, previous "fix" was messed up. Here is a patch that works.

Original comment by sam@hocevar.net on 25 Mar 2011 at 12:44

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello, I have just added your patch to the GitHub repository.

May I ask how your experience is with Pink Pony and the Mesa driver? Do you 
have any graphics glitches or slow-downs?

The last time I tried getting Pink Pony to run with Mesa I wasn't too 
successful. (I guess this also depends on the used GPU, though. I tried it with 
an Intel integrated card)

Original comment by gin...@gmail.com on 27 Mar 2011 at 12:36

GoogleCodeExporter commented 9 years ago
Unfortunately, as you guessed, Pink Pony doesn't work yet as expected with 
Mesa, at least on my i965 card. But it is doing far better than a few months 
ago when the shaders wouldn't even compile. Right now the game is fully 
playable and only the lights seem wrong (screenshot attached, in case it may 
help). As the map rotates, there are two angle values where the lights are OK 
and the grass texture can be seen. On another Linux system running in a VMware 
virtual machine, everything looks perfect.

I also get a GL error (invalid value) after the call to glTexImage2D() when the 
GL_LUMINANCE texture is uploaded. However, the heightmap seems to be properly 
uploaded since the map appears in the game. The error is caught far later 
because there is no call to getErrors() at that location.

Original comment by sam@hocevar.net on 27 Mar 2011 at 6:23

Attachments:

GoogleCodeExporter commented 9 years ago
I will take a look at Pink Pony on the Mesa driver as soon as I find the time 
to do it.

Original comment by gin...@gmail.com on 30 Mar 2011 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by gin...@gmail.com on 30 Mar 2011 at 9:52