#24 ✓checked-in
aSydiK

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

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.

New-ticket Create new ticket

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 &lt;canvas&gt; 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>

Shared Ticket Bins

People watching this ticket

Referenced by

Pages