Re: [info-performer] Transformation Matrix

Date view Thread view Subject view Author view

From: Deepthi Singh (deepthi_singh++at++students.iiit.net)
Date: 06/28/2004 04:55:27


Sir,
        First, Thank you for the prompt reply.

        Ya I have gone thru pfMatrix man pages.
        
        I could not interpret h,p,r.
        I'm not sure what they stand for.
        I mean, h is the angle of rotation about what, etc.
        
        I have h,p,r and position of the camera.
        I need to make a View frustim with 45 hor and 45 ver FOV.
        
        This is what I've done at each scene update:

        --------------
        pfFrustum *myFrust = new pfFrustum;
        
        pfMatrix transform;

        transform.makeRot(p,1.0f,0.0f,0.0f);
        transform.preRot(h,0.0f,1.0f,0.0f);
        transform.preRot(r,0.0f,0.0f,1.0f);
        transform.preTrans(x,y,z);

        myFrust->orthoXform(myFrust,transform);
        ----------------

        This seems to give wrong results. ( I deduce this since the prog
        says about a node that can be seen on the screen - as not in
        "myFrustum" ).

        The broader problem is, I want to know what nodes ( or tiles )
        are visible on the screen and what are not so that I can
        use the information in paging. An alternate solution for this
        is also fine by me.

        Thank you,
        Deepti
        
On Mon, 28 Jun 2004, Mr. Rajesh R wrote:

>
>
>
> Madam,
>
> First part of your problem is not clear. To create a
> Transformation matrix you can use pfMakeTransMat(pfMatrix,float x,float
> y,float z) , pfMakeRotMat(pfMatrix, float degrees,float x, float y, float
> z), Similarly for Scaling you can use pfMakeScakeMat().Alternatively you
> can refer man pfMatrix pages.
>
>
> With regards
> Rajesh.R
> Virtual Reality Lab,
> Institute for Robotics and Intelligent Systems,
> c/o Center for AI and Robotics,
> Ministry of Defence,
> Bangalore -1
> Phone 2256473,2262126(Ext-260)
>
>
>
>

-- 
=======================
Your cotton crop has been infected by pesticides
=======================


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jun 28 2004 - 05:02:22 PDT