Archive: 3D Distortion


16th October 2002 00:12 UTC

3D Distortion
Hey guys, I'm having a problem with a 3D superscope I've been working on. I've got two SSs synchronized to look like a grid. However, when the camera moves close to the plane of the grid (so that it looks very horizon-ish), the lines of the grid become very distorted.
Attached are the superscopes in a zip file. Just wait a little while for the camera to get there.
If anyone could help, it'd be greatly appriciated!


16th October 2002 05:54 UTC

Looks like it's caused by your points going behind the camera. Even if your z vale is negative AVS still draws the points.


16th October 2002 09:35 UTC

The only easy way to fix this is to move the camera further away from the plane. The alternative is to split each line up into several pieces and then clip the bits which are distorted by checking if the next point is behind the clipping plane and then making the color black if it is. There is a fair amount of code involved in doing that so I'd recommend against it unless you really want to see your plane in close up in that fashion. It would be best to move the camera just far enough back that the circle described by the corners of the plane almost touches it when the rotation is at its lowest.