Changes between Initial Version and Version 1 of Ticket #8940, comment 36


Ignore:
Timestamp:
2013-11-15T22:00:51+01:00 (12 years ago)
Author:
kendzi

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8940, comment 36

    initial v1  
    22attribute. Before change it was operating in model space BEFORE scaling was applied so it has strange large values like 65 which didn't say anything useful. In current version it is operating after scaling is applied. So now if you translate it with value 1 this mean that model will be moved exactly 1m from its origin. This change allows to use for example min_height value to move model upper from ground. Currently it is used with statue model where min_height is used for translate:
    33
    4 <nodeModel matcher="artwork=statue | monument=statue" model="/models/cc/Statu_LowPoly/Statu_lowpoly.obj"               
    5                 translate="vectorY(minHeight(0))" scale="height(4) - minHeight(0)" direction="180 - direction(0)"/>
     4
     5{{{
     6<nodeModel matcher="artwork=statue | monument=statue"
     7           model="/models/cc/Statu_LowPoly/Statu_lowpoly.obj"           
     8           translate="vectorY(minHeight(0))"
     9           scale="height(4) - minHeight(0)"
     10           direction="180 - direction(0)"/>
     11}}}
     12
    613
    714Some example: