|  | 
 
  
    | 
      
        |  Author | Topic: focal length  (Read 461 times) |  |  
  
    | 
      
        | 
          
            | meltphace 
 
  
 | 
              
                | 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 
 
   
 | 
              
                | 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 
 
  
 | 
              
                | Re: focal length « Reply #2 on: Jul 28th, 2003, 1:01am »
 |  |  thanks a lot !
 |  
            |  |  |  |  
 |