I am writing a 3D tic tac toe game where I want the user to be able to click on a square in the grid, the only thing is that the grid is not static ie: it can move around, rotate etc… I’m also using perspective which I think complicates things.
Does anyone know how to convert 2D screen coords into 3D world coords at say a fixed z value and give it a vector so I can project a line through the grid to find which square it intersects first?
the problem with using read pixels is that the squares are empty, they are just bounded by cylinders, so you can see the lower levels through each square should you rotate the grid that way.
cheers
bleach
[This message has been edited by bleach (edited 02-14-2002).]