Hi all,
How can I change the viewport of a camera? I am using the SceneCanvas framwork and I have set the camera with
view = canvas.central_widget.add_view()
view.camera = 'turntable'
view.camera.fov=60
Tmatrix=np.eye(4)
Tmatrix[3,2]=100
view.camera.transform.matrix=Tmatrix
This places my camera at 100 units from the origin of the scene. My canvas has size 800x600 pixels, and the viewport is then -400, 400 by -300, 300. How can I specify my own viewport? For example if I only want to render to bottom left quadrant of the image.
I have tried setting view.camera.viewbox.transform with a translation, but this does not give me the proper result.
With kind regards,
Pieter Eendebak