Plague-Angel Posted February 3, 2015 Share Posted February 3, 2015 Hi guys. So as you can see from the above image I have some ugly lighting on those patch surfaces... this only occurs when I'm using fog (as a brush or in the worldspawn) Is there anything I can do to rectify this and make the light blend/smoother? Kind regards PA Link to comment
AngelModder Posted February 4, 2015 Share Posted February 4, 2015 This is a conflict between the pong shading of curved meshes vs the vertex effect of fog. The only way to fix this is to apply a vertex lighting only shader to those curved surfaces, sure they'll look a little less smooth, but it'll take care of the shadow problem. The vertex shader will overwrite the engines normal action vs this type thing (the path mesh).See even without a phong shader directly being applied (written by you), the engine will automatically phong these sort of surfaces it's self, it's just how it's programmed. Although normally it doesn't cause this sort of reaction. In case you don't know what a phong is, that's the smoothing shader/effect applied to curved surfaces or even brushes can be phonged manually to create a smoother looking surface such as terrain etc. The question would be is IF this is a base texture/shader being used on those meshes. Normally I've never seen this reaction on patches or brushes unless it has a pong shader on it via a shader file. So check that first before writing a new shader for the said texture. If so then it's simple just put it in a custom directoy (and if you want one) write up a new shader, but if it was a base one, it'll fix this.Basically, phong shaders don't mix well with fog.AngelModder Link to comment
Xycaleth Posted February 4, 2015 Share Posted February 4, 2015 Slightly off topic, but JKA doesn't do phong shading it does gouraud shading. Link to comment
Plague-Angel Posted February 5, 2015 Author Share Posted February 5, 2015 Thank you very much for your help there AngelModder, your suggestion worked a treat!. Now I have something that looks a lot more like Slave quarters than a work of Picasso!. AngelModder and Xycaleth like this Link to comment
AngelModder Posted February 5, 2015 Share Posted February 5, 2015 LOL any time, just seen that sort of thing before. Whats your map gonna be of exactly, looks interesting. Link to comment
Plague-Angel Posted March 13, 2015 Author Share Posted March 13, 2015 Thanks again for the help and sorry for the late reply. Its going to be yet another Tatooine themed map though more closed in.having a few ships to explore and play about in as well as some other stuff to get up to... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now