mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-23 02:49:46 +00:00
update doc/*/vca.md
This commit is contained in:
parent
1f2e938d83
commit
bbe1873bc7
2 changed files with 36 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ Two kinds of curve definitions are currently available, each producing a value `
|
||||||
- `@scale` - scales an object/bone (multiplier)
|
- `@scale` - scales an object/bone (multiplier)
|
||||||
- `@zoom` - camera zoom (multiplier)
|
- `@zoom` - camera zoom (multiplier)
|
||||||
- `@texture` - change of a dynamically assigned texture (see [skeleton:set_texture](scripting/ecs.md#skeleton))
|
- `@texture` - change of a dynamically assigned texture (see [skeleton:set_texture](scripting/ecs.md#skeleton))
|
||||||
|
- `@control` - changing flag values, such as visibility
|
||||||
|
|
||||||
## Metadata
|
## Metadata
|
||||||
|
|
||||||
|
|
@ -96,6 +97,23 @@ If you do not wish to limit the animation duration via `configure` but want to l
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Example of using the `control` directive:
|
||||||
|
|
||||||
|
```vcd
|
||||||
|
# Specific bone
|
||||||
|
@control bone head flag visible period 20 {
|
||||||
|
@key frame 0 value on
|
||||||
|
@key frame 10 value off
|
||||||
|
}
|
||||||
|
|
||||||
|
# Entire skeleton
|
||||||
|
@control flag visible period 30 {
|
||||||
|
@key frame 0 value on
|
||||||
|
@key frame 10 value off
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
## Expression curves
|
## Expression curves
|
||||||
|
|
||||||
The attribute describes a function `f(t) = x`, where t is time in seconds.
|
The attribute describes a function `f(t) = x`, where t is time in seconds.
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ VCA файл состоит из набора директив, порядок
|
||||||
- `@scale` - масштабирование объекта/кости (множитель)
|
- `@scale` - масштабирование объекта/кости (множитель)
|
||||||
- `@zoom` - масштаб камеры (множитель)
|
- `@zoom` - масштаб камеры (множитель)
|
||||||
- `@texture` - смена динамически-назначаемой текстуры (см. [skeleton:set_texture](scripting/ecs.md#skeleton))
|
- `@texture` - смена динамически-назначаемой текстуры (см. [skeleton:set_texture](scripting/ecs.md#skeleton))
|
||||||
|
- `@control` - изменение значений флагов, таких как видимость
|
||||||
|
|
||||||
## Мета-информация
|
## Мета-информация
|
||||||
|
|
||||||
|
|
@ -96,6 +97,23 @@ VCA файл состоит из набора директив, порядок
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Пример использования директивы `control`:
|
||||||
|
|
||||||
|
```vcd
|
||||||
|
# Конкретная кость
|
||||||
|
@control bone head flag visible period 20 {
|
||||||
|
@key frame 0 value on
|
||||||
|
@key frame 10 value off
|
||||||
|
}
|
||||||
|
|
||||||
|
# Весь скелет
|
||||||
|
@control flag visible period 30 {
|
||||||
|
@key frame 0 value on
|
||||||
|
@key frame 10 value off
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
## Кривые через выражения
|
## Кривые через выражения
|
||||||
|
|
||||||
Через атрибут описывается функция `f(t) = x` где t - время в секундах.
|
Через атрибут описывается функция `f(t) = x` где t - время в секундах.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue