• Advertisement
Sign in to follow this  

[.net] drawing in a 3d evironment

This topic is 4554 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to draw a circle for movement, just like in homeworld. I know of two choices. Either,calculate the demensions of the circle as if you were looking at it from an angle, so i would have to calculate the angle then calculate the demensions for an elipse then draw it, but i would still have to figure out how to rotate it. The second method i know of, is to make a mesh that gets drawn like a 3d object. this way would be easier, but i would also need another mesh that goes from the mouse cursor to the center of the circle. and i would need to scale it, rotate it and be able to view it from lots of different angles, fully 3d. It would look some thing like this (this is a screenshot from homeworld) Free Image Hosting at www.ImageShack.us Is there a better way of drawing this 3d circle? Thanks Web_scripter

Share this post


Link to post
Share on other sites
Advertisement
nvm i found the solution, all i need to do is create a vertexbuffer with a list of points of circle, then all i need to do is render it and when i move my camera directx does all the calculations, geez that was an easy solution.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement