halcyonXIII Posted August 8, 2012 Report Share Posted August 8, 2012 On 08/08/2012 at 6:09 PM, myconid said: Awesome. Can you guys also test the ARB version a bit?Is that by setting preferglsl and gentangents to false?Incidentally, is smoothlos supposed to work when preferglsl is set to false? Quote Link to comment Share on other sites More sharing options...
myconid Posted August 8, 2012 Author Report Share Posted August 8, 2012 On 08/08/2012 at 7:27 PM, dvangennip said: Well, there is something that is odd: last week I posted some issues with flickering, probably related to normals and my macbook's drivers. I have really tried to trigger this flickering with the current GLSL code, but I guess I have to accept it is gone While I didn't fix that, maybe somebody else did. Quote Now, I did run into a problem when setting the renderpath to fixed (with preferglsl, gentangents, and smoothlos set to true, quality level 10). This gave a problem related to the LOS, I think. Setting smoothlos to false circumvents the problem. Maybe the smoothlos setting should be ignored if the renderpath is fixed (or there may be a fix, I don't know). A stacktrace can be found in the attachment, the crash happens right after pressing Start Game.That's as expected, and probably not worth worrying about/fixing. On 08/08/2012 at 8:40 PM, halcyonXIII said: Is that by setting preferglsl and gentangents to false?Yup. Quote Incidentally, is smoothlos supposed to work when preferglsl is set to false?It'll work, but by using a GLSL shader by force. That is, it'll fail on PCs that don't have GLSL support. Quote Link to comment Share on other sites More sharing options...
halcyonXIII Posted August 8, 2012 Report Share Posted August 8, 2012 On 08/08/2012 at 8:55 PM, myconid said: It'll work, but by using a GLSL shader by force. That is, it'll fail on PCs that don't have GLSL support.Ah, I see. It just threw me off a bit when I saw it was still working.Anyway, I haven't encountered any problems with ARB either. There was something in Atlas though (with preferglsl set back to true), with the "Grass/Grass1 spring fancy" brush texture. When I draw this on to the terrain with the left mouse button it blends with the surrounding textures as expected, if I then draw a different texture over part of this grass texture (also with the left mouse button) then they don't blend together properly. Likewise if I draw this grass with the right mouse button, then the grass doesn't blend nicely with the texture under it. The terrain highlighting around the cursor disappears over this texture as well. Quote Link to comment Share on other sites More sharing options...
Gen.Kenobi Posted August 8, 2012 Report Share Posted August 8, 2012 Can someone upload a windows build? Quote Link to comment Share on other sites More sharing options...
Gen.Kenobi Posted August 8, 2012 Report Share Posted August 8, 2012 Question> The AO's second UV map is already recognized by the engine, or I must specify it somewhere in the code? Just add in blender a new one and I'll be all set to go? Quote Link to comment Share on other sites More sharing options...
myconid Posted August 8, 2012 Author Report Share Posted August 8, 2012 halcyonXII, that's because there's no render sorting in the terrain renderer, and it's probably not practical to try to add it. It's somewhat possible to hide the artifacts, by first painting the terrain with a simple grass texture and then painting the fancy grass on top. However, that material is more likely to be used for decals instead of terrain, where I believe this won't be a problem.Gen.Kenobi, you just add a new UV map in Blender and the rest is handled automatically. One thing, though: you should be careful to put the new UV map after the existing UV map, because that's where the shaders expect to find it. Quote Link to comment Share on other sites More sharing options...
Gen.Kenobi Posted August 9, 2012 Report Share Posted August 9, 2012 Thanks! Just thought I should mention that I have added the AO Shader to the Rock_Scandiv.If you haven't noticed it yet, go take a small look Quote Link to comment Share on other sites More sharing options...
Shield Bearer Posted August 9, 2012 Report Share Posted August 9, 2012 I still get the black square thing, if the update has been added to SVN. Also, I don't see any fancy stuff on the Mars temple, I'm I the only one with this problem? Or did you forget to commit the textures? But anyway, its great to have all this in! Smooth LOS and the windy trees look amazing! Now, the ball's in our court Quote Link to comment Share on other sites More sharing options...
Enrique Posted August 9, 2012 Report Share Posted August 9, 2012 On 09/08/2012 at 3:42 AM, Shield Bearer said: I still get the black square thing, if the update has been added to SVN. Also, I don't see any fancy stuff on the Mars temple, I'm I the only one with this problem? Or did you forget to commit the textures? But anyway, its great to have all this in! Smooth LOS and the windy trees look amazing! Now, the ball's in our court I think you have to recompile to get the black square fix, but it's fixed by now painting anywhere on the map.For the mars temple try looking for the actor mars_temple2 Quote Link to comment Share on other sites More sharing options...
myconid Posted August 9, 2012 Author Report Share Posted August 9, 2012 On 09/08/2012 at 1:32 AM, Gen.Kenobi said: Thanks! Just thought I should mention that I have added the AO Shader to the Rock_Scandiv.If you haven't noticed it yet, go take a small look Thanks for letting me know, it looks amazing! Quote Link to comment Share on other sites More sharing options...
Mythos_Ruler Posted August 9, 2012 Report Share Posted August 9, 2012 Question. Which actor materials do I choose under these circumstances?Player color. Specular map. (no other maps)No player color. Specular map. (no other maps)If I choose basic_trans_ao_parallax_spec.xml or player_trans_ao_parallax_spec.xml I get errors if I don't specify ao and parallax maps. I just want spec maps on a few things (Iberian bull statue for example), and specular+player for helmets, shields, units, etc. Quote Link to comment Share on other sites More sharing options...
myconid Posted August 9, 2012 Author Report Share Posted August 9, 2012 You need two new materials. Simplest way is to make a copy of player_trans_ao_parallax_spec and delete the effects you don't need. e.g:<material> <shader effect="model"/> <define name="USE_PLAYERCOLOR" value="1"/> <define name="USE_SPECULAR_MAP" value="1"/> <uniform name="effectSettings" value="1.0 50.0 0.0075 0.85"/></material>In one of the materials just remove the "USE_PLAYERCOLOR" line to disable player color. The "50.0" value is the specular power (look at the comments in player_trans_ao_parallax_spec).In the actor, reference the material you created and add an entry for "specTex" that points to the specular map you want to load. Quote Link to comment Share on other sites More sharing options...
Mythos_Ruler Posted August 9, 2012 Report Share Posted August 9, 2012 On 09/08/2012 at 5:52 PM, myconid said: You need two new materials. Simplest way is to make a copy of player_trans_ao_parallax_spec and delete the effects you don't need. e.g:<material> <shader effect="model"/> <define name="USE_PLAYERCOLOR" value="1"/> <define name="USE_SPECULAR_MAP" value="1"/> <uniform name="effectSettings" value="1.0 50.0 0.0075 0.85"/></material>In one of the materials just remove the "USE_PLAYERCOLOR" line to disable player color. The "50.0" value is the specular power (look at the comments in player_trans_ao_parallax_spec).In the actor, reference the material you created and add an entry for "specTex" that points to the specular map you want to load.Thanks, that worked for the most part. I got an error when trying it on a unit actor, but it worked perfectly for a helmet (player trans+spec) and the Iberian bull statue (simple spec map). I am committing. Can someone see what's wrong with the unit actor that's throwing the error? (mace_hero_craterus) Quote Link to comment Share on other sites More sharing options...
myconid Posted August 9, 2012 Author Report Share Posted August 9, 2012 These effects have been created for use with the instancing renderer, so you shouldn't use them on units (at least for the moment). That said, specular mapping should be relatively easy to adapt - I'll see if I can do that now. Quote Link to comment Share on other sites More sharing options...
myconid Posted August 9, 2012 Author Report Share Posted August 9, 2012 Mythos, done. Try now. (doesn't need recompile) Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted August 9, 2012 Report Share Posted August 9, 2012 On 08/08/2012 at 10:55 PM, Gen.Kenobi said: Can someone upload a windows build? Done Quote Link to comment Share on other sites More sharing options...
Gen.Kenobi Posted August 10, 2012 Report Share Posted August 10, 2012 On 09/08/2012 at 6:50 AM, myconid said: Thanks for letting me know, it looks amazing! You're the guy that should get all credits Hehehe.Glad you guys like it Quote Link to comment Share on other sites More sharing options...
fabio Posted August 10, 2012 Report Share Posted August 10, 2012 When is planned Alpha 11? I'd like to test all the new effects before the release, but I am unable to do it until about 10 days. Quote Link to comment Share on other sites More sharing options...
Mythos_Ruler Posted August 10, 2012 Report Share Posted August 10, 2012 On 09/08/2012 at 6:50 PM, myconid said: Mythos, done. Try now. (doesn't need recompile)Thanks. Works. It looks like spec maps for units probably won't be necessary, unless the unit is wearing tons of bronze.Another thing I noticed, is that the particle effects are now different or messed up. They don't look right anymore. Anyone else notice this as well?The particles are super thick (emitting too fast?) and the textures look stretched vertically. My settings are:; Quality level of shader effects (set to 10 to display effects)materialmgr.quality = 10; Prefer GLSL shaders over ARB shaders (not recommended). REQUIRES gentangents=true.preferglsl = true; Generate tangents for normal and parallax mapping. REQUIRES preferglsl=true. Incompatible with gpuskinning.gentangents = true; Experimental probably-non-working GPU skinning support; requires preferglsl; use at own riskgpuskinning = false; Use smooth LOS interpolation; REQUIRES preferglsl=true.smoothlos = true Quote Link to comment Share on other sites More sharing options...
myconid Posted August 10, 2012 Author Report Share Posted August 10, 2012 Mythos, I believe the GLSL implementation of that shader looks a little different from the ARB implementation. Nothing to do with these changes, I think. Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted August 10, 2012 Report Share Posted August 10, 2012 On 10/08/2012 at 12:29 PM, fabio said: When is planned Alpha 11? I'd like to test all the new effects before the release, but I am unable to do it until about 10 days.Assuming we want to get the sound system in place for A11, and it seems we do, I would say a week after it gets committed at the earliest, as we'll need time to test that as well. All subject to change of course On 10/08/2012 at 5:33 PM, myconid said: Mythos, I believe the GLSL implementation of that shader looks a little different from the ARB implementation. Nothing to do with these changes, I think.Hmm, can the GLSL version be tweaked to have identical looking particles? It's a shame if we have all these nice new effects but particles become ugly. Quote Link to comment Share on other sites More sharing options...
Mythos_Ruler Posted August 10, 2012 Report Share Posted August 10, 2012 On 10/08/2012 at 5:33 PM, myconid said: Mythos, I believe the GLSL implementation of that shader looks a little different from the ARB implementation. Nothing to do with these changes, I think.It has something to do with these changes, because it didn't happen before. But I guess what you mean is that the particle shaders need fixed, rather than your new code needing fixed. Amirite? Quote Link to comment Share on other sites More sharing options...
myconid Posted August 10, 2012 Author Report Share Posted August 10, 2012 On 10/08/2012 at 5:44 PM, Mythos_Ruler said: It has something to do with these changes, because it didn't happen before. But I guess what you mean is that the particle shaders need fixed, rather than your new code needing fixed. Amirite? Well yes, if you put it like that! Don't get me wrong, this is just how I always work: I like to separate the regressions from the stuff that was already broken. It's my way of not going a step backward every time I take a step forward. Quote Link to comment Share on other sites More sharing options...
myconid Posted August 10, 2012 Author Report Share Posted August 10, 2012 On 10/08/2012 at 5:42 PM, historic_bruno said: Hmm, can the GLSL version be tweaked to have identical looking particles? It's a shame if we have all these nice new effects but particles become ugly.I'll give it a try now. It shouldn't be too hard to figure out.Since the GLSL and ARB shaders look different, the quick fix would be to go in the shaders/effects folder, find the "particle*" effects and remove the reference to the GLSL shader, so the ARB shader always gets used. Quote Link to comment Share on other sites More sharing options...
myconid Posted August 10, 2012 Author Report Share Posted August 10, 2012 Done. (there was a bug in the GLSL shader) 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.