[Plib-users] HOT calculation for Y-is-up-coordinate-system
Brought to you by:
sjbaker
From: Jan R. <slo...@gm...> - 2005-12-17 06:56:16
|
Hello, I'm currently migrating an OpenGL application to use SSG for rendering. The application uses the quite popular "Y-is-up" coordinate system alignment. This is no problem as long as I'm using plain rendering functions. Any model I load is initially transformed to Y-is-up and the camera is set up with an (0, 1, 0) up-vector, so everything looks fine. Now the problem arises how to perform a HOT calculation, as the ssgHOT() function assumes Z-is-up. I'm sure there is a way to do the calculation with the right "m"-matrix passed to ssgHOT(), but I can't get it set up with the right values. Has someone done this before and give me a hint or a code snippet? Kind regards, Jan R. -- Jan Reucker email: jan dot reucker at web dot de web: http://www.reucker-online.de |