standard = standard.x,standard.y,standard.z
location = location.x,location.y,location.z
direction = direction.x,direction.y,direction.z
function constructcamerastring(standard,location,focus,direction) {
var standard = standard.x,standard.y,standard.z
var location = location.x,location.y,location.z
var direction = direction.x,direction.y,direction.z
return standard + "," + location + "," + focus + "," + direction
// note that the x y z values need to be stored as strings for this to work
if you spend time in your world, then close it, saving the camera string and the model string, when you resume
function loadworld(camerastring,modelstring) {} loads the world.
var camera = {}
camera.standard = {}
camera.standard.x =
var standard = {}
standard.x = {document.getElementById("standardxinput").value}
standard.y = {document.getElementById("standardyinput").value}
standard.z = {document.getElementById("standardzinput").value}
location.x = {document.getElementById("locationxinput").value}
location.y = {document.getElementById("locationyinput").value}
location.z = {document.getElementById("locationzinput").value}
var canvas = {}
canvas.left = document.getElementById("canvas").style.left
canvas.top = document.getElementById("canvas").style.top
canvas.width = document.getElementById("canvas").style.width
canvas.height = document.getElementById("canvas").style.height
canvas.width = document.getElementById("canvas").style.width
canvas.height = document.getElementById("canvas").style.height
createthecamera(standard,location,direction,canvas,model) {
getthecenterpoint(
movefromapointadistanceinadirection(frompoint,distance,direction) {
...
return topoint}