Skip to main content
GameDev.net gamedev.net
🔒 Locked

Coordinates

Started by TheVoid Oct 27, 2002 at 6:39 AM 3 replies 250+ views
Original Post
TheVoid
TheVoid
Hello! First, look at the picture at: http://flux5.w.interia.pl/picture.gif How to draw the same rectangle form 3D space in 2D space? Does anyone know an equation that allows to convert (x,y,z) coordinates to (x,y) coordinates? I''m sure that it exists.
Basiror
Basiror
switch to orthographic mode with glortho(...)
and set the z value to zero
http://www.8ung.at/basiror/theironcross.html
TheVoid
TheVoid
But I want to know an equation too.
IllMind
IllMind
Check www.thepixels.net in the tutorials section. The OpenGL tutorial 0 explains 3d fundementals quite well. About a 1/3 of the way down there is an equation for converting a 3d point to 2d. I dont know if its what you need, but it might help.
TheVoid
TheVoid
OK. Thanks!

Topic Locked

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

Sign in to reply to this topic.