Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Function off default values

#24

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);

Reported by aSydiK · July 8th, 2010 @ 03:13 PM

State: checked-in
Milestone: 0.4
Assigned to: aSydiK aSydiK

Activity

  1. aSydiK
    aSydiK
    • Milestone set to 0.4
    • Assigned user set to aSydiK
    • State changed from new to assigned
    • Milestone order changed from 4 to 0

    July 13th, 2010 @ 05:15 PM

  2. Andor Salga
  3. aSydiK
    aSydiK
    • Tag cleared.

    removing camera from tags and title as this can include more than just the camera defaults

    July 22nd, 2010 @ 03:20 PM

  4. aSydiK
    aSydiK
    • State changed from assigned to review-requested

    (from [038ffdee1f8bc77b2f9d42c5f7734d31bbffb3e7]) added runDefault function to set functions to default, working within resize atm [#24 Function off default values state:review-requested] http://github.com/aSydiK/XB-PointStream/commit/038ffdee1f8bc77b2f9d...

    July 22nd, 2010 @ 05:09 PM

  5. aSydiK
    aSydiK
    • Title changed from Function off default camera values to Function off default values

    July 23rd, 2010 @ 08:28 PM

  6. Andor Salga
    Andor Salga
    • 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.

    July 24th, 2010 @ 08:33 PM

  7. Andor Salga
    Andor Salga
    • State changed from review-looks-good to checked-in

    July 24th, 2010 @ 08:33 PM

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.