FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   focal length
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: focal length  (Read 461 times)
meltphace

Email
focal length
« on: Jul 25th, 2003, 2:04am »

when drawing in 3d,
 
is there a way to fix the focal length
(in order to change the field of vision) ?
 
i haven't found any way to do that, so
would anyone get me up to date ?
 
thanks.
 
arielm

WWW
Re: focal length
« Reply #1 on: Jul 25th, 2003, 6:04pm »

there is the perspective() statement (has to be enclosed between beginCamera() and endCamera() statements), like in:
 
perspective(30.0f, (float) width / (float) height, 1.0f, 1000.0f)
 
the first param is for the Field Of View (by default, processing is using 60.0f...)
 
an (old) interactive example with source code can be found here:
http://proce55ing.net/discourse/yabb/board_Tools_action_display__num_1051796582.html
 

Ariel Malka | www.chronotext.org
meltphace

Email
Re: focal length
« Reply #2 on: Jul 28th, 2003, 1:01am »

thanks a lot !
 
Pages: 1 

« Previous topic | Next topic »