Some objects are darker, and some lighter. -
AWTom - 13.01.2017
Hi I go straight to the point, so, When i make a map, some objects which i changed material and
materialcolor, are lighter/darker than others same objects with same material and materialcolor.
NOTES:
I use Texture Studio as map editor
Everything looks good in map editor, but when I export it and load on server it starts bugging
All objects are streamed
All objects have same material and materialcolor(white)
All materialindexes have the same materialcolor
Re: Some objects are darker, and some lighter. -
Vince - 13.01.2017
Can't really do anything about that. Those objects were designed by Rockstar to be used in one specific location only so the shading is adapted to that specific location.
Re: Some objects are darker, and some lighter. -
AWTom - 13.01.2017
Its not Rockstar object, its samp 0.3.7 object but that has nothing to do with my issue.
Its not shading, the shading dissappeared once i change materialcolor of object.
on my screenshot you can see like 10 same objects(ID:11694) with changed material and materialcolor and some of them are darker than others after I converted them to .pwn and loaded on my server.
Re: Some objects are darker, and some lighter. -
Jaxson - 13.01.2017
I am guessing you're setting the materialcolor to 0 instead of 0xFFFFFFFF. I am talking about the last parameter in SetObjectMaterial function.
Re: Some objects are darker, and some lighter. -
AWTom - 14.01.2017
nah i set 0xFFFFFFFF.
Re: Some objects are darker, and some lighter. -
kristo - 14.01.2017
Try putting a flasher/traffic light object near the connection point and see if the colours bug out even more. Many SA-MP objects (f.e the new walls) have a really annoying problem with lighting and it can't be fixed by the scripter.
Re: Some objects are darker, and some lighter. -
AWTom - 14.01.2017
Quote:
Originally Posted by kvann
Try putting a flasher/traffic light object near the connection point and see if the colours bug out even more. Many SA-MP objects (f.e the new walls) have a really annoying problem with lighting and it can't be fixed by the scripter.
|
I tried but it doesnt help rly, thanks anyway
Re: Some objects are darker, and some lighter. -
Nate4 - 17.01.2017
Quote:
Originally Posted by AWTom
nah i set 0xFFFFFFFF.
|
In short: You should be using 0x0, not 0xFFFFFFFF
If you do not wish to re-colour the object (only set a material), use
0x0 as the colour parameter. This will set the material only..
For some objects, if you set any colour (0xFFFFFFFF is techinically) on material index 0, the vertex lighting will be removed which is why some objects become darker.
Ref:
https://sampwiki.blast.hk/wiki/SetObjectMaterial
Re: Some objects are darker, and some lighter. -
kristo - 17.01.2017
Quote:
Originally Posted by AWTom
I tried but it doesnt help rly, thanks anyway
|
This wasn't supposed to help, I just wanted to know if that object has the same problem as the new walls.
Re: Some objects are darker, and some lighter. -
AWTom - 19.01.2017
Quote:
Originally Posted by Nate4
In short: You should be using 0x0, not 0xFFFFFFFF
If you do not wish to re-colour the object (only set a material), use 0x0 as the colour parameter. This will set the material only..
For some objects, if you set any colour (0xFFFFFFFF is techinically) on material index 0, the vertex lighting will be removed which is why some objects become darker.
Ref: https://sampwiki.blast.hk/wiki/SetObjectMaterial
|
i changed the matrialcolor to 0xFFFFFFFF to all objects cuz i want them to loose the vertex lighting and make the objects dark.
They all lose vertex lighting but some of them are dark(as they should be) and some of them are brighter.
Re: Some objects are darker, and some lighter. -
Nate4 - 20.01.2017
Quote:
Originally Posted by AWTom
i changed the matrialcolor to 0xFFFFFFFF to all objects cuz i want them to loose the vertex lighting and make the objects dark.
They all lose vertex lighting but some of them are dark(as they should be) and some of them are brighter.
|
Interesting.. maybe some didn't use vertex lighting to being with (so they don't change in brightness?).
Maybe you could try some lower RRGGBB values on the brighter objects to dim them.. e.g. 0XFFDDDDDD
Not sure if it will look nice but I think its worth a shot
Re: Some objects are darker, and some lighter. -
AWTom - 29.05.2017
Sorry for posting on old thread but my soulution might help other ppl with same problem.
My soulution is, that all objects have to has max 500 draw distance, otherwise they will keep changing their texture color when you get too far.