Function off default values
Reported by aSydiK | July 8th, 2010 @ 03:13 PM | in 0.4
We should put this in a function that we can call to set default values.
var fovy = 60;
var aspect = width/height;
var znear = 0.001;
var zfar = 1000;
var ymax = znear * Math.tan(fovy * Math.PI / 360.0);
var ymin = -ymax;
var xmin = ymin * aspect;
var xmax = ymax * aspect;
var left = xmin;
var right = xmax;
var top = ymax;
var bottom = ymin;
var X = 2 * znear / (right - left);
var Y = 2 * znear / (top - bottom);
var A = (right + left) / (right - left);
var B = (top + bottom) / (top - bottom);
var C = -(zfar + znear) / (zfar - znear);
var D = -2 * zfar * znear / (zfar - znear);
Comments and changes to this ticket
-
aSydiK July 13th, 2010 @ 05:15 PM
- Milestone set to 0.4
- Assigned user set to aSydiK
- State changed from new to assigned
- Milestone order changed from 4 to 0
-
Andor Salga July 14th, 2010 @ 08:59 PM
- Tag set to camera
-
aSydiK July 22nd, 2010 @ 03:20 PM
- Tag cleared.
removing camera from tags and title as this can include more than just the camera defaults
-
aSydiK July 22nd, 2010 @ 05:09 PM
- State changed from assigned to review-requested
(from [038ffdee1f8bc77b2f9d42c5f7734d31bbffb3e7]) added runDefault function to set functions to default, working within resize atm [#24 state:review-requested] http://github.com/aSydiK/XB-PointStream/commit/038ffdee1f8bc77b2f9d...
-
aSydiK July 23rd, 2010 @ 08:28 PM
- Title changed from Function off default camera values to Function off default values
-
Andor Salga July 24th, 2010 @ 08:33 PM
- State changed from review-requested to review-looks-good
R+ but there are some issues on minefield when resizing the canvas. Works fine on Webkit.
We'll fix up the errors beginning of next week. -
Andor Salga July 24th, 2010 @ 08:33 PM
- State changed from review-looks-good to checked-in
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
<b>XB PointStream</b> (working name)
A cross-browser JavaScript tool which will emulate Arius3D's PointStream viewer. It will be able to quickly render a large amount of point cloud data to the <canvas> tag using WebGL.<br />
Current release <a href="http://scotland.proximity.on.ca/asalga/releases/0.8/xbps-min-0.8.zip">XBPS 0.8</a>
People watching this ticket
Referenced by
- 24 Function off default camera values (from [038ffdee1f8bc77b2f9d42c5f7734d31bbffb3e7]) added r...