KryPtoHolYx Posted January 18, 2015 Share Posted January 18, 2015 Hello, i´m having some problems while drawing a image with a rendertarget. Everytime i draw onto the target, the drawn image leaves a "white" border, example : So is there a way to remove them ? how i draw the image : dxSetRenderTarget( map,true ) dxSetBlendMode("modulate_add") dxDrawRectangle (0,0, 155,155 ,tocolor(20,200,20,150)) local x,y = getElementPosition(localPlayer); local x,y = calcPos(x,y) _,_,rz= getElementRotation ( v) dxDrawImage(x,y, 50,50,"ship.png",-rz,0,0,tocolor(255,255,255,255)) dxSetBlendMode("blend") dxSetRenderTarget( ) Regards Link to comment
Et-win Posted January 18, 2015 Share Posted January 18, 2015 I always just remove the faded-pixels at the edges of the picture Link to comment
MTA Team botder Posted January 18, 2015 MTA Team Share Posted January 18, 2015 Create your ship.png as texture when the resource starts. (use DXT5 compressed and textureEdge "clamp") dxCreateTexture Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now