Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

More explanation about my Graph3D unit

8 views
Skip to first unread message

Horizon68

unread,
Sep 9, 2018, 3:53:42 PM9/9/18
to
Hello...


More explanation about my Graph3D unit that i have included inside the
zipfile:


About the Graph3D unit, it looks like the Graph unit of turbo pascal but
it's for 3D graphism, and to understand the variables Rho,Theta,Phi,DE
of the InitProj() method of Graph3D unit, please read what's below:

When you run the demo program that is called cube3d.pas , here is the
keys of the keyboard that permits you to run it:

Right arrow: to increase the angle Theta(that is the variable Theta) to
move in the plane XY anti-clockwise.

Left arrow: to decrease the angle Theta(that is the variable Theta) to
move in the plane XY clockwise.

Top arrow: to increase the Phi(that is variable Phi) angle to move up
and look at the cube from above.

Bottom arrow: to decrease the Phi(that is variable Phi) angle to move
down and look at the cube from below.

Key A: to decrease R(that is variable Rho) to get closer to the cube, we
can even penetrate it and pass behind, in the latter case the image
obtained will be the opposite.

Key E: to increase R(that is variable Rho) to move away from the cube.

Key +: to increase the distance D(that is variable DE) between the
screen and the eye, this causes an enlargement of the image.

Key -: to decrease the distance D(that is variable DE) between the
screen and the eye, this causes the image to shrink and possibly be an
inverse magnification if D becomes negative, ie if the screen passes
behind the observer.

Key C: to move from perspective projection to parallel projection and
vice versa. During this toggle the parameters which were current are
stored in auxiliary variables (RhoResp, DEResp for the perspective and
RhoPara, DEPara for the parallel projection) in order to be able to
return to it correctly afterwards.

Key F: To end the runnning program.


You can download my Winmenus verion 1.1 from:

https://sites.google.com/site/scalable68/winmenus-using-wingraph


Thank you,
Amine Moulay Ramdane.

0 new messages