Спецэффекты в дополненной реальности. Урок второй: парящая графика



Мы продолжаем курс о простых эффектах в дополненной реальности. Сегодня нас ждёт первый эффект — парящая графика. Для работы с курсом вам понадобится программное обеспечение 3ds Max, Photoshop, Unity, Vuforia plug-in, RegionCapture Addon (github.com/maximrouf/RegionCapture). Автор: Максим Руф, AR Shift. Англоязычный дубляж: Павел Абдурахимов, AR Shift.

We are continuing the course on simple effects in augmented reality. Our first effect is soaring elements. To work with the course you will need 3ds Max, Adobe Photoshop, Unity, Qualcomm Vuforia augmented reality SDK and RegionCapture Addon (github.com/maximrouf/RegionCapture). Author: Maxim Rouf, AR Shift. English dub: Paul Abdurakhimov, AR Shift.

Текстовая версия / Text version:

1) Создайте плоскость в 3ds Max такого же размера, как ваш маркер, и разбейте её на куски. Разделите объекты на два материала — материал для летающих блоков и материал для маски вокруг них. Придайте объём кускам и сделайте анимацию.

2) Сделайте UV-развертку типа Box для всеx объектов. Создайте новый Unity-проект, установите плагин Vuforia и скопируйте модель в папку с проектом.

3) Материал маски прозрачный и перекрывает собой все видимые объекты, кроме видеотекстуры на заднем фоне. Материал летающих блоков — это Unlit-шейдер с текстурой, которую мы захватываем с помощью плагина RegionCapture.

4) Как вы видите, размеры маркера и модели совпадают.

5) Напомню, плагин RegionCapture вырезает часть текстуры заднего фона по периметру маркера. Эту текстуру можно назначить на модель. Чтобы анимация проигрывалась в нужный момент, напишите скрипт, который запускает анимацию при обнаружении маркера.

6) О создании сферы, искажающей пространство, мы расскажем вам в следующей серии. До новых встреч!

————————————–

1) Create a plane in 3ds Max of the same size as your marker and break it into pieces. Divide the object into two groups and assign two materials to them: one for the flying parts and the other for the surrounding mask. Add some volume to the parts and animate them.

2) Create a UV-map of the box type for all objects. Create a new Unity project, install the Vuforia plugin and copy the model to the project’s folder.

3) The mask’s material is transparent and overlaps all visible objects except for the video-texture in the background. The flying parts material is an unlit shader with a texture which we capture with the RegionCapture plugin.

4) As you can see the sizes of the marker and of the model are the same.

5) I would like to remind you that RegionCapture plugin cuts out a part of the background’s texture by the marker’s perimeter. This texture can be assigned to the model. For the animation to start playing at a particular moment, write up a script that will trigger the animation when the marker is detected.

6) We will tell you how to make a space-bending sphere in our next episode! Stay tuned!

Duration: 188

Likes: 4

Viewed:

source