ROTSTEP questions


RE: ROTSTEP questions
#4
(2016-04-23, 20:42)Roland Melkert Wrote: And last: Anyone has the default view orientation matrix as used in Lpub?

I don't know for sure, but I suspect that it is latitude 30, longitude 45 in lat/long spherical coordinates. Here is my OpenGL-compatible code for initializing the matrix in LDView; I'm pretty sure that's the same as what's in LPub:

Code:
void LDrawModelViewer::setupIsoViewAngle(void)
{
   rotationMatrix[0] = (TCFloat)(sqrt(2.0) / 2.0);
   rotationMatrix[1] = (TCFloat)(sqrt(2.0) / 4.0);
   rotationMatrix[2] = (TCFloat)(-sqrt(1.5) / 2.0);
   rotationMatrix[3] = 0.0f;
   rotationMatrix[4] = 0.0f;
   rotationMatrix[5] = (TCFloat)(sin(M_PI / 3.0));
   rotationMatrix[6] = 0.5f;
   rotationMatrix[7] = 0.0f;
   rotationMatrix[8] = (TCFloat)(sqrt(2.0) / 2.0);
   rotationMatrix[9] = (TCFloat)(-sqrt(2.0) / 4.0);
   rotationMatrix[10] = (TCFloat)(sqrt(1.5) / 2.0);
   rotationMatrix[11] = 0.0f;
   rotationMatrix[12] = 0.0f;
   rotationMatrix[13] = 0.0f;
   rotationMatrix[14] = 0.0f;
   rotationMatrix[15] = 1.0f;
   examineLatitude = 30.0f;
   examineLongitude = 45.0f;
}
Reply
« Next Oldest | Next Newest »



Messages In This Thread
ROTSTEP questions - by Roland Melkert - 2016-04-21, 22:37
RE: ROTSTEP questions - by Milan Vančura - 2016-04-23, 15:15
RE: ROTSTEP questions - by Roland Melkert - 2016-04-23, 20:42
RE: ROTSTEP questions - by Travis Cobbs - 2016-04-24, 4:59
RE: ROTSTEP questions - by Roland Melkert - 2016-04-24, 19:21
RE: ROTSTEP questions - by Travis Cobbs - 2016-04-25, 2:48
RE: ROTSTEP questions - by Roland Melkert - 2016-04-25, 20:54
RE: ROTSTEP questions - by N. W. Perry - 2022-06-11, 2:28
RE: ROTSTEP questions - by Roland Melkert - 2022-06-11, 18:40
RE: ROTSTEP questions - by N. W. Perry - 2022-06-11, 21:08
RE: ROTSTEP questions - by Roland Melkert - 2022-06-12, 17:21
RE: ROTSTEP questions - by N. W. Perry - 2022-06-12, 18:05
RE: ROTSTEP questions - by Roland Melkert - 2022-06-16, 21:28
RE: ROTSTEP questions - by N. W. Perry - 2022-06-16, 23:27
RE: ROTSTEP questions - by Roland Melkert - 2022-06-17, 18:40
RE: ROTSTEP questions - by N. W. Perry - 2022-06-17, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)