Saturday, April 30, 2011

A Different Perspective

Finally getting things to line up... but the perspective is not quite right. It looks fine on the top half of the mountain, but the horizontal trail should be much lower; in fact, part of it is behind the camera, which just ain't right...
This is the same view with placemarkers drawn in: the green cross is the GPS peak of Blackhead, which is the point where the photo is inserted. The red cross is the camera position (with compass and XYZ directions drawn in), and the pink cross is the peak of Black Dome mountain. There enlies the problem-

This is a side view of the whole thing, looking North. The red cross is still the camera, and the white line is where it's looking. Black Dome is behind the camera, but somehow the camera still sees it. I think this has to do with the ortho() function, again because the perspective on the path is not quite right. I've tried adjusting the clipping planes, but that doesn't change the perspective, only what renders and what doesn't render. So how the camera is seeing behind itself, I don't know...

But this is what it looks like with the "standard" perspective:

And this is where I think the trail should be:

Wednesday, April 27, 2011

Into the Void... aka Progress!



Making progress orienting the OpenGL virtual camera, and fixed the rotation of the image so it's [very nearly] square to the virtual camera. Note to self: degrees are not the same as radians.

In theory, all I need to do is make some fine adjustments to the image orientation to compensate for the pan and tilt of the real camera (when the picture was actually taken). And then get it to scale properly- the image should take up the whole gray area. And hopefully the perspective will correct itself with the scaling... hopefully being the key word.