Re: [CrystalSpace] #1008: SetFOVAngle has a wrong aspect ratio

"CrystalSpace" <[email protected]> Tue, 12 Nov 2013 11:29:55 -0000
Newsgroups gmane.comp.graphics.crystalspace.tracker
Message-ID <[email protected]>
#1008: SetFOVAngle has a wrong aspect ratio
-------------------------+--------------------------------------------------
 Reporter:  lucageode    |       Owner:  jorrit
     Type:  defect       |      Status:  new   
 Priority:  major        |   Milestone:        
Component:  general      |     Version:  V2.1  
 Keywords:  SetFOVAngle  |  
-------------------------+--------------------------------------------------

Comment(by lucageode):

 i change the aspect to default_aspect like this and it seams right. please
 check it

 void PerspectiveImpl::UpdateMatrix ()
 {
   if (!matrixDirty) return;

   matrix = CS::Math::Projections::CSPerspective (1.0f,
     default_aspect, shift_x, shift_y*default_aspect, inv_aspect,
 nearClip);

   matrixDirty = false;
   invMatrixDirty = true;
 }

-- 
Ticket URL: <http://www.crystalspace3d.org/trac/CS/ticket/1008#comment:2>
CrystalSpace <http://www.crystalspace3d.org/>
Free open-source 3D SDK.
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk