search for: applyscreentransform

Displaying 2 results from an estimated 2 matches for "applyscreentransform".

2007 Jun 12
0
[PATCH] Combined checkFTB and capDirection into one checkOrientation function.
...pOutput *outputPtr, + const float points[3][3]) { CompTransform sTransform = *transform; float mvp[16]; @@ -932,90 +933,27 @@ cubeCheckFTB (CompScreen *s, float vecA[3], vecB[3]; float ortho[3]; - (*s->applyScreenTransform) (s, sAttrib, outputPtr, &sTransform); - transformToScreenSpace (s, outputPtr, -sAttrib->zTranslate, &sTransform); - - MULTM (s->projection, sTransform.m, mvp); - - pntA[0] = outputPtr->region.extents.x1; - pntA[1] = outputPtr->region.extents.y1, - pntA[2] = 0.0f;...
2007 Apr 12
1
[PATCH] Transparent cube
...rk, xRotate has different values now from what it used to have (it has the rotation of the top-most face, which means between -45 and 45 for 4 sided cube, between -30 and 30 for 3 sided cube etc), and this change results in some weird bugs when rotating the cube with vertical rotations. I looked at applyScreenTransform, and it looks like the rotation axis that is used for vertical rotating expects the old values of xRotate. This should be fixed, but i'm not sure what is the correct way to do vertical rotations with the "new" values. Do you have any idea how to properly do that? - Unfold cube doesn&...