Jump to content


[HOWTO] Perspective to Parallel Canonical View Vol


4 replies to this topic

#1 ajit_kamat

    New Member

  • Members
  • Pip
  • 8 posts

Posted 04 July 2005 - 09:31 AM

Hi,

How is the perspective canonical view volume transformed to parallel canonical view volume? I am interested in the step-by-step (if possible) tutorial on how the following matrix is derived:

[...1...0...0......................0..............................]
[...0...1...0......................0..............................]
[...0...0...1/(1 - zmin)....-zmin/(1 - zmin)....]
[...0...0...-1.....................0..............................]

(The dots in the above matrix are to maintain formatting of the matrix :))

where zmin = -(_VRPz + F) / (_VRPz + B)

_VRPz = z component of View Reference Point after translating the Perspecfive Reference Point to origin and shearing the view volume such that the "center line" of view volume is parallel to the z-axis.

F is front plane and B is the back plane.

This is from the Computer Graphics book by Dr. Foley et.al (Chapter 6).

In that book the derivation of this matrix is not explained and I want to know how this is done.

BTW, what does the following equation mean and how is this derived:

z' = A + (B / z)

The eqaution is used in the book Computer Graphics using OpenGL by Prof. Hill Jr.

Cheers,

~Ajit

#2 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 04 July 2005 - 02:45 PM

http://www.ece.eps.hw.ac.uk/~dml/cgonline/...persptrans.html
If Prolog is the answer, what is the question ?

#3 ajit_kamat

    New Member

  • Members
  • Pip
  • 8 posts

Posted 05 July 2005 - 04:59 AM

Thanks anubis, but then again how is the following equation derived:

z' = A + (B / z)

Cheers,

~Ajit

#4 Reedbeta

    DevMaster Staff

  • Administrators
  • 4780 posts
  • LocationBellevue, WA

Posted 05 July 2005 - 03:29 PM

What's the context of the equation z' = A + (B / z)? I.e. what are the z', z, A, and B?
reedbeta.com - developer blog, OpenGL demos, and other projects

#5 ajit_kamat

    New Member

  • Members
  • Pip
  • 8 posts

Posted 06 July 2005 - 03:30 AM

Hi Reedbeta,

Consider the Perspective Canonical View Volume (CVV) to Parallel CVV transformation.
z' is the transformed value of z from perspective CVV to parallel CVV (thats my understanding).

z' = A + (B / z)

A proper illustration for values of A, B, z and z' is given in the link provided by anubis above. (I am not able to draw the figures here)

I want to know how the above equation was derived.

Thanks and regards,

~Ajit





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users