From: wei wang (openglperformer++at++yahoo.com)
Date: 06/03/2003 09:31:44
Hi, I have a question about pfChannel::setAspect(). The basic problem is that it won't take effect after I call this function in my program. The detail is as below:
Previously, I used this function to change the width-height ratio of my channels on an Octane running IRIX6.5.19 and Performer 2.5. Before calling this function, each channel (left eye channel and right-eye channel) has a dimension of 1024x768. After calling tihs function, each channel is 512x768. Then, using the setViewport function, I was able to display these two channels side by side on a 1024x768 display.
However, after I reinstall the machine (OS: still IRIX6.5.19. Performer: now is 3.0), I can run those old binary programs I complied with Performer 2.5 without a problem, but if I compile my source code on my new system with Performer 3.0, I couldn't change the aspect ratio any more, even though the code was exactly the same.
I use the getAspect function before and after the setAspect function and it shows that the ratio was not changed at all. The two channels (left eye and right eye) still fit into 1024x768 display, but somehow, both channels were shrinked automatically and the width-height ratio stayed the same, which was not what I wanted. So, does Performer 3.0 does something differently with setAspect() function? Thanks a lot!
Wei
P.S. Here are the lines that I used:
/* Here splits the window to display left and right channel seperately */
left_chan->setViewport(0.0f, 0.5f, 0.0f, 1.0f);
right_chan->setViewport(0.5f, 1.0f, 0.0f, 1.0f);
/* Change the horiz and vert aspect of the camera to stretch the
* channel view so that two channels can just fit in the window
*/
left_chan->setAspect(2, left_chan->getAspect()*2.0f);
---------------------------------
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).
This archive was generated by hypermail 2b29 : Tue Jun 03 2003 - 09:32:22 PDT