
Untitled
By: a guest on
Aug 6th, 2012 | syntax:
None | size: 1.45 KB | hits: 17 | expires: Never
(gdb) frame 1
#1 0x5deacf0a in WWMath::computeRayFromScreenPoint (x=480, y=270, modelview=
{static IDENTITY_MATRIX = {static IDENTITY_MATRIX = <same as static member of an already seen type>, m = {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}}}, m = {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, -16778137}, {0, 0, 0, 1}}}, projection=
{static IDENTITY_MATRIX = {static IDENTITY_MATRIX = <same as static member of an already seen type>, m = {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}}}, m = {{2.4142135623730949, 0, 0, 0}, {0, 4.2919352219966136, 0, 0}, {0, 0, -1.0749924060256948, -1163773.0533804223}, {0, 0, -1, 0}}},
viewport=@0xb86a10, result=@0x5db289f0) at jni/src/core/util/WWMath.cpp:200
200 if (!unProject(x, y, 0, tMvp, viewport, mNearPoint))
(gdb) print tMvp.m
$1 = {{2.4142135623730949, 0, 0, 0}, {0, 4.2919352219966136, 0, 0}, {0, 0, -1.0749924060256948,
16872596.80887831}, {0, 0, -1, 16778137}}
(gdb) frame 0
#0 WWMath::unProject (x=480, y=270, z=0, mvpMatrix=
{static IDENTITY_MATRIX = {static IDENTITY_MATRIX = <same as static member of an already seen type>, m = {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}}}, m = {{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}}}, viewport=@0xb86a10, result=@0x5e1b1e28)
at jni/src/core/util/WWMath.cpp:115
115 double w = 1.0 / result.getW();
(gdb) print mvpMatrix.m
$2 = {{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}}