bandi94 Posted July 27, 2013 Share Posted July 27, 2013 So the problem is the next. I used the simpel relative calc mode. If on 800x600 is 200 px then , 200/800 = 0.25*ScreenW on every resolution , this is all good when it come's on x,y. When trying to use it on w,h diffrent story, if i calc it on 800*600 is a perfect circle. When i change it to 1024x.... bang the perfect circle become's an oval when it's rotated. So i think this is bk of the aspect ration , if on desktop i have 1336x768 and ingame using 1024x... there will be black side bar's bk of the aspect ration. And from there come's the whole problem. Soo i am trying to find some math solution for this but without any good find. If somebody know's how to solve this problem could tell me ??? THX Link to comment
denny199 Posted July 27, 2013 Share Posted July 27, 2013 https://wiki.multitheftauto.com/wiki/DxDrawLine See second example. BTW, did you calculated the w,h too? or did you just let it stayed it like [x*0.25,y*0.25,200,200] Can you show me your draw technique so I can test it for myself? Link to comment
bandi94 Posted July 27, 2013 Author Share Posted July 27, 2013 yes i made it for w,h to . (w*0.581,h*0.491,w*0.086,h*0.049) Link to comment
XFawkes Posted July 27, 2013 Share Posted July 27, 2013 https://wiki.multitheftauto.com/wiki/Dx ... entEnabled 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