Team Spartan Cookies & Milk Forums
Lighting issues with sheared props - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Feedback (https://teamscm.co.uk/forum-9.html)
+--- Forum: Suggestions and improvements (https://teamscm.co.uk/forum-11.html)
+--- Thread: Lighting issues with sheared props (/thread-3565.html)



Lighting issues with sheared props - The17thDoctor - 02-01-2021

I'm doubtful as to if I've already reported this bug before and I also doubt there is a simple solution given the nature of the problem but sheared props tends to have incorrect lighting datas.
Here is an example with the left prop not being sheared and the right one being sheared on the ZX axis ( both models are the same, both angles are the same )

   

I don't know if there is a fix to that but i'd be really helpful if there was.


RE: Lighting issues with sheared props - 57e11a - 02-01-2021

this also happens with vector resized props


RE: Lighting issues with sheared props - The17thDoctor - 02-01-2021

I never noticed that personally.


RE: Lighting issues with sheared props - Person8880 - 04-01-2021

I doubt there's anything I can do about it. The engine controls the lighting and there's nothing obvious that GLua can do to change it.


RE: Lighting issues with sheared props - 57e11a - 18-07-2021

Sorry to necropost this, but is this anything that gmod/source devs would be able to fix? Gmod is still updated, and I'm fairly sure they have access to source's source code, so they may be able to fix this in an upcoming update.


RE: Lighting issues with sheared props - The17thDoctor - 18-07-2021

(18-07-2021, 08:31 PM)тѕсм.Quiru Wrote: Sorry to necropost this, but is this anything that gmod/source devs would be able to fix? Gmod is still updated, and I'm fairly sure they have access to source's source code, so they may be able to fix this in an upcoming update.

I have reported the issue to the garrysmod-issues github but aside from people saying that it might be intentional, no answer from devs yet.
Here is the link to the issue by the way, I dont know if commenting it will get more attention towards the devs but if you wish to add onto it, have fun :
https://github.com/Facepunch/garrysmod-issues/issues/4825


RE: Lighting issues with sheared props - The17thDoctor - 20-07-2021

While talking about the problem, I theorized about a solution that could maybe work ? What if instead of shearing the prop's original visual mesh, the tool would create a new visual mesh for the prop and replace the old one. This mesh could potentially have correct normals and work around the problem ?

I do not have enough GLua knowledge to say if it could work but I thought I'd suggest this as perhaps it might just work.
The possible problems I see are perhaps lacks of shading altogether, I dont know if IMeshes can get proper shading, messing up UVs, performances might take a hit ?