Jump to content

Better light for peds


Tekken

Recommended Posts

Posted

So can someone help me with a shader for a little bit more light for peds as some time they're basically black like shadows, so I will really appreciate if someone can show me how to make a shader as I don't understand how those work at all.

Thank you guys.

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

  • Moderators
Posted

 

3 minutes ago, Tekken said:

Thank you guys.

I saw this one a while back:

https://community.multitheftauto.com/index.php?p=resources&s=details&id=7665

Not sure if that does what you want.

 

And you can also play around with: https://wiki.multitheftauto.com/wiki/CreateLight

  • Thanks 1

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
19 hours ago, IIYAMA said:

I saw this one a while back:

https://community.multitheftauto.com/index.php?p=resources&s=details&id=7665

Not sure if that does what you want.

Tried it out, it doesn't change anything.

20 hours ago, IIYAMA said:

And you can also play around with: https://wiki.multitheftauto.com/wiki/CreateLight

That may be exactly what I need.

Thank you.

  • Like 1

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted

Ped lighting depends on the surface that they are standing on. If a ped is standing on a low-light ground, he will also be near-black.
The same happens when you create a Ped in Air and there is no ground below him, GTA doesnt know the vertex lighting so the Ped appears dark when spawning.

  • Like 1

n-560x95_FFFFFF_FFFFFF_000000_000000.png

Posted
2 hours ago, Einheit-101 said:

Ped lighting depends on the surface that they are standing on. If a ped is standing on a low-light ground, he will also be near-black.
The same happens when you create a Ped in Air and there is no ground below him, GTA doesnt know the vertex lighting so the Ped appears dark when spawning.

Ok, so you have a suggestion?

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted

I may have a solution. When you attach your ped to an element (like an object) and then destroy that element it turns the light back on the peds (so the bug is solved)

However I don't know if it always work, I just noticed that while I was scripting

Gordon#6977

Posted

That solution has to be checked. It would be amazing. Maybe someone can try and report this.

The only other solution: Use Sam@kes Godray sun shader... Extract the ped shader from the resource and use only that one. It fakes sun lighting.
https://community.multitheftauto.com/index.php?p=resources&s=details&id=10219

But extracting that shader and making it work stand-alone is not very simple.

n-560x95_FFFFFF_FFFFFF_000000_000000.png

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...