Alienhead Posted July 27, 2022 Share Posted July 27, 2022 What could I had possibly added or changed that would knock out all decals across all maps? The decals appear fine in the editor, but dont show in the game field. Was working fine up until last night when I noticed it, I checked back on a 3 day back up and they were working. I've done a lot of stuff since then and I'm really just searching randomly trying to find what would cause them to not show up at all. Any suggestions ? Also, When I walk over the area the decal should be showing at, I get this on the camera. But goes away when I leave the area. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted July 27, 2022 Share Posted July 27, 2022 I don't know, but I would first disable all post-processing effects. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted July 27, 2022 Author Share Posted July 27, 2022 Somewhere, somehow this got added to my creation script - self.camera:SetMultisampleMode(0). My character creation script is well over 4,000 lines of code now, this was embedded within that block of code.. Might of been a copy/Npaste error or something, Sublime acts up from time to time. That's what was blocking the decals... not even sure where that line of code came from lol. Ty anyways. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted July 27, 2022 Share Posted July 27, 2022 Are you using a source code respository? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted July 27, 2022 Author Share Posted July 27, 2022 JetBrains/Git - but deactivated it for a few months now. 1 Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
reepblue Posted July 27, 2022 Share Posted July 27, 2022 Decals stop working correctly with multisampling mode set to 0. Always have 1 as the lowest available setting. 2 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted July 28, 2022 Share Posted July 28, 2022 Yep, with multisampling disabled Leadwerks uses a 1x MSAA texture, which is a completely different type of sampler than a sampler2D. Vulkan strangely does not support 1x MSAA textures, so I have to have two completely different sets of shaders for multisample/non-multisampled. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted July 30, 2022 Author Share Posted July 30, 2022 On the topic of decals still - is there a clear procedure to prevent decals showing on some surfaces? Like say I don't want blood splats showing on my character entity, do I just assign the decal to a collision rule ? a rule that don't effect my character entity. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Marcousik Posted July 30, 2022 Share Posted July 30, 2022 https://www.leadwerks.com/learn?page=API-Reference_Object_Entity_Decal_SetRenderMode -> You can select the effect of the decals appearing on models or on brush Or try to scale the effect zone of the decal so that it doesn't reach your character, that's all I know about decals 1 Quote Link to comment Share on other sites More sharing options...
Alienhead Posted July 30, 2022 Author Share Posted July 30, 2022 Yah I've been over and over that page but my character model isn't a brush nor a none model type.. it's the same geometry as the stuff I want the decal to stick to. I'll try some scales but I doubt that'll work since I still want the zone to hit the map geometry.. thanks anyways. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
EvilTurtleProductions Posted July 30, 2022 Share Posted July 30, 2022 If you want to exclude things from decals, but can't use the settings in the entity properties in the editor, you can always remove the following lines from the shader that you use for the entity. Beware that changing a shader changes it for all entities that use that shader, so you might end up needing a separate non-decal shader with these lines removed: if (decalmode==1) materialflags += 4;//brush if (decalmode==2) materialflags += 8;//model if (decalmode==4) materialflags += 16;//terrain It's a bit hacky, but it works well. 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.
Note: Your post will require moderator approval before it will be visible.