V i t a m i n 
 
 - - - - - - - 
 
 
 
 L i b r a r y   f o r   e a s y   r e n d e r i n g   w i t h   o p e n g l   i n   P r o c e s s i n g   &   J a v a 
 
 
 
 
 
 V e r s i o n   0 . 5 . 1 
 
 
 
 
 
 
 
 
 
 
 
 T O D O : 
 
 -   A d d   R e m o v e E f f e c t (   E f f e c t   )   t o   T i m e l i n e   a n d   E f f e c t M a n a g e r   s o   e f f e c t s   c a n   b e   r e m o v e d   c o r r e c t l y   f r o m   t h e   l i s t . 
 
 -   A d d   R e n d e r T a r g e t 2 D   a n d   R e n d e r T a r g e t 3 D   c l a s s e s   t h a t   w i l l   w o r k   w i t h   r e n d e r - t o - t e x t u r e 
 
 -   A d d   M u l t i p l e R e n d e r T a r g e t 2 D   f o r   M R T ' s 
 
 
 
 F I X : 
 
 	 -   F I X E D !   N O T E !   M e t h o d   C i r c u l a r   b l o w s   u p   f o r   s o m e   w e i r d   r e a s o n .   F i x   i t   o r   d o n ' t   u s e   i t ! ! 
 
 	 -   F I X E D !   N O T E !   I ' v e   n o t i c e d   t h a t   E x p o   i n t e r p o l a t i o n   m o d e ,   n e v e r   r e a l l y   g e t s   t o   t h e   e n d   v a l u e .   f e w   d e c i m a l s   a w a y ,   
 
 	     b u t   i t s   n o t i c e a b l e .   B E W A R E   O N   H O W   T O   U S E   I T ! 
 
 	   
 
 	 -   M e s h :   C o m m e n t e d   c o d e   f o r   ' G r a m - S c h m i d t   o r t h o g o n a l i z e '   o n   t a n g e n t   v e c t o r s   g e n e r a t i o n . 
 
 	     w h a t   i s   b e i n g   d o n e   i s   a d d i n g   a l l   t a n g e n t s   p e r   v e r t e x   a n d   n o r m a l i z e d   i t   i n   t h e   e n d .   s h o u l d   a v e r a g e   i t   b e f o r e   t h e   n o r m a l i z a t i o n 
 
     	     F I X :   i m p l e m e n t   t a n g e n t   v e c t o r   a v e r a g i n g   f o r   e a c h   v e r t e x   i n   t h e   t a n g e n t   v e c t o r s   g e n e r a t i o n 
 
 	 -   F I X E D !   c r e a t e ( )   a n d   c r e a t e D a t a ( )   m e t h o d s   f r o m   V T e x t u r e   d o n t   s e e m   t o   b e   w o r k i n g .   D o   s o m e   m o r e   t e s t s   a n d   s e e   w h a t   i s   w r o n g 
 
 	 -   F I X E D !   T e x t u r e s   a r e   b e i n g   l o a d e d   w i t h   c o l o r   c h a n n e l s   s w a p p e d .   f i n d   o u t   w h a t s   w r o n g . 
 
 	     ( C h e c k   V T e x t u r e   f o r m a t s   o r   i t   c o u l d   a l s o   b e   V I m a g e   l o a d i n g   c h a n n e l s   a n d   p a s s i n g   t o   V T e x t u r e   w i t h   w r o n g   i n f o r m a t i o n )   
 
 
 
 
 
 
 
 
 
 
 
 C H A N G E S : 
 
 
 
 
 
 (   2 0 0 9 - 0 9 - 2 3   ) 
 
 *   S h a d e r :   i m p l e m e n t e d   n e w   m e t h o d .   s e t P a r a m e t e r 2 i ( ) . 
 
 
 
 
 
 (   2 0 0 9 - 0 9 - 2 2   ) 
 
 V G L :   C h a n g e d   m e t h o d   d r a w G r i d ( ) .   A d d e d   n e w   p a r a m e t e r   t o   f l i p   t h e   n o r m a l s . 
 
 
 
 
 
 
 
 (   2 0 0 9 - 0 9 - 1 5   ) 
 
 T i m e S e g m e n t :   A d d e d   n e w   m e m b e r   c a l l e d   _ r e s e t T i m e .   U s e d   t o   r e s e t   t h e   e f f e c t   t i m e   o r   n o t . 
 
 
 
 
 
 
 
 (   2 0 0 9 - 0 9 - 1 0   ) 
 
 *   N e w   c h a n g e d   t o   E f f e c t M a n a g e r   a n d   E f f e c t .   M a k i n g   i t   p o s s i b l e   t o   s u p p o r t   m u l t i p l e   t i m e - s e g m e n t s . 
 
 
 
 
 
 (   2 0 0 9 - 0 9 - 0 8   ) 
 
 *   A d d e d   2   n e w   m e t h o d s   t o   V G L . 
 
     e n a b l e T e x t u r e (   i d x   ) .   e n a b l e s   a   t e x t u r e d   c r e a t e d   b y   V G L 
 
     d i s a b l e T e x t u r e ( ) .   d i s a b l e   t e x t u r e   m a p p i n g . 
 
 
 
 (   2 0 0 9 - 0 9 - 0 4   ) 
 
 *   A d d e d   n e w   c o n s t r u c t o r s   f o r   V T e x t u r e 2 D . 
 
 
 
 
 
 (   2 0 0 9 - 0 8 - 3 1   ) 
 
 *   A d d e d   s u p p o r t   f o r   m u l t i p l e   T i m e S e g m e n t s   o n   t h e   E f f e c t   c l a s s . 
 
 *   E f f e c t M a n a g e r   R e n d e r   u p d a t e d .   i t   c h e c k s   e a c h   e f f e c t   a t   c u r r e n t   t i m e   a n d   s e e   i f   i t   s h o u l d   b e   p l a y i n g   o r   n o t . 
 
 
 
 
 
 (   2 0 0 9 - 0 8 - 2 2   ) 
 
 *   C h a n g e d   c o d e   t h a t   u s e d   o l d   I n t e r p o l a t i o n   m e t h o d s   t o   t h e   n e w   o n e s . 
 
 *   I m p l e m e n t e d   n e w   p a c k a g e   c a l l e d   I n t e r p o l a t i o n ,   b a s e d   o n   P e n n e r ' s   e a s i n g   l i b r a r y . 
 
     M e t h o d s   i m p l e m e n t e d :   L i n e a r ,   Q u a d ,   C u b i c ,   Q u a r t ,   Q u i n t ,   S i n e ,   E x p o ,   B a c k ,   B o u n c e ,   E l a s t i c ,   C i r c u l a r 
 
 
 
 
 
 (   2 0 0 9 - 0 8 - 1 8   ) 
 
 *   V i t a m i n   n o w   s u p p o r t s   O p e n G L   R e c t a n g l e   t e x t u r e s . 
 
 *   N e w   m e t h o d   a d d e d   t o   V G L .   e n a b l e T e x t u r e (   b o o l e a n ,   t e x t u r e T y p e   ) .   S e t   t o   u s e   w i t h   N P O T   t e x t u r e s 
 
 *   A d d e d   n e w   v a r i a b l e   t o   V T e x t u r e   t o   i d e n t i f y   t h e   t y p e   o f   t e x t u r e .   T E X T U R E _ 1 D ,   T E X T U R E _ 2 D ,   T E X T U R E _ R E C T A N G L E _ 2 D ,   T E X T U R E _ 3 D   
 
 *   A d d e d   n e w   c o n s t r u c t o r   t o   V T e x t u r e R E C T .   V T e x t u r e R E C T (   G L ,   S t r i n g ) ;   
 
 *   A d d e d   n e w   m e t h o d   t o   l o a d   i m a g e s   f r o m   f i l e   i n   V T e x t u r e R E C T .   S h o u l d   m a k e   t h i n g s   e a s i e r   f o r   t h e   u s e r 
 
 *   E x t e n d e d   n e w   c l a s s   f r o m   V T e x t u r e   c a l l e d   V T e x t u r e R E C T .   l o a d s   r e c t a n g l e   t e x t u r e s   i n   o p e n g l . 
 
 
 
 
 
 (   2 0 0 9 - 0 7 - 2 2   ) 
 
 -   V i t a m i n   0 . 5 . 1   r e l e a s e d 
 
   
 
   
 
   
 
 (   2 0 0 9 - 0 7 - 1 8   ) 
 
 -   M e s h :   C o m m e n t e d   c o d e   f o r   ' G r a m - S c h m i d t   o r t h o g o n a l i z e '   o n   t a n g e n t   v e c t o r s   g e n e r a t i o n . 
 
     T O D O :   i m p l e m e n t   t a n g e n t   v e c t o r   a v e r a g i n g   f o r   e a c h   v e r t e x   i n   t h e   t a n g e n t   v e c t o r s   g e n e r a t i o n 
 
 -   S c e n e :   R e m o v e d   t h e   c o d e   u s e d   i n   M o r p h i n g   H e a r t   a p p l i c a t i o n   f r o m   t h e   f r a m e w o r k .   * p f f *   w h a t   a n   h a c k   = ) 
 
 -   M e s h S p h e r e :   F i x e d   p r o b l e m   w i t h   d o u b l e   v e r t e x   c o u n t .   S t i l l   r e n d e r i n g   i s n t   c o r r e c t . 
 
     F I X M E :   C o m p u t e   a   c o r r e c t   t r i a n g l e   l i s t 
 
 -   M e s h :   N o r m a l s   a n d   T a n g e n t s   w e r e   b e i n g   r e - p r o c e s s e d .   n o w   i t s   f i x e d   u s i n g   f l a g   c o n t r o l   
 
     A d d e d   n e w   m e t h o d   t o   r e n d e r   d i r e c t   m e s h   d a t a .   U s e f u l   t o   r e n d e r   w i t h   s h a d e r s   o n   a p p l i c a t i o n s ,   s i n c e   V i t a m i n   d o e s   n o t   s u p p o r t   s h a d e r   m a t e r i a l s 
 
 
 
 (   2 0 0 9 - 0 7 - 1 7   ) 
 
 -   V T e x t u r e :   F i x e d   p r o b l e m   w i t h   l o a d i n g   t e x t u r e s   w i t h   n o - m i p m a p   o p t i o n . 
 
 
 
 (   2 0 0 9 - 0 7 - 1 5   ) 
 
 -   M a t r i x :   A d d e d   g e t D o u b l e B u f f e r ( )   m e t h o d .   R e t u r n s   a   D o u b l e B u f f e r 
 
 
 
 (   2 0 0 9 - 0 7 - 1 4   ) 
 
 -   V e c t o r 3 :   A d d e d   d i s t a n t e S q r ( )   m e t h o d .   C o m p u t e s   s q u a r e d   d i s t a n c e   b e t w e e n   t w o   p o i n t s . 
 
 -   T i m e l i n e L a y e r :   C h a n g e d   t o   s u p p o r t   d i f f e r e n t   i n t e r p o l a t i o n   m e t h o d s :   L I N E A R   +   C O S I N E . 
 
 -   C h a n g e d   m i n o r   t h i n g s   i n   T i m e l i n e .   C o m m e n t e d   H a s h M a p   v e r s i o n ,   u s i n g   V e c t o r s .   F I X M E ! 
 
 -   E f f e c t M a n a g e r :   C r e a t e   n e w   m e t h o d   p r o c e s s ( )   t o   i n i t i a l i z e   a l l   e f f e c t s .   T h i s   m e t h o d   s h o u l d   b e   c a l l e d   a f t e r   a d d i n g   a l l   f x   t o   t h e   m a n a g e r . 
 
 
 
 (   2 0 0 9 - 0 7 - 1 4   ) 
 
 -   C r e a t e d   n e w   c l a s s e s ,   T i m e l i n e   a n d   T i m e l i n e L a y e r .   T h i s   c l a s s e s   s u p p o r t   h a n d l i n g   v a r i a b l e s   d u r i n g   t i m e   o f   a n   a p p l i c a t i o n . 
 
     E a c h   l a y e r   h o l d s   a   v a r i a b l e   ( L a y e r )   w i t h   n ' t h   v a l u e s   t h a t   a r e   i n t e r p o l a t e d   a l o n g   t h e   t i m e l i n e . 
 
 
 
 (   2 0 0 9 - 0 7 - 1 3   ) 
 
     N O T E !   V G L   h a s   a   t e x t u r e   p o o l .   U s e   a d d T e x t u r e ( ) ,   c r e a t e T e x t u r e   m e t h o d s   f r o m   V G L . 
 
 -   V G L :   M a d e   w i d t h   a n d   h e i g h t   v a r i a b l e   p r i v a t e .   T o   a c c e s s   t h e m   u s e   g e t W i d t h ( )   a n d   g e t H e i g h t ( ) 
 
     C h a n g e d   r e l e a s e ( )   m e t h o d   t o   c l e a r   t e x t u r e p o o l   a n d   s h a d e r   p o o l .   
 
 -   C r e a t e d   2   n e w   c l a s s e s .   V T e x t u r e 1 D ,   V T e x t u r e 2 D .   S h o u l d   b e   s e l f - e x p l a n a t o r y . 
 
 -   V T e x t u r e :   C h a n g e d   f e w   m e t h o d s   n a m e s .   N o w   c o n s t r u c t o r   n e e d s   t h e   t a r g e t   t y p e   a s   p a r a m e t e r .   e g .   V T e x t u r e (   G L . G L _ T E X T U R E _ 2 D ,   g l   ) ; 
 
 
 
 (   2 0 0 9 - 0 7 - 1 2   ) 
 
 -   V M a t h :   A d d e d   f e w   m o r e   f u n c t i o n s 
 
 -   V T e x t u r e :   A d d e d   c r e a t e D a t a ( )   m e t h o d .   L o a d s   a n d   s e t s   a n   o p e n g l   t e x t u r e   f r o m   a n   i n t   a r r a y   b u f f e r 
 
 
 
 
 
 (   2 0 0 9 - 0 7 - 0 2   ) 
 
 -   M a t r i x :   A d d e d   a   s t a t i c   m e t h o d   t o   c o m p u t e   i n v e r s e   o f   m a t r i c e s ,   i n v e r s e (   d e s t ,   s r c   ) 
 
 -   M a t h :   A d d e d   c l o n e   m e t h o d .   d o e s   w h a t   i t   s a y s . .   c l o n e s   a n   o b j e c t 
 
 -   M a t r i x ,   r e n a m e d   m a t r i x   m u l   m e t h o d s   t o   m u l R o w M a j o r   a n d   m u l C o l u m n M a j o r 
 
 
 
 
 
 (   2 0 0 9 - 0 6 - 0 5   ) 
 
 -   A d d e d   m u l R o t a t i o n ( M a t r i x   m )   m e t h o d   d o   M a t r i x   c l a s s .   M u l t i p l i e s   o n l y   t h e   r o t a t i o n   p a r t   o f   t h e   m a t r i c e s . 
 
 
 
   
 
 (   2 0 0 9 - 0 6 - 0 4   ) 
 
 -   M M E x p   n o w   e x p o r t s   m o r p h i n g   d a t a .   S h o u l d   a d d   i t   t o   M M L o a d e r   a n d   m a k e   v i t a m i n   s u p p o r t   a n i m a t i o n s . 
 
 -   A d d e d   n e w   c l a s s   t o   m a t h .   R a y 3 .   F I X M E .   w r i t e   a l l   m e t h o d s   t o   h a n d l e   r a y s 
 
 -   A d d e d   n e w   c l a s s   t o   m a t h .   I n t e r p o l a t i o n .   H a n d l e s   s e v e r a l   m e t h o d s   t o   i n t e r p o l a t e   v a l u e s 
 
 -   A d d e d   n e w   p a c k a g e   c a l l e d   S h a p e s .   S h o u l d   i n c l u d e   s e v e r a l   s h a p e s   f o r   e a s y   s e t t i n g   a n d   r e n d e r i n g .   T r i a n g l e ,   Q u a d   a d d e d 
 
 -   C h a n g e d   M e s h   r e n d e r C h u n k s   t o   u s e   a   s h a d e r   f o r   r e n d e r i n g .   t h i s   i s   a n   h a c k   f o r   r e n d e r .   F I X M E 
 
 
 
 
 
 (   2 0 0 9 - 0 4 - 2 8   ) 
 
 -   A d d e d   n e w   i m a g e   f o r m a t   t o   V I m a g e   -   A B G R   - .   F o r   s o m e   r e a s o n   3 2 b i t   P N G ' s   a r e   b e i n g   l o a d e d   a s   C U S T O M   f o r m a t s   a n d   w i t h   t h i s   f o r m a t . 
 
     N o w   t h e y   l o a d   c o r r e c t l y   w i t h   c o r r e c t   c h a n n e l   p o s i t i o n . 
 
 
 
 
 
 (   2 0 0 9 - 0 4 - 2 7   ) 
 
 -   V P a r t i c l e S y s t e m   c h a n g e d   t o   a b s t r a c t .   O t h e r   p a r t i c l e   s y s t e m   s h o u l d   e x t e n d   f r o m   t h i s   c l a s s . 
 
 
 
 
 
 (   2 0 0 9 - 0 4 - 2 6   ) 
 
 -   V P a r t i c l e S y s t e m   u p d a t e d .   M e t h o d   u p d a t e ( )   a n d   r e n d e r ( )   w e r e   c r e a t e d .   S t i l l   n e e d s   a l o t   o f   w o r k   o f c o u r s e . 
 
 -   g e t E x t e n s i o n s ( )   m e t h o d   a d d e d   t o   V G L .   R e t u r n s   a   s t r i n g   o f   a l l   s u p p o r t e d   e x t e n s i o n s . 
 
 -   V S a m p l e r S t a t e   u p d a t e d   t o   s u p p o r t   3 D   t e x t u r e s 
 
 -   A d d e d   n e w   c r e a t e ( )   m e t h o d   t o   V T e x t u r e   f o r   3 D   t e x t u r e s   c r e a t i o n . 
 
 
 
 
 
 (   2 0 0 9 - 0 4 - 2 0   ) 
 
 -   A d d e d   T i m e l i n e   t o   v i t a m i n . f x   p a c k a g e .   
 
     N e e d s   s o m e   w o r k   t o   d i s p l a y   a l l   a c t i v e   f x   p l u s   i n f o   o n   t h e m   ( t i m e   t h e y   a r e   b e i n g   p l a y e d ,   e t c ) . 
 
 -   I m p l e m e n t e d   S h a d e r C G .   t o   p a s s   p a r a m e t e r s   o n e   m u s t   u s e   t h e   s e t P r o g r a m ( )   m e t h o d   s o   t h a t   p a r a m e t e r s   a r e   p a s s e d   t o   t h e   c u r r e n t   p r o g r a m 
 
     S e m a n t i c s   a r e n ' t   s u p p o r t e d   b y   S h a d e r C G . 
 
 -   F i x e d   p r o b l e m s   w i t h   s c e n e s i m p l e   o n   r e n d e r i n g   m u l t i m a t e r i a l s .   p a s s e d   t e x t u r e   l o a d i n g   t o   S c e n e   p r o c e s s ( )   m e t h o d ,   r e m o v e d   f r o m   M M L o a d e r . 
 
 -   V I m a g e   a d d e d .   h a n d l e s   l o a d i n g   o f   i m a g e s   f r o m   t h e   d i s k . 
 
 -   V T e x t u r e   w o r k s   o n   V I m a g e   t o   l o a d   i m a g e s 
 
 -   V S a m p l e r S t a t e   c r e a t e d 
 
 
 
 
 
 
 
 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 v i t a m i n . s c e n e s i m p l e . 
 
 
 
 s u p p o r t   f o r   m u l t i m a t e r i a l s 
 
 s u p p o r t   f o r   h i e r a r c h y .   o n l y   f o r   m e s h / h e l p e r s   f o r   n o w 
 
 D e s c r i b e s   a   s i m p l e   3 d   s c e n e   w i t h   h i e r a r c h y . 
 
 
 
 
 
 v i t a m i n . s c e n e g r a p h . 
 
 
 
 D e s c r i b e s   a   s i m p l e   3 d   s c e n e   i n   a   g r a p h   r e l a t i o n s h i p . 
 
 