Monday, September 5, 2016

camera?

Some function will install the camera and take a picture.

The first step is allocating some screen space:
var frameleft = 100; var frametop = 200
var framewidth = 600; var frameheight = 400.

The next step is defining the camera's size in the model, and we'll make it pretty small:
var camerawidth = "1 inch".

Step 3: point the camera in a direction ...
But first: locate the center of the camera:
var cameracenter = "0, 1 inch, 0" ...
var direction = 45.
Note: negative z is 0 degrees and positive x is 90 degrees.
We can now tilt the camera:
var tilt = 10 degrees.

Our camera has now been defined. We need, now, a point which represents its top left corner in the model.

Not ready to tackle the math so here's another thing we'll want to think about: