maksam07 Posted August 10, 2017 Share 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 Link to comment
DonOmar Posted August 10, 2017 Share 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 Link to comment
maksam07 Posted August 11, 2017 Author Share 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 Link to comment
NeXuS™ Posted August 11, 2017 Share Posted August 11, 2017 @maksam07, it's totally math. Look for codes on stackoverflow maybe. Link to comment
_DrXenon Posted August 11, 2017 Share 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. Link to comment
DonOmar Posted August 11, 2017 Share 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. Link to comment
maksam07 Posted August 12, 2017 Author Share 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 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