HTML5 Canvas 2D js Library

adjustEye Library Method

Short Description: Adjust Eye Position

Signature: taccgl.adjustEye (x,y,z)
Class: taccgl Class

This method is depricated. Please use Eye.setPos instead, which has the same function.

Sets the eye position to the given coordinates. Note that the viewing direction always is (0,0,1), i.e. in direction of the Z axis. The resulting image is always adjusted so that each 3D voxel at (x,y,0) is mapped to the pixel (x,y) within the body of the currently shown HTML document.

Coordinates (0,0,-5000) show the scene from top left, (1200,0,-5000) from top right, (500,2000,-5000) from a middle position and from the bottom.


taccgl.adjustEye (1200,0,-5000); var"pgMiddleColumnTable",taccgl.dddBox).start(); RUN
taccgl.defaultEye (); var"pgMiddleColumnTable",taccgl.dddBox).start(); RUN
taccgl.adjustEye (500,2000,-5000); var"testimg",taccgl.dddBox).start(); RUN
Next Page:taccgl.parallaxEye - Parallax Scrolling Eye Position
Previous Page: taccgl.defaultEye - Activate default Eye Position
Please Add a Comment or Question, click here!