Roland Posted February 26, 2014 Share Posted February 26, 2014 Finally got some time for running the Leadwerks 3.1 indie version. Made a terrain and started painting some textures and found that I could not blend between textures. Is this really not supported or have I missed something. Right now it looks really bad with those sharp edges between different textures as shown here. Surely I must have missed something here. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Rastar Posted February 26, 2014 Share Posted February 26, 2014 Actually, I think this is looking much better and more realistic than the typical texture blending using alpha values. I mean, for ground structures such as this you have small height differences that determine which material is on top: The sand will fill the lower parts of the rocks and be completely absent at the top, and not gradually shine through the rock texture. For example, there is a very popular terrain add-on for the "he-who-must-not.be-named" engine that specifically uses heightmaps for terrain textures to achieve this effect. EDIT: By the way, now "mrstralberg", Sir? Being more formal these days ;-) ? EDIT2: There was a post where Josh discussed this http://www.leadwerks.com/werkspace/topic/7196-terrain-texture-with-blend-pattern-in-alpha/page__hl__alpha 1 Quote Link to comment Share on other sites More sharing options...
Roland Posted February 26, 2014 Author Share Posted February 26, 2014 I see you point Rastar and that's quite true, but I have almost never seen such sharp borders between lets say Sand and Rockbeds in reality. As I know you know the terrain stuff quite well I take your answer as "No - Blending is not possible". I guess then that it can be solved by adding a third texture with sand and rocks together and use as border, although this might look better considering what you correctly states, the blending tech will generate almost the same thing with less resources and effort. It would have been nice to have the choice which method to use. It would be nice to see a blending feature in some coming update ( Josh, please .. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Rastar Posted February 26, 2014 Share Posted February 26, 2014 I actually haven't looked too deeply at the Leadwerks terrain system, but this is "just a bit of shader magic". Quickly scanning the terrain texture shader, it seems there are certain thresholds for the texture blending, resulting in those hard edges. So tweaking the shader might give what you want. You could also try and play with the "transition" slider on the material layer page, maybe this improves things towards your goal. Quote Link to comment Share on other sites More sharing options...
Flexman Posted February 26, 2014 Share Posted February 26, 2014 I like that blend pattern usage. Has this been implemented in LE 3.1? I should modify the terrain shaders to do that for our project before we release. It looks much better. When in doubt, check your alpha channels. Quote 6600 2.4G / GTX 460 280.26 / 4GB Windows 7 Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT Tricubic Studios Ltd. ~ Combat Helo Link to comment Share on other sites More sharing options...
Roland Posted February 26, 2014 Author Share Posted February 26, 2014 Hahaha Rastar. No I'm not at all formal in anyway, just only me as usual. Thought I could use that tagname as thats what I have in all other places including my blog and so on. My original intention was to have just 'stralberg' or 'rstralberg' for such places. But then my son's wanted 'stralberg' and 'rstralberg' so i did run out of fantasy and just added that 'm' a start. But don't worry You wont have to call me 'Sir' not now and not ever Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Roland Posted February 26, 2014 Author Share Posted February 26, 2014 I by accident found a way to get some blending effect by just tapping the mouse very quickly instead of drawing. If this could be done in somewhat more controlled manner it would be great. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
gamecreator Posted February 26, 2014 Share Posted February 26, 2014 It seems like you might have the strength of the brush too high. Quote Link to comment Share on other sites More sharing options...
Roland Posted February 26, 2014 Author Share Posted February 26, 2014 Yes of course I had. I'm now officially an idiot Hahaha.. But I can live with that ... at least I don't have to quick tap now Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
gamecreator Posted February 26, 2014 Share Posted February 26, 2014 Ha ha, not at all. It happens. Good to have simple problems to solve sometimes. Quote Link to comment Share on other sites More sharing options...
shadmar Posted February 27, 2014 Share Posted February 27, 2014 transitions slider should handle blend. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Roland Posted February 27, 2014 Author Share Posted February 27, 2014 transitions slider should handle blend. Well not really but kind of. The upper transition slider seems to work on Slopes The lower transition slider seems to work on Heights Quote Roland Strålberg Website: https://rstralberg.com 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.
Note: Your post will require moderator approval before it will be visible.