Calculating positions from four points in a realworld 3d space using pan tilt angles

103 Views Asked by At

Been trying to figure this out on and off for a couple of years thought I might just put my hand up for help.

Back story and info Thinking in a 3D space and using theatrical moving lights (which can be pointed typically Pan 540deg and Tilt 270deg controlled by a 16bit value 0->65535 where 32767 is the center position. The angles are not the same accross different brands and models of lights.

What I need to figure out firstly is where these fixtures are in 3D Space by using four or more known points on the ground by manually pointing these fixtures at these locations and storing the pan-tilt values.

By using the known floor locations and the pan-tilt positions for each position and light would like to solve for the fixture(light) positions and rotation in space.

Image: 3d model with fixtures and floor positions

Secondly would like to be able to use a 3D coordinate be able to point the lights to I believe using inverse kinematics but open to other methods.

Would be great if someone can point me to the correct maths to solve this.