SA-MP Forums Archive
Object lose any shading/darkness with SetObjectMaterial - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Object lose any shading/darkness with SetObjectMaterial (/showthread.php?tid=411965)



Object lose any shading/darkness with SetObjectMaterial - ikey07 - 31.01.2013



Ths is how it used to look before 0.3x
https://www.youtube.com/watch?v=wc5zxbAm9qs


Re: Object lose any shading/darkness with SetObjectMaterial - leong124 - 31.01.2013

I think it was removed in 0.3x RC, so as to fix some lighting/reflection problem on some objects.
Actaully I suggest the dev team to add a parameter to specify if they want reflection or not. Maybe in 0.4 or R2.


Re: Object lose any shading/darkness with SetObjectMaterial - Kalcor - 31.01.2013

The vertex lighting has to be removed if you use a custom material colour. If you use colour 0 this shouldn't happen.

If you really need a custom colour, you'll need to get the colour brightness correct for your material. ie 0xFFFFFFFF might become 0xFF999999.


Re: Object lose any shading/darkness with SetObjectMaterial - ikey07 - 31.01.2013

I dont use any color at all, I ignore that parameter, but I will try to set white color, maybe helps


Re: Object lose any shading/darkness with SetObjectMaterial - Kalcor - 31.01.2013

Yeah, I was wrong. I think it's a bug when you set the object draw distance more than 300.0 and it has any custom material applied.

The only solution I have for now is to either lower the draw distance, or change the material colour to a darker colour.

It needs to be fixed properly though.

Another thing I wanted to add, I think if you set a custom material colour on those wall objects, it might remove the lighting problems that come with certain weather IDs.


Re: Object lose any shading/darkness with SetObjectMaterial - ikey07 - 31.01.2013

I could set color, but then I need to apply to each index that color and with original textures, kinda alot of work, as I change only one index and whole building shine like fresh cent.



I only set transparent text on the index where is that glass, rest is original.