• Advertisement
Sign in to follow this  

Convert 3D to 2D positions

This topic is 2688 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

Hello there !

I'm working on a 3d RTS and I have the basic unit selection code working, the problem is when I want to select multiple units using a selection box.

The method I thought of was convert the 3d coordinates of the units into 2D coordinates and the select them using a 2D selection box.

The problem is I can't seem to convert the 3D coordinates into 2D coordinates.

I'm sure this isn't very hard to do, but somehow all the methods I tried so far failed.

Any help on this would be greatly appreciated !

Share this post


Link to post
Share on other sites
Advertisement
Well I'm using neither Directx or Opengl, but my problem has been solved. Thanks anyway. :)

Share this post


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

  • Advertisement