Skip to main content
gamedev.net
🔒 Locked

map editor

Started by aperson 0 replies 200+ views
Original Post
aperson
aperson
I am making a map editor for my 3d engine and I want to know how I can go about matching up points in 3d space with thr 2d pixels on the screen. Does that make n e sense??
BrianH
BrianH
If you want to go from 3D to 2D then you just transform your 3D point just as it would through the rendering pipeline.

If you want to go from 2D to 3D, the first thing to realize is that you are adding a dimension, so you will in theory be casting a ray into 3D space from the point on the screen. For this, look up topics such as "Object Picking". I am sure there are lots of articles out there.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.