Raul Rios wrote:
> Sorry for my ignorance, but... SohCahToa?
> What is this?
>
> Could you please be a bit clearer ?
>
> Thank you.
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

Trigonometry (spelt wrong of course)

assuming view is at x=0,y=0 and the middle of the from of your scene is at the
origin, then the -z (from the front of the scene) value is (width/2)/(tan(FOV/2))

e.g. scene based at 0,0,0, scene is a box from x=-2.5 to x=-2.5, y=-1 to 1, z=0
to -1, FOV = 45degrees,  to view the whole box the views -z needs to be at

(5(total width)/2)/(tan(45(fov)/2)) =
2.5/(tan 22.5) = ~6.03

HTH some

Jeremy

--
________________________________________________________

PGP key is here -> http://www.computerbooth.com/pgp.html

* If debugging is the process of removing bugs, then programming must be
the process of putting them in.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to