Scott Herod (herod++at++evt.com)
Tue, 03 Nov 1998 16:51:08 -0700
float fov = 45.0f;
// Create and configure a window.
pfPipe *pipe = pfGetPipe(0);
pfPipeWindow *pipeWindow = new pfPipeWindow( pipe );
pipeWindow->setWSWindow( display, XtWindow(_glwidget) );
pipeWindow->setGLCxt( _glxcontext );
pipeWindow->setWSDrawable( display, XtWindow(_glwidget) );
// Create and configure a pfChannel.
pfChannel *channel = new pfChannel( pipe );
channel->setNearFar( 1.0f, 8000000.0f );
channel->setFOV( 0.0f, fov );
pfCoord view;
view.hpr.set( 0.0f, -90.0f, 0.0f );
float z_distance = winHeight/2 / tanf( fov * (3.1415926/180.) / 2.
);
view.xyz.set( 0.0f, 0.0f, z_distance );
channel->setView( view.xyz, view.hpr );
It appears that the channel is using an aspect ratio of 1.25
regardless of the size of the window. Furthermore, this is
a change from pf 2.0.4 where the channel could grab the window size.
Can someone verify that aspect ratios are not changed?
Thanks,
Scott Herod
scott++at++evt.com
This archive was generated by hypermail 2.0b2 on Tue Nov 03 1998 - 15:51:13 PST