Jump to content

Post-processing effects test (SSAO/HDR/Bloom)


Recommended Posts

Okay, got all files. When I start a match, I get this error:


GAME STARTED, ALL INIT COMPLETE
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: vertex shader does not write to `gl_Position'
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: vertex shader does not write to `gl_Position'
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: vertex shader does not write to `gl_Position'
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: vertex shader does not write to `gl_Position'
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: vertex shader does not write to `gl_Position'
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: vertex shader does not write to `gl_Position'
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: vertex shader does not write to `gl_Position'
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: vertex shader does not write to `gl_Position'
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: vertex shader does not write to `gl_Position'
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: vertex shader does not write to `gl_Position'
ERROR: Failed to compile vertex program 'shaders/arb/overlayline.vp' (line 1):
GL_INVALID_OPERATION
OpenGL error(s) occurred: 0502
Using Xcursor to sys_cursor_create 32 x 32 cursor
ERROR: CRenderer::EndFrame: GL errors occurred

Link to comment
Share on other sites

Pulled your fix. Now I get this:



GAME STARTED, ALL INIT COMPLETE
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: fragment shader varying v_tex not written by vertex shader
.error: fragment shader varying v_blend not written by vertex shader
.error: fragment shader varying v_los not written by vertex shader
.error: fragment shader varying v_lighting not written by vertex shader
.
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: fragment shader varying v_tex not written by vertex shader
.error: fragment shader varying v_blend not written by vertex shader
.error: fragment shader varying v_los not written by vertex shader
.error: fragment shader varying v_lighting not written by vertex shader
.
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: fragment shader varying v_tex not written by vertex shader
.error: fragment shader varying v_blend not written by vertex shader
.error: fragment shader varying v_los not written by vertex shader
.error: fragment shader varying v_lighting not written by vertex shader
.
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: fragment shader varying v_tex not written by vertex shader
.error: fragment shader varying v_blend not written by vertex shader
.error: fragment shader varying v_los not written by vertex shader
.error: fragment shader varying v_lighting not written by vertex shader
.
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: fragment shader varying v_tex not written by vertex shader
.error: fragment shader varying v_blend not written by vertex shader
.error: fragment shader varying v_los not written by vertex shader
.error: fragment shader varying v_lighting not written by vertex shader
.
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: fragment shader varying v_tex not written by vertex shader
.error: fragment shader varying v_blend not written by vertex shader
.error: fragment shader varying v_los not written by vertex shader
.error: fragment shader varying v_lighting not written by vertex shader
.
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: fragment shader varying v_tex not written by vertex shader
.error: fragment shader varying v_blend not written by vertex shader
.error: fragment shader varying v_los not written by vertex shader
.error: fragment shader varying v_lighting not written by vertex shader
.
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: fragment shader varying v_tex not written by vertex shader
.error: fragment shader varying v_blend not written by vertex shader
.error: fragment shader varying v_los not written by vertex shader
.error: fragment shader varying v_lighting not written by vertex shader
.
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: fragment shader varying v_tex not written by vertex shader
.error: fragment shader varying v_blend not written by vertex shader
.error: fragment shader varying v_los not written by vertex shader
.error: fragment shader varying v_lighting not written by vertex shader
.
ERROR: Failed to link program 'shaders/glsl/terrain_common.vs'+'shaders/glsl/terrain_common.fs':
error: fragment shader varying v_tex not written by vertex shader
.error: fragment shader varying v_blend not written by vertex shader
.error: fragment shader varying v_los not written by vertex shader
.error: fragment shader varying v_lighting not written by vertex shader
.
ERROR: Failed to compile vertex program 'shaders/arb/overlayline.vp' (line 1):

GL_INVALID_OPERATION
OpenGL error(s) occurred: 0502
Using Xcursor to sys_cursor_create 32 x 32 cursor
ERROR: CRenderer::EndFrame: GL errors occurred

Link to comment
Share on other sites



GAME STARTED, ALL INIT COMPLETE
ERROR: Failed to compile vertex program 'shaders/arb/overlayline.vp' (line 1):

GL_INVALID_OPERATION
OpenGL error(s) occurred: 0502
Using Xcursor to sys_cursor_create 32 x 32 cursor
ERROR: CRenderer::EndFrame: GL errors occurred

Walk away if I'm stressing you out :D

Link to comment
Share on other sites



GAME STARTED, ALL INIT COMPLETE
ERROR: Failed to compile vertex program 'shaders/arb/overlayline.vp' (line 1):

GL_INVALID_OPERATION
OpenGL error(s) occurred: 0502
Using Xcursor to sys_cursor_create 32 x 32 cursor
ERROR: CRenderer::EndFrame: GL errors occurred

Walk away if I'm stressing you out :D

Try messing with the number of passes in terrain_grass.xml. If you're lucky it might work even with the error, if you aren't then you'll just have to wait until I'm done with the terrain renderer implementation.

Link to comment
Share on other sites

In the latest version, some terrains are black, but others are not.

This is Oasis 1:

dBBE3s.jpg

This is your test map:

AZJ35s.jpg

Can you name a map that uses grass1_spring? I thought the test map did, but on that it actually looks like its the snowy portions that are broken.

Edited by zoot
Link to comment
Share on other sites

In the latest version, some terrains are black, but others are not.

This is Oasis 1:

dBBE3s.jpg

This is your test map:

AZJ35s.jpg

Can you name a map that uses grass1_spring? I thought the test map did, but on that it actually looks like its the snowy portions that are broken.

Celts Sandbox uses this grass (it's the default grass you get when you open Atlas).

Can you go in Atlas and test the "Snow/Snow Grass 2" terrain type? That really shouldn't be black. Maybe it's missing a texture or something like that? How about "Biome Alpine/Alpine Cliff"?

Edited by myconid
Link to comment
Share on other sites

Here is Celts Sandbox:

mBFbJs.jpg

Atlas has begun segfaulting sometime after I upgraded wxWidgets (though the Actor Editor worked when I tried yesterday):



ERROR: DllLoader: dlopen(libAtlasUI.so) failed: libwx_gtk2u_gl-2.9.so.3: cannot open shared object file: No such file or directory; dlopen(libAtlasUI_dbg.so) failed: libAtlasUI_dbg.so: cannot open shared object file: No such file or directory;
TIMER| LoadDLL: 109.79 ms
Atlas.cpp(46): The Atlas UI was not successfully loaded and therefore cannot be started as requested.
The Atlas UI was not successfully loaded and therefore cannot be started as requested.
Location: Atlas.cpp:46 (ATLAS_Run)

Call stack:

(0x805fda) ./pyrogenesis() [0x805fda]
(0x7abd71) ./pyrogenesis() [0x7abd71]
(0x7aca4e) ./pyrogenesis() [0x7aca4e]
(0x58e0c1) ./pyrogenesis() [0x58e0c1]
(0x58e198) ./pyrogenesis() [0x58e198]
(0x41c977) ./pyrogenesis() [0x41c977]
(0x4135d7) ./pyrogenesis() [0x4135d7]
(0x7f158bef276d) /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f158bef276d]
(0x41c105) ./pyrogenesis() [0x41c105]

errno = 0 (No such file or directory)
OS error = ?


Aborted (core dumped)

Edited by zoot
Link to comment
Share on other sites

Can you go in Atlas and test the "Snow/Snow Grass 2" terrain type? That really shouldn't be black. Maybe it's missing a texture or something like that? How about "Biome Alpine/Alpine Cliff"?

Okay, downgraded wxWidgets. It's "Snow/Snow Grass 2" that's at fault:

uk3cZ.png

I get no missing-texture errors.

Edited by zoot
Link to comment
Share on other sites

Okay, downgraded wxWidgets. It's "Snow/Snow Grass 2" that's at fault:

I get no missing-texture errors.

I see nothing obvious in the code that could be causing that, so maybe you changed something in the xml? The cliff is using exactly the same effects/code as the snow material, and additionally uses triplanar as well. If the cliff is working, then the issue is probably with the xml somewhere. Make sure your local copy is exactly the same as on github.

Also, the grass material is half-working in your screenshot! The layer transparency is missing, so you don't see the layers below...

Link to comment
Share on other sites

I see nothing obvious in the code that could be causing that, so maybe you changed something in the xml? The cliff is using exactly the same effects/code as the snow material, and additionally uses triplanar as well. If the cliff is working, then the issue is probably with the xml somewhere. Make sure your local copy is exactly the same as on github.

I've reset back to upstream/terrainmapping. I get this error now:

ERROR: CCacheLoader failed to find archived or source file for: "art/textures/terrain/types/grass1_spring.png"

Also, the grass material is half-working in your screenshot! The layer transparency is missing, so you don't see the layers below...

Cool! What would the transparency be missing? Can I fix it?

Edited by zoot
Link to comment
Share on other sites

I've reset back to upstream/terrainmapping. I get this error now:

ERROR: CCacheLoader failed to find archived or source file for: "art/textures/terrain/types/grass1_spring.png"

Cool! What would the transparency be missing? Can I fix it?

Give the latest commit a try. Maybe it'll help.

Link to comment
Share on other sites

It isn't even all that slow in-game. Sure, the mouse pointer is a bit heavier, but this is a netbook. On a high-end system it could handily be an option. (Not that we shouldn't try to optimize it anyway, of course.)

Edited by zoot
  • Like 1
Link to comment
Share on other sites

Still some issue with "snow grass 2", though.

Hmmmmm... Maybe something is up with the lighting? If you edit art/terrains/snow/snow grass 2.xml and remove the line with USE_NORMAL_MAP does it work? How about the one with specular?

That is just fantastic. This stuff seriously needs put into the game. (y)

It's a bit laggy on my laptop just by drawing a screen full of grass, though I'm sure a gaming PC can handle this effect with ease.

Edited by myconid
Link to comment
Share on other sites

Hmmmmm... Maybe something is up with the lighting? If you edit art/terrains/snow/snow grass 2.xml and remove the line with USE_NORMAL_MAP does it work? How about the one with specular?

I have no such line in that file:


<?xml version="1.0" encoding="utf-8"?>
<terrain>
<textures>
<texture name="baseTex" file="snow grass 2.dds"/>
<texture name="normTex" file="snow grass 2_norm.png"/>
<texture name="specTex" file="snow grass 2_spec.png"/>
</textures>
<material>terrain_norm.xml</material>
</terrain>

Edited by zoot
Link to comment
Share on other sites

I have no such line in that file:


<?xml version="1.0" encoding="utf-8"?>
<terrain>
<textures>
<texture name="baseTex" file="snow grass 2.dds"/>
<texture name="normTex" file="snow grass 2_norm.png"/>
<texture name="specTex" file="snow grass 2_spec.png"/>
</textures>
<material>terrain_norm.xml</material>
</terrain>

Whoops, sorry. Meant the terrain_norm.xml material!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...