[tuhopuu-cvs] CVS commit: tuhopuu2 featurelist.txt tuhopuu2/source/blender/src editface.c

Martin Poirier theeth at yahoo.com
Sun Dec 28 20:32:16 CET 2003


theeth (Martin Poirier) 2003/12/28 20:32:15 CET

  Modified files:
    .                    featurelist.txt 
    tuhopuu2/source/blender/src editface.c 
  
  Log:
  BjornMose final fix and featurelist counterpart.
  
  I took the liberty to change the feature a bit. Before the changes, you had to align the object with the vertical axis of the viewport, which prooved to be somewhat hard to do for cylinder. I've changed this so you now have to align the clyinder (or sphere) with the depth (Z) axis of the viewport. In effect, you have to rotate the view until you look through the cylinder. I find this a lot more logical and easy to do.
  
  ----- Original e-mail -----
  
  hi all, hi theeth
  /* sorry for the double post. this time i hope without thoose strange linefeeds */
  uv auto calculation "from window to shere", "from window to cylinder" bug found and fixed.
  
  did test
  switching, rotating 3d view, works;
  tranformations (shift,rotation) in object mode, works;
  parented to empty (shift,rotate), works;
  parented to armature does not produce desired result, but "from window" does not also,
  so i think that's the limit to be reached this way.
  
  the tempmatrix finalmatrix acrobatics became obsolete,
  because i found the function Mat4MulSerie(target,m1..m8).
  helped me very much to find that the tranformation bug was because of wrong LA operations order.
  (BTW evil trap: Mat3MulSerie(target,m1..m8) applies operations the other way round!)
  
  may be i did not point it out that clear, but there are TWO fairly distinct features i've been am working on.
  1. goes with uv auto calculation.
  my code adding two new projection modes had a bug and the patch will fix it.
  
  2. goes with the uv editor window. where i did add a little selection modifier.
  
  the updated http://mitglied.lycos.de/mosebjorn/uvmapping/ may show?
  
  theeth (about the featurelist.txt thing)
  never was a hero in prosa/lyrics and i'm not native english but i'll give it a try
  
  *** bjornmose: added
   two new options to uv auto calculation:
   "from window to shere", "from window to cylinder".
   the differences to sphere/cylinder mapping as is:
   1. the around settings of the 3D view sets the projection center
   2. the origin of the polar/spherical coordinate system always points out of the screen.
   so the rotation of the view affects mapping.
   3. in the cylinder case the radius of the projection cylinder is read by a popup button.
  
  *** bjornmose: added
   a new feature that offers the possibility to select all nodes in the uv map that refer
   to the same vertex in the mesh. it is activated by pressing the CTRL key (without pressing
   the SHIFT for multiple select) when selecting a uv node with RMB.
  
   this feature is usefull when uv calculations generated "folded" maps.
   so some faces are occluding each other and we want to "unfold" the mesh projection.
   (the generic nose / ear / mouth problem uv texturing a head)
  
   N.B. uv coordinates (nodes) are assigned to faces and faces only hold indices to vertices.
   The uv editor as it is does not care about thoose (face to vertex) relations.
   This keeps the uv editor more flexible and i'd like to stick to this concept in genaral.
  
  /* wheee... see if someone understands what i wrote */
  
  bjornmose
  mailto:bjornmose at gmx.net
  
  Revision  Changes    Path
  1.51      +19 -1     tuhopuu2/featurelist.txt
  1.4       +34 -27    tuhopuu2/source/blender/src/editface.c



More information about the tuhopuu-cvs mailing list