[Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel/intern modifier.c blender/source/blender/blenlib BLI_arithb.h blender/source/blender/blenlib/intern arithb.c blender/source/blender/makesdna DNA_modifier_types.h blender/source/blender/src buttons_editing.c

Ben Batt benbatt at gmail.com
Wed Nov 22 16:09:41 CET 2006


artificer (Ben Batt) 2006/11/22 16:09:41 CET

  Modified files:
    blender/source/blender/blenkernel/intern modifier.c 
    blender/source/blender/blenlib BLI_arithb.h 
    blender/source/blender/blenlib/intern arithb.c 
    blender/source/blender/makesdna DNA_modifier_types.h 
    blender/source/blender/src buttons_editing.c 
  
  Log:
  Upgrades to the UVProject modifier:
   - New perspective projection capability. If a camera is used as the
     projection object, the modifier detects whether to do perspective or
     orthographic projection based on the camera type. If any other object
     type is used as the projection object, orthographic projection is used.
   - Orthographic projection actually works properly now.
   - The projected UVs are scaled and offset so that the image is centred in
     the projecting camera's view.
   - AspX and AspY inputs have been added to control the aspect ratio of the
     projected UVs.
  
  Also:
   - I have added the Mat4MulVec3Project() function to BLI_arithb.h; this
     function converts a 3-dimensional vector to homogeneous coordinates
     (4-dimensional, with the 4th dimension set to 1), multiplies it with the
     given matrix, then projects it back to 3 dimensions by dividing through
     with the 4th dimension. This is useful when using projection matrices.
  
  Revision  Changes    Path
  1.83      +80 -32    blender/source/blender/blenkernel/intern/modifier.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/modifier.c.diff?r1=1.82&r2=1.83&cvsroot=bf-blender>
  1.33      +6 -1      blender/source/blender/blenlib/BLI_arithb.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenlib/BLI_arithb.h.diff?r1=1.32&r2=1.33&cvsroot=bf-blender>
  1.50      +13 -1     blender/source/blender/blenlib/intern/arithb.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenlib/intern/arithb.c.diff?r1=1.49&r2=1.50&cvsroot=bf-blender>
  1.25      +2 -1      blender/source/blender/makesdna/DNA_modifier_types.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/makesdna/DNA_modifier_types.h.diff?r1=1.24&r2=1.25&cvsroot=bf-blender>
  1.302     +11 -2     blender/source/blender/src/buttons_editing.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/buttons_editing.c.diff?r1=1.301&r2=1.302&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list