• Advertisement

Archived

This topic is now archived and is closed to further replies.

3D -> 2D

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

Is there any equation that allows to convert 3D coordinates to 2D coordinates (without perspective). If you don''t know what I mean go to http://flux5.w.interia.pl/picture.gif

Share this post


Link to post
Share on other sites
Advertisement
3d->2d is all relative to the view plane. For example, the results you desired must mean the view plane must be parallel to object you wish to render. Not all objects in your scene will work right for your method - it''s only for a single object. Hope that makes sense.

---
Brent Gunning | My Site

Share this post


Link to post
Share on other sites
The picture you linked to gives you a possible answer. Just ignore the third coordinate. This is called projection to the xy plane.

Share this post


Link to post
Share on other sites
Easy way:

Pick an axis, then drop that axis componet from your 3D cords. Bingo, you have a 2D projection plane looking down the axis you did away with and no scaling.

Orthographic Projection:

The projections are onto one of the cord planes x=0, y=0, or z=0. Basicly the same as above but more proper wording. To do an orthographic projection from an arbitrary view you first must determain your objects position in view space from world space, and then drop what will be your cord representing depth in the view space before putting it in 2D screen space.


[Edit]Typos will be the end of me![/Edit]

[edited by - thewayout_is_through on November 1, 2002 9:34:06 PM]

Share this post


Link to post
Share on other sites

  • Advertisement