OCULUS VR, LLC Oculus Developer Guide SDK Version 0.4 Date: October 24, 2014 20

OCULUS VR, LLC Oculus Developer Guide SDK Version 0.4 Date: October 24, 2014 2014 Oculus VR, LLC. All rights reserved. Oculus VR, LLC Irvine CA Except as otherwise permitted by Oculus VR, LLC (”Oculus”) , this publication, or parts thereof, may not be reproduced in any form, by any method, for any purpose. Certain materials included in this publication are reprinted with the permission of the copyright holder. All brand names, product names or trademarks belong to their respective holders. Disclaimer THIS PUBLICATION AND THE INFORMATION CONTAINED HEREIN IS MADE AVAILABLE BY OCULUS VR, LLC AS IS. OCULUS VR, LLC DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABIL- ITY OR FITNESS FOR A PARTICULAR PURPOSE REGARDING THESE MATERIALS. 1 Contents 1 Introduction 5 2 Introducing DK2 and SDK 0.4 5 3 Oculus Rift Hardware Setup 7 3.1 Oculus Rift DK1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.2 Oculus Rift DK2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.3 Monitor Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Oculus Rift SDK Setup 9 4.1 System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.1.1 Operating systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.1.2 Minimum system requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.2 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.3 Directory Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.4 Compiler Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.5 Makefiles, Projects, and Build Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.5.1 Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.5.2 MacOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.5.3 Linux (Coming Soon) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.6 Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 5 Getting Started 12 5.1 OculusWorldDemo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 5.1.1 Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 5.1.2 Using OculusWorldDemo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 5.2 Using the SDK Beyond the OculusWorldDemo . . . . . . . . . . . . . . . . . . . . . . . . 15 5.2.1 Software developers and integration engineers . . . . . . . . . . . . . . . . . . . . . 15 5.2.2 Artists and game designers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6 LibOVR Integration Outline 17 6.1 Integration tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2 7 Initialization and Sensor Enumeration 18 7.1 Head tracking and sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 7.1.1 Position Tracking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7.1.2 User input integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.2 Health and Safety Warning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 8 Rendering to the Oculus Rift 26 8.1 Stereo rendering concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 8.2 SDK distortion rendering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 8.2.1 Render texture initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 8.2.2 Configure rendering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 8.2.3 Frame rendering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 8.2.4 Frame timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 8.3 Client distortion rendering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 8.3.1 Setting up rendering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . uploads/Geographie/ oculus-developer-guide.pdf

  • 21
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Attribution requise
Partager