Portalgraph Document (EN)
  • What's Portalgraph?
  • Quick Start
    • Portalgraph App Creation Tutorial
    • Using Portalgraph Applications
    • How to Use a 3D Projector with Portalgraph
    • Portalgraph Application Settings Options
    • Camera Tacking Application Settings Options
    • Camera Tracking Setup Guide
    • VIVE Tracker Setup Guide
  • Portalgraph Detail
    • Asset File Structure
    • Settings
    • Tracker App Development Guide
    • Notes for Using Portalgraph with URP
Powered by GitBook
On this page
  • Requirements
  • Asset Usage
  • Creating the Project
  • Importing Assets
  • Importing Portalgraph asset
  • Input Settings
  • Setting TextMesh Pro
  • Creating the Scene
  • Building
  • Execution
  1. Quick Start

Portalgraph App Creation Tutorial

We explain how to create the simplest Portalgraph application.

PreviousWhat's Portalgraph?NextUsing Portalgraph Applications

Last updated 2 months ago

Requirements

  • Gaming PC with a web camera

  • Installing Portalgraph runtime.

  • Unity 2019.4 or higher

Asset Usage

Creating the Project

If you haven't created a project yet, create a new project from Unity Hub. Please select the 3D template.

Importing Assets

Importing Portalgraph asset

From the menu, go to Assets → Import Package → Custom Package, select portalgraph.unitypackage, and import the assets into the project.

Input Settings

Currently, Portalgraph's key input processing uses the old Input Manager. Therefore, please set "Active Input Handling" to "Input Manager (Old)" or "Both" by going to the menu "Edit" → "Project Settings" → "Player" → "Other Settings."

Setting TextMesh Pro

Import the Essential Resources for TextMesh Pro. From the menu, go to Window → TextMeshPro → Import TMP Essential Resources and click to import.

Creating the Scene

In Unity, create a new scene and place the Portalgraph/Portalgraph prefab from the Project at coordinates (0, 0, 0). The coordinates of Portalgraph/ScreenCenter will represent the center point of the display screen. Additionally, place a Cube at coordinates (0, 0, 0) with a size of (0.1, 0.1, 0.1), making it smaller than your PC monitor.

Building

Click on Build Settings in the menu.

Click 'Add Open Scenes' to add the current scene to 'Scenes in Build', and then click 'Build' to build.

Execution

When you run the generated executable file, a 10 cm cube will be displayed on the screen. If this is your first time running Portalgraph, a screen size input window will appear—please enter the screen size.

With these steps, you will have a Portalgraph application that allows you to view in 3D from various angles.

Click 'Add Open Scenes' to add the current scene to 'Scenes in Build', and then click 'Build'.