myconid Posted June 30, 2012 Author Report Share Posted June 30, 2012 The file shaders/effects/terrain_grass.xml seem to be missing from the commit, as well as terrain_triplanar.xml. The file art/terrains/grass/grass1_spring.xml references the terrain_base.xml material.And they magically appear... Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 Now missing art/materials/terrain_grass.xml (last one, I hope). Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 Okay, got all files. When I start a match, I get this error:GAME STARTED, ALL INIT COMPLETEERROR: 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_OPERATIONOpenGL error(s) occurred: 0502Using Xcursor to sys_cursor_create 32 x 32 cursorERROR: CRenderer::EndFrame: GL errors occurred Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 Pulled your fix. Now I get this:GAME STARTED, ALL INIT COMPLETEERROR: 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_OPERATIONOpenGL error(s) occurred: 0502Using Xcursor to sys_cursor_create 32 x 32 cursorERROR: CRenderer::EndFrame: GL errors occurred Quote Link to comment Share on other sites More sharing options...
myconid Posted June 30, 2012 Author Report Share Posted June 30, 2012 (edited) Pulled your fix. Now I get this:<snip>That's what you get for trying code not meant for release. Hold on. Edited June 30, 2012 by myconid Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 GAME STARTED, ALL INIT COMPLETEERROR: Failed to compile vertex program 'shaders/arb/overlayline.vp' (line 1):GL_INVALID_OPERATIONOpenGL error(s) occurred: 0502Using Xcursor to sys_cursor_create 32 x 32 cursorERROR: CRenderer::EndFrame: GL errors occurredWalk away if I'm stressing you out Quote Link to comment Share on other sites More sharing options...
myconid Posted June 30, 2012 Author Report Share Posted June 30, 2012 GAME STARTED, ALL INIT COMPLETEERROR: Failed to compile vertex program 'shaders/arb/overlayline.vp' (line 1):GL_INVALID_OPERATIONOpenGL error(s) occurred: 0502Using Xcursor to sys_cursor_create 32 x 32 cursorERROR: CRenderer::EndFrame: GL errors occurredWalk away if I'm stressing you out 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. Quote Link to comment Share on other sites More sharing options...
myconid Posted June 30, 2012 Author Report Share Posted June 30, 2012 How about now? Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 No more errors, but the texture just shows as black:I'll try playing around with number of layers etc. Quote Link to comment Share on other sites More sharing options...
myconid Posted June 30, 2012 Author Report Share Posted June 30, 2012 No more errors, but the texture just shows as black:I'll try playing around with number of layers etc.Try pulling & recompiling now.I can has more info plz? Was that supposed to be the grass texture or are other textures broken as well? Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 I happens on other textures too. This is one of the Oasis maps:Also, Atlas segfaults when I attempt to start it.Currently recompiling. Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 (edited) In the latest version, some terrains are black, but others are not.This is Oasis 1:This is your test map: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 June 30, 2012 by zoot Quote Link to comment Share on other sites More sharing options...
myconid Posted June 30, 2012 Author Report Share Posted June 30, 2012 (edited) In the latest version, some terrains are black, but others are not.This is Oasis 1:This is your test map: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 June 30, 2012 by myconid Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 (edited) Here is Celts Sandbox: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 msAtlas.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 June 30, 2012 by zoot Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 (edited) 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:I get no missing-texture errors. Edited June 30, 2012 by zoot Quote Link to comment Share on other sites More sharing options...
myconid Posted June 30, 2012 Author Report Share Posted June 30, 2012 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... Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 (edited) 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 June 30, 2012 by zoot Quote Link to comment Share on other sites More sharing options...
myconid Posted June 30, 2012 Author Report Share Posted June 30, 2012 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. Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 Give the latest commit a try. Maybe it'll help.Grass is working Still some issue with "snow grass 2", though. Quote Link to comment Share on other sites More sharing options...
Mythos_Ruler Posted June 30, 2012 Report Share Posted June 30, 2012 That is just fantastic. This stuff seriously needs put into the game. Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 (edited) 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 June 30, 2012 by zoot 1 Quote Link to comment Share on other sites More sharing options...
myconid Posted June 30, 2012 Author Report Share Posted June 30, 2012 (edited) 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. 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 June 30, 2012 by myconid Quote Link to comment Share on other sites More sharing options...
zoot Posted June 30, 2012 Report Share Posted June 30, 2012 (edited) 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 June 30, 2012 by zoot Quote Link to comment Share on other sites More sharing options...
myconid Posted June 30, 2012 Author Report Share Posted June 30, 2012 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.