Commit 68f6fb81 authored by Cara's avatar Cara
Browse files

revising format

parent 8eac76b3
......@@ -349,8 +349,6 @@ Building a Project with User Input
|image10|
:raw-html-m2r:`<br />`
4. Add a DirectLight to brighten the cube.
......@@ -365,8 +363,6 @@ Building a Project with User Input
|image13|
:raw-html-m2r:`<br />`
6. Set the Canvas RenderMode to WorldSpace, and then set its position and scale to an appropriate value such as that listed below.
......@@ -386,11 +382,10 @@ Building a Project with User Input
|image18|
|image19|
10. Finally, compile the app. An interactive mixed reality app utilizing user input with a Nreal Light controller is complete.
|image20|
|image19|
......@@ -412,5 +407,4 @@ Building a Project with User Input
.. |image16| image:: ../../../images/controller16.jpg
.. |image17| image:: ../../../images/controller17.jpg
.. |image18| image:: ../../../images/controller18.jpg
.. |image19| image:: ../../../images/controller19.jpg
.. |image20| image:: ../../../images/controller20.jpg
\ No newline at end of file
.. |image19| image:: ../../../images/controller19.jpg
\ No newline at end of file
......@@ -24,16 +24,16 @@ Prerequisites
^^^^^^^^^^^^^
* :raw-html-m2r:`<font color=#636363>Understanding NRSDK concept and working flow.</font>`
* :raw-html-m2r:`<font color=#636363>Import NRSDK into Unity(IntroducingNRSDK)</font>`
* :raw-html-m2r:`<font color=#636363>Have the code and resources of your app ready.</font>`
* Understanding NRSDK concept and working flow
* :ref:`Import NRSDK into Unity<introducing_NRSDK>`
* Have the code and resources of your app ready
:raw-html-m2r:`<br />`
Find Emulator in NRSDK package
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:raw-html-m2r:`<font color=#636363>NRSDK > Emulator</font>`
NRSDK > Emulator
.. image:: ../../../images/Emulator/em1-1.jpg
......@@ -121,7 +121,7 @@ Simulating Controller Input
*
:raw-html-m2r:`<font color=#636363>Simulating Controller Rotation</font>`
:raw-html-m2r:`<font color=#636363>Press Shift + Move Mouse</font>`
:raw-html-m2r:`<font color=#636363>Press Shift + Move Mouse</font>`
*
:raw-html-m2r:`<font color=#636363>Simulating Controller Button </font>`
:raw-html-m2r:`<font color=#636363>Mouse left button -> Select Button</font>`
......@@ -139,7 +139,7 @@ Simulating Controller Input
* :raw-html-m2r:`<font color=#636363>Simulating Controller Touch (Swipe Gesture)</font>`
:raw-html-m2r:`<font color=#636363>Keyboard Left/ Right/ Up/ Down Arrow -> Swipe Left/ Right/ Up/ Down</font>`
:raw-html-m2r:`<font color=#636363>Keyboard Left/ Right/ Up/ Down Arrow -> Swipe Left/ Right/ Up/ Down</font>`
.. image:: ../../../images/Emulator/em1-6.jpg
......@@ -185,28 +185,27 @@ Create your own
~~~~~~~~~~~~~~~
#. :raw-html-m2r:`<font color=#636363>Make sure you have</font>` ``Assets/NRSDK/Prefabs/NRCamreaRig.prefab`` :raw-html-m2r:`<font color=#636363>and</font>` ``NRSDK/Prefabs/NRInput.prefab`` :raw-html-m2r:`<font color=#636363>in the scene.</font>`
1. :raw-html-m2r:`<font color=#636363>Make sure you have</font>` ``Assets/NRSDK/Prefabs/NRCamreaRig.prefab`` :raw-html-m2r:`<font color=#636363>and</font>` ``NRSDK/Prefabs/NRInput.prefab`` :raw-html-m2r:`<font color=#636363>in the scene.</font>`
* :raw-html-m2r:`<font color=#636363>When Unity Editor under runtime, the</font>` ``NREmulatorHeadPose.prefab`` :raw-html-m2r:`<font color=#636363>will be automatically loaded by</font>` ``NRCameraRig.prefab`` :raw-html-m2r:`<font color=#636363>into the scene for simulating the head pose data.</font>`
* :raw-html-m2r:`<font color=#636363>When Unity Editor under runtime, the</font>`\ ``EmualatorController.Prefab`` :raw-html-m2r:`<font color=#636363>will be automatically loaded by</font>` ``NRInput.prefab`` :raw-html-m2r:`<font color=#636363>into the scene for simulating the controller input data. </font>`
* :raw-html-m2r:`<font color=#636363>When Unity Editor under runtime, the</font>` ``NREmulatorHeadPose.prefab`` :raw-html-m2r:`<font color=#636363>will be automatically loaded by</font>` ``NRCameraRig.prefab`` :raw-html-m2r:`<font color=#636363>into the scene for simulating the head pose data.</font>`
* :raw-html-m2r:`<font color=#636363>When Unity Editor under runtime, the</font>`\ ``EmualatorController.Prefab`` :raw-html-m2r:`<font color=#636363>will be automatically loaded by</font>` ``NRInput.prefab`` :raw-html-m2r:`<font color=#636363>into the scene for simulating the controller input data. </font>`
:raw-html-m2r:`<br />`
2. :raw-html-m2r:`<font color=#636363>Place</font>` ``Assets/NRSDK/Emulator/Prefabs/NRTrackableImageTarget.prefab`` :raw-html-m2r:`<font color=#636363>or</font>` ``Assets/NRSDK/Emulator/Prefabs/NRTrackablePlaneTarget.prefab`` :raw-html-m2r:`<font color=#636363>to simulate the trackalbe images and planes.</font>`
#. :raw-html-m2r:`<font color=#636363>Place</font>` ``Assets/NRSDK/Emulator/Prefabs/NRTrackableImageTarget.prefab`` :raw-html-m2r:`<font color=#636363>or</font>` ``Assets/NRSDK/Emulator/Prefabs/NRTrackablePlaneTarget.prefab`` :raw-html-m2r:`<font color=#636363>to simulate the trackalbe images and planes.</font>`
* ``TrackableObserver.cs`` :raw-html-m2r:`<font color=#636363>is attached to every</font>`\ ``NRTrackableImageTarget.prefab`` :raw-html-m2r:`<font color=#636363>and</font>` ``NRTrackablePlaneTarget.prefab``\ :raw-html-m2r:`<font color=#636363>. You need to register your own logic of Trackable found and lost into TrackableObserver.</font>`
* ``TrackableObserver.cs`` :raw-html-m2r:`<font color=#636363>is attached to every</font>`\ ``NRTrackableImageTarget.prefab`` :raw-html-m2r:`<font color=#636363>and</font>` ``NRTrackablePlaneTarget.prefab``\ :raw-html-m2r:`<font color=#636363>. You need to register your own logic of Trackable found and lost into TrackableObserver.</font>`
.. image:: ../../../images/Emulator/em1-10.jpg
.. image:: ../../../images/Emulator/em1-10.jpg
:raw-html-m2r:`<br />`
#. :raw-html-m2r:`<font color=#636363>In</font>` ``/Assets/NRSDK/Emulator/Scripts/TrackableFoundTest.cs`` :raw-html-m2r:`<font color=#636363>, you could find the sample for the register event.</font>`
3. :raw-html-m2r:`<font color=#636363>In</font>` ``/Assets/NRSDK/Emulator/Scripts/TrackableFoundTest.cs`` :raw-html-m2r:`<font color=#636363>, you could find the sample for the register event.</font>`
*
......@@ -243,38 +242,36 @@ Create your own
:raw-html-m2r:`<br />`
#.
:raw-html-m2r:`<font color=#636363>If you want to use your image as a detection target, you could switch the image database in</font>` ``NRTrackableImageTarget.prefab``\ :raw-html-m2r:`<br>`
4. :raw-html-m2r:`<font color=#636363>If you want to use your image as a detection target, you could switch the image database in</font>` ``NRTrackableImageTarget.prefab``\ :raw-html-m2r:`<br>`
.. image:: ../../../images/Emulator/em1-11.jpg
:raw-html-m2r:`<br />`
*
:raw-html-m2r:`<font color=#636363>In NRSDK, we provided you with three default images for image detection. If you would like to add your own, please find</font>` ``NRCameraRig.prefab``
* :raw-html-m2r:`<font color=#636363>In NRSDK, we provided you with three default images for image detection. If you would like to add your own, please find</font>` ``NRCameraRig.prefab``
* :raw-html-m2r:`<font color=#636363>Find</font>`\ ``NRKernalSessionConfig.asset`` :raw-html-m2r:`<font color=#636363>under the</font>` ``NRSessionBehaviour.cs``
* :raw-html-m2r:`<font color=#636363>Find</font>`\ ``NRKernalSessionConfig.asset`` :raw-html-m2r:`<font color=#636363>under the</font>` ``NRSessionBehaviour.cs``
.. image:: ../../../images/Emulator/em1-12.jpg
.. image:: ../../../images/Emulator/em1-12.jpg
:raw-html-m2r:`<br />`
:raw-html-m2r:`<br />`
* :raw-html-m2r:`<font color=#636363>Find TrackingImageDatabase in the</font>` ``NRKernalSessionConfig.asset``\ :raw-html-m2r:`<font color=#636363>, and drag your own database.asset into it. </font>`
* :raw-html-m2r:`<font color=#636363>Find TrackingImageDatabase in the</font>` ``NRKernalSessionConfig.asset``\ :raw-html-m2r:`<font color=#636363>, and drag your own database.asset into it. </font>`
.. image:: ../../../images/Emulator/em1-13.jpg
.. image:: ../../../images/Emulator/em1-13.jpg
:raw-html-m2r:`<br />`
:raw-html-m2r:`<br />`
* Read about **[Image Tracking]**
* Refer to :ref:`Image Tracking<image_tracking>` for more inforamtion
.. image:: ../../../images/Emulator/em1-14.jpg
.. image:: ../../../images/Emulator/em1-14.jpg
.. role:: raw-html-m2r(raw)
:format: html
.. _image_tracking:
Image Tracking
--------------
......
......@@ -13,15 +13,14 @@ Open the Sample Scene
^^^^^^^^^^^^^^^^^^^^^
* :raw-html-m2r:`<font color=#636363>In the Unity Project window, you can find the</font>` **CameraCaptureDemo** :raw-html-m2r:`<font color=#636363>sample in:</font>`
``Assets > NRSDK >Demos > RGBCamera``.
* In the Unity Project window, you can find the **CameraCaptureDemo** sample in: ``Assets > NRSDK >Demos > RGBCamera``.
:raw-html-m2r:`<br />`
Build and Run the Sample App
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* Enable developer options and USB debugging on your Nreal Light computing unit. **Android Debug Bridge** `adb <https://developer.android.com/studio/command-line/adb>`_ is enabled as default.
* Enable developer options and USB debugging on your Nreal Light computing unit. **Android Debug Bridge** `adb <https://developer.android.com/studio/command-line/adb>`_ is enabled as default.
* Connect your Nreal Light computing unit to your Windows PC.
......
.. role:: raw-html-m2r(raw)
:format: html
.. _introducing_NRSDK:
Introducing NRSDK
=================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment