I’m done with a script that helps generating warp mesh files to use with the BGE dome mode.
This system take in account the projector position, the spherical mirror + a dome:
Warp Mesh Generator v2.2 (blend file) [Blender 2.6svn]
Warp Mesh Generator v2.0 (blend file) [Blender 2.5svn]
Warp Mesh Generator v1.2 (blend file)[Blender 2.49svn]
It generates a file that compensates for the mirror distortion and produces a undistorted image.
You can also find in the file:
- a function to convert a point + a vector to a LINE object
- intersection functions between the light rays and the mirror and the dome
- everything well documented, so I hope it can be useful to someone, at least for learning experience
edit: updated to 1.1
edit: updated to 2.0 (Blender 2.5 compatible)
edit: updated to 2.2 (Blender 2.6 compatible)