Try   HackMD

Руководство по контенту с дополненной реальностью (3D / AR)

Общие концепции AR контента

1

Поддерживаемые платформы:

2

Так как в данный момент AR контент будет отображаться только в мобильных приложениях, то возможность просматривать AR контент не должна быть обязательной для прохождения курса. Дополненная реальность призвана улучшать пользовательский опыт и помогать усваивать новый материал.

3

3D модели для AR контента не должны быть очень большими и сложными.

Пример отображения AR контента в шагах

В мобильных приложениях AR контент помечается специальной иконкой.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Добавление AR контента

1

Сохраните вашу 3D модель в glTF формате.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

2

С помощью Reality Converter или иного инструмента сконвертируйте модель из формата glTF в формат usdz.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

3

Любым удобным способом сгенерируйте превью картинку для вашей модели.

Итоговый набор файлов будет следующим.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

4

Загрузите файлы моделей в любое удобное для вас место. (Например репозиторий в GitHub)

5

В редакторе шагов перейдите в режим редактирования исходного кода шага (кнопка source).

Добавьте следующий код:

<model-viewer src="{ссылка на модель в формате glTF}" ios-src="{ссылка на модель в формате usdz}" thumbnail="{ссылка на превью картинку для модели}"> </model-viewer>

Пример заполнения:

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

6

В итоге так шаг будет выглядеть на iOS

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

И так на Android

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →