Regxtrs Posted February 7, 2018 Share Posted February 7, 2018 How to create a circle safezone like all these PUBG servers ? I am creating a server in that style but it lags so much to render a circle Please help me, thanks Link to comment
KaMi Posted February 7, 2018 Share Posted February 7, 2018 4 minutes ago, Regxtrs said: How to create a circle safezone like all these PUBG servers ? I am creating a server in that style but it lags so much to render a circle Please help me, thanks what do you mean with "circle safezone " ? 3 minutes ago, <~KaMiKaZe~> said: what do you mean with "circle safezone " ? if you want a safezone, you need to use: createColCircle createRadarArea Link to comment
Regxtrs Posted February 7, 2018 Author Share Posted February 7, 2018 I mean PUBG circles, like that: Spoiler http://prntscr.com/ib69sc The problem with radar area is that is only draws rectangles.. I already tested using 360 radar areas to make a circle but it lags a lot, Also used the dxDrawCircle funciton but it lags a lot... But on these servers there's no lag... Link to comment
NeXuS™ Posted February 7, 2018 Share Posted February 7, 2018 Drawing a circle drawn on a picture. So Instead of using Lua functions to get that circle, you just draw a png using dxDrawImage. Link to comment
Regxtrs Posted February 7, 2018 Author Share Posted February 7, 2018 Thanks, its working now.. But now I faced another problem, I'm rendering this circle only when I press F11 to show the map, but how could I make this appears on my radar/minimap ? I need to create my own radar ? Link to comment
Regxtrs Posted February 7, 2018 Author Share Posted February 7, 2018 Ok, but how to create it ? what functions should I use ? Link to comment
NeXuS™ Posted February 7, 2018 Share Posted February 7, 2018 The drawing functions possibly. Link to comment
Regxtrs Posted February 7, 2018 Author Share Posted February 7, 2018 I just need to know how will I render the same image circle I am rendering right now on my F11 map over the radar area.. These servers create render targets or they are using another circle image just to render over the radar? Link to comment
NeXuS™ Posted February 7, 2018 Share Posted February 7, 2018 Use a render target, it'll be easier. Link to comment
Moderators IIYAMA Posted February 7, 2018 Moderators Share Posted February 7, 2018 (edited) The shader version gives of dxDrawCircle doesn't have a very high impact on the performance: nightly.multitheftauto.com/files/shaders/shader_circle.zip The only thing that it is missing is anti aliasing. (pixel edges) As last resort you can use browser + html + css to make it. (which should give the best quality, but isn't very performance optimal in my opinion. Yet, there shouldn't be much frame lagg of it.) Edited February 7, 2018 by IIYAMA Link to comment
Regxtrs Posted February 7, 2018 Author Share Posted February 7, 2018 got it But my main point now is how they create the custom Radar to also show the circles there, or the circles on radar are another image/shader over the radar ? Link to comment
NeXuS™ Posted February 7, 2018 Share Posted February 7, 2018 Create the F11 map on a rendertarget, then draw the needed part of that rendertarget with dxDrawImageSection. 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