Руководство по графу анимаций/Основы условного воспроизведения

Материал из CryWiki Russia

(Различия между версиями)
Перейти к: навигация, поиск
Строка 1: Строка 1:
-
=== Основы условного воспроизведения анимации===
+
{{В процессе перевода}}
-
Это руководство, поможет создать ''Animation Graph'' с одним ''state'' который '''воспроизведёт определённую анимацию  после определённого сигнала'''. В руководстве опишется основной процесс использования 'Animation Graph'.
+
-
* Создайте вид с именем 'Tutorial0'<br />
+
=== Основы условного воспроизведения анимации ===
-
[[Image:CryEngine_AGT_ConditionalPlayback_add_view.png]]
+
Это руководство, поможет создать ''Animation Graph'' с одним ''state'' который '''воспроизведёт определённую анимацию после определённого сигнала'''. В руководстве опишется основной процесс использования 'Animation Graph'.
 +
 
 +
* Создайте вид с именем 'Tutorial0'<br />
 +
[[Файл:CryEngine_AGT_ConditionalPlayback_add_view.png]]
* Создайте state с именем 'FooAni' <br />
* Создайте state с именем 'FooAni' <br />
-
[[Image:CryEngine_AGT_ConditionalPlayback_add_state.png]]
+
[[Файл:CryEngine_AGT_ConditionalPlayback_add_state.png]]
* Создайте нод и имя для него<br />
* Создайте нод и имя для него<br />
-
[[Image:CryEngine_AGT_ConditionalPlayback_state_view_setup.png]]
+
[[Файл:CryEngine_AGT_ConditionalPlayback_state_view_setup.png]]
* Выберите general properties(общие свойства)<br />
* Выберите general properties(общие свойства)<br />
-
[[Image:CryEngine_AGT_ConditionalPlayback_general_prop_setting.png]]
+
[[Файл:CryEngine_AGT_ConditionalPlayback_general_prop_setting.png]]
* Set the parent state to 'Alive'.
* Set the parent state to 'Alive'.
Строка 18: Строка 20:
* Check 'Allow selection', 'Include in game' and 'Can mix'.
* Check 'Allow selection', 'Include in game' and 'Can mix'.
-
* Set a template and its properties<br/>
+
* Set a template and its properties<br />
-
[[Image:CryEngine_AGT_ConditionalPlayback_template_select.png]]
+
[[Файл:CryEngine_AGT_ConditionalPlayback_template_select.png]]
-
[[Image:CryEngine_AGT_ConditionalPlayback_template_prop_setup.png]]  
+
[[Файл:CryEngine_AGT_ConditionalPlayback_template_prop_setup.png]]
''' '''A template is an xml file which specifies some essential parameters and exposes some configurable properties.
''' '''A template is an xml file which specifies some essential parameters and exposes some configurable properties.
* The 'IdleOneShot' is a template for playing an animation once in an idle state.
* The 'IdleOneShot' is a template for playing an animation once in an idle state.
-
''' To check details of a template, you can click on ''''Show template xml file...'.
+
''' To check details of a template, you can click on ''''Show template xml file…'.
* Here we specify the 'animation' property to some animation of the character.
* Here we specify the 'animation' property to some animation of the character.
-
* Set up the input we need and the selection criteria of the state  
+
* Set up the input we need and the selection criteria of the state
* Set up the 'Signal' input<br />
* Set up the 'Signal' input<br />
-
[[Image:CryEngine_AGT_ConditionalPlayback_signal_input_setup.png]]
+
[[Файл:CryEngine_AGT_ConditionalPlayback_signal_input_setup.png]]
-
''' Here we'll use the ''''Signal'* input.
+
''' Here we’ll use the ''''Signal'* input.
* Add 'PlayFooAniOnce' to the 'Key Properties'.
* Add 'PlayFooAniOnce' to the 'Key Properties'.
-
* Set up the state's selection criteria<br />
+
* Set up the state’s selection criteria<br />
-
[[Image:CryEngine_AGT_ConditionalPlayback_sel_crit_setting.png]]
+
[[Файл:CryEngine_AGT_ConditionalPlayback_sel_crit_setting.png]]
-
[[Image:CryEngine_AGT_ConditionalPlayback_sel_crit_final.png]]  
+
[[Файл:CryEngine_AGT_ConditionalPlayback_sel_crit_final.png]]
-
* You can see there are already some criteria inherited for the parent state.
+
* You can see there are already some criteria inherited for the parent state.
* Now change the 'Signal' criterion from 'Use Parent State' to 'Specified Value'.
* Now change the 'Signal' criterion from 'Use Parent State' to 'Specified Value'.
Строка 50: Строка 52:
* Check it with the 'State Query'<br />
* Check it with the 'State Query'<br />
-
[[Image:CryEngine_AGT_ConditionalPlayback_state_query_setting.png]]
+
[[Файл:CryEngine_AGT_ConditionalPlayback_state_query_setting.png]]
-
[[Image:CryEngine_AGT_ConditionalPlayback_state_query_result.png]]
+
[[Файл:CryEngine_AGT_ConditionalPlayback_state_query_result.png]]
'''Click ''''Compile and load graph'* .
'''Click ''''Compile and load graph'* .
-
''' '''NOTE: You'd better specify at least 'Action', 'Health', 'Item', 'Signal' and 'Stance' criteria for the query to work correctly.
+
''' '''NOTE: You’d better specify at least 'Action', 'Health', 'Item', 'Signal' and 'Stance' criteria for the query to work correctly.
* Set the 'Signal' criterion to 'PlayFooAniOnce'.
* Set the 'Signal' criterion to 'PlayFooAniOnce'.
''' Now click ''''Perform search'.
''' Now click ''''Perform search'.
''' Our 'FooAni' state is in the result('''the number after ':' means the match rank. If there are several matches, one of the higher rank is preferred).
''' Our 'FooAni' state is in the result('''the number after ':' means the match rank. If there are several matches, one of the higher rank is preferred).
-
[[category:Official:Animation Graph Tutorials]]
+
[[Категория:Official:Animation Graph Tutorials]]

Версия 15:40, 23 мая 2011

Эта страница страница помечена как находящиеся в процессе перевода.


Основы условного воспроизведения анимации

Это руководство, поможет создать Animation Graph с одним state который воспроизведёт определённую анимацию после определённого сигнала. В руководстве опишется основной процесс использования 'Animation Graph'.

  • Создайте вид с именем 'Tutorial0'

CryEngine AGT ConditionalPlayback add view.png

  • Создайте state с именем 'FooAni'

CryEngine AGT ConditionalPlayback add state.png

  • Создайте нод и имя для него

CryEngine AGT ConditionalPlayback state view setup.png

  • Выберите general properties(общие свойства)

CryEngine AGT ConditionalPlayback general prop setting.png

  • Set the parent state to 'Alive'.
  • Check 'Allow selection', 'Include in game' and 'Can mix'.
  • Set a template and its properties

CryEngine AGT ConditionalPlayback template select.png

CryEngine AGT ConditionalPlayback template prop setup.png

A template is an xml file which specifies some essential parameters and exposes some configurable properties.

  • The 'IdleOneShot' is a template for playing an animation once in an idle state.

To check details of a template, you can click on 'Show template xml file…'.

  • Here we specify the 'animation' property to some animation of the character.
  • Set up the input we need and the selection criteria of the state
  • Set up the 'Signal' input

CryEngine AGT ConditionalPlayback signal input setup.png

Here we’ll use the 'Signal'* input.

  • Add 'PlayFooAniOnce' to the 'Key Properties'.
  • Set up the state’s selection criteria

CryEngine AGT ConditionalPlayback sel crit setting.png

CryEngine AGT ConditionalPlayback sel crit final.png

  • You can see there are already some criteria inherited for the parent state.
  • Now change the 'Signal' criterion from 'Use Parent State' to 'Specified Value'.
  • As a value, set 'PlayFooAniOnce' which we added before.
  • Check it with the 'State Query'

CryEngine AGT ConditionalPlayback state query setting.png

CryEngine AGT ConditionalPlayback state query result.png

Click 'Compile and load graph'* . NOTE: You’d better specify at least 'Action', 'Health', 'Item', 'Signal' and 'Stance' criteria for the query to work correctly.

  • Set the 'Signal' criterion to 'PlayFooAniOnce'.

Now click 'Perform search'. Our 'FooAni' state is in the result(the number after ':' means the match rank. If there are several matches, one of the higher rank is preferred).