SA-MP Forums Archive
[BUG] SetObjectMaterial - Texture Issues? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [BUG] SetObjectMaterial - Texture Issues? (/showthread.php?tid=332817)



[BUG] SetObjectMaterial - Texture Issues? - corne - 09.04.2012

Well, just look at the differences on the screenshots below. I used the same textures.





AW: [BUG] SetObjectMaterial - Texture Issues? - BigETI - 09.04.2012

Ever heard of texture mapping? (One of the basics in OpenGL and DirectX)

That means that the textures will be fit on the object to prevent having ugly mapped textures on them.

With this function you won't be able to remap the texture on the object (which means it will take the same texture map as it got told from file and the result is as in on your pictures)


Re : [BUG] SetObjectMaterial - Texture Issues? - Vukilore - 09.04.2012

Its because of LOD right ?


AW: [BUG] SetObjectMaterial - Texture Issues? - Drebin - 09.04.2012

It's because the textures are being stretched to fit on the object.
If oyu have a small texture but an object with a big surface, the texture is being stretched till it fits the size, which results in a distortion of the pixels.


Re : [BUG] SetObjectMaterial - Texture Issues? - Vukilore - 09.04.2012

Ah ok ok, thanks