Vuzimir Posted March 25, 2018 Share Posted March 25, 2018 (edited) Hi guys, im trying to make a 3d radar something like this: http://prntscr.com/iw1z1v So what i managed to do is this: http://prntscr.com/iw1z82 so i have this code: rt = dxCreateRenderTarget(290, 175, true) --shader myShader = dxCreateShader( "texRep.fx" ) myTexture = dxCreateTexture( "gtasa.png" ) dxSetShaderValue( myShader, "gTexture", myTexture ) dxSetShaderTransform ( myShader, -30, 0, 0, 1, 0, 0, false, 0, 0, false) --drawing map dxDrawImage((10+5)*xFactor, sy-((200+5))*yFactor, (300-10)*xFactor, (175)*yFactor, myShader, 0, 0, 0, tocolor(255, 255, 255, 150)) So i have that RenderTarget so how can i include it in shader so i will get map in this square from RenderTarget: http://prntscr.com/iw1zv5 but with my 3d effect from picture above: Edited March 25, 2018 by Vuzimir Link to comment
Discord Moderators Pirulax Posted March 28, 2018 Discord Moderators Share Posted March 28, 2018 Its much more complicated, than this script you pasted here. You may want to use you position, but you know what? Take a look at this: https://community.multitheftauto.com/index.php?p=resources&s=details&id=12641 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