maksam07 Posted August 10, 2017 Posted August 10, 2017 Good time of day! Question: how to draw lines without using showcol in a circle or sphere (the circle is more interesting)? I will accept any clues, if there is no such ready resource Thanks in advance for answers
DonOmar Posted August 10, 2017 Posted August 10, 2017 (edited) try this: and don't forget to change positions. function line3d() dxDrawLine3D(-1196.956, -1065.557, 128.218, -1196.686, -909.289, 128.200, tocolor(255, 255, 0, 255 ), 3) end addEventHandler("onClientRender", root, line3d) Edited August 10, 2017 by DonOmar small fix
maksam07 Posted August 11, 2017 Author Posted August 11, 2017 7 hours ago, DonOmar said: try this: and don't forget to change positions. function line3d() dxDrawLine3D(-1196.956, -1065.557, 128.218, -1196.686, -909.289, 128.200, tocolor(255, 255, 0, 255 ), 3) end addEventHandler("onClientRender", root, line3d) yes, i know that. can you give me other a hint
NeXuS™ Posted August 11, 2017 Posted August 11, 2017 @maksam07, it's totally math. Look for codes on stackoverflow maybe. Did I help you? NeXuS™#0001
_DrXenon Posted August 11, 2017 Posted August 11, 2017 I edited dxDrawCircle to make it work in 3D. Doesn't really need alot of work, try it your self and tell us what you end up with. ●●● Rage Gaming Society Coming Soon ●●●
DonOmar Posted August 11, 2017 Posted August 11, 2017 12 hours ago, maksam07 said: yes, i know that. can you give me other a hint only change the positions and the size of the line.
maksam07 Posted August 12, 2017 Author Posted August 12, 2017 Thank you all for the tips. I was able to do it, but in my own way. For some reason, I can not provide the code. Spoiler
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