Rendering 3D objects into photographs taken by uncalibrated perspective cameras