{"id":3350,"date":"2014-10-28T15:02:51","date_gmt":"2014-10-28T12:02:51","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=3350"},"modified":"2014-10-28T15:02:51","modified_gmt":"2014-10-28T12:02:51","slug":"oculus-dk2-unity-indie","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2014\/10\/28\/oculus-dk2-unity-indie\/","title":{"rendered":"Oculus DK2 + Unity Indie"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3358\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2014\/10\/28\/oculus-dk2-unity-indie\/oculusview\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusview.jpg?fit=680%2C334&amp;ssl=1\" data-orig-size=\"680,334\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"oculusview\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusview.jpg?fit=680%2C334&amp;ssl=1\" class=\"alignnone size-full wp-image-3358\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusview.jpg?resize=680%2C334\" alt=\"oculusview\" width=\"680\" height=\"334\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusview.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusview.jpg?resize=300%2C147&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p>Oculus now works with Unity Indie (free) also! (For example using v4.5.5)<\/p>\n<p>Quick start:<\/p>\n<h2><strong>Register as Oculus developer<\/strong><\/h2>\n<p>&#8211; <a href=\"https:\/\/developer.oculusvr.com\/\">https:\/\/developer.oculusvr.com\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Connecting the device<\/strong><\/h2>\n<p>&#8211; Quick start guide: <a href=\"http:\/\/static.oculusvr.com\/sdk-downloads\/documents\/DK2_Quick_Start_Guide.pdf\">http:\/\/static.oculusvr.com\/sdk-downloads\/documents\/DK2_Quick_Start_Guide.pdf<\/a><\/p>\n<p>&#8211; Install Oculus runtime from: <a href=\"https:\/\/developer.oculusvr.com\/?action=dl\">https:\/\/developer.oculusvr.com\/?action=dl<\/a><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3351\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2014\/10\/28\/oculus-dk2-unity-indie\/runtime_installer\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/runtime_installer.jpg?fit=608%2C691&amp;ssl=1\" data-orig-size=\"608,691\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"runtime_installer\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/runtime_installer.jpg?fit=608%2C691&amp;ssl=1\" class=\"alignnone size-full wp-image-3351\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/runtime_installer.jpg?resize=608%2C691\" alt=\"runtime_installer\" width=\"608\" height=\"691\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/runtime_installer.jpg?w=608&amp;ssl=1 608w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/runtime_installer.jpg?resize=263%2C300&amp;ssl=1 263w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/p>\n<p>&#8211; Usually need to restart computer after it\u2019s installed<\/p>\n<p>&#8211; Connect your DK2 into PC<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Unity + Oculus Tuscany Demo Project<\/strong><\/h2>\n<p>&#8211; Have a quick look at : <a href=\"http:\/\/static.oculusvr.com\/sdk-downloads\/documents\/OculusUnityIntegrationGuide_0.4.3.pdf\">http:\/\/static.oculusvr.com\/sdk-downloads\/documents\/OculusUnityIntegrationGuide_0.4.3.pdf<\/a><\/p>\n<p>&#8211; I\u2019m using Unity 4.5.5 (<a href=\"http:\/\/unity3d.com\/unity\/download\/archive\">http:\/\/unity3d.com\/unity\/download\/archive<\/a> )<\/p>\n<p>&#8211; You can also use Patch releases: <a href=\"http:\/\/unity3d.com\/unity\/qa\/patch-releases\">http:\/\/unity3d.com\/unity\/qa\/patch-releases<\/a><\/p>\n<p>&#8211; Download Oculus integration package : (ovr_unity_0.4.3_lib.zip )<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3352\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2014\/10\/28\/oculus-dk2-unity-indie\/integrationpackage\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/integrationpackage.jpg?fit=564%2C41&amp;ssl=1\" data-orig-size=\"564,41\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"integrationpackage\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/integrationpackage.jpg?fit=564%2C41&amp;ssl=1\" class=\"alignnone size-full wp-image-3352\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/integrationpackage.jpg?resize=564%2C41\" alt=\"integrationpackage\" width=\"564\" height=\"41\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/integrationpackage.jpg?w=564&amp;ssl=1 564w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/integrationpackage.jpg?resize=300%2C21&amp;ssl=1 300w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><br \/>\n&#8211; Start Unity, create New Project<\/p>\n<p>&#8211; Import \u201cOculusUnityIntegration_TuscanyDemo.unityPackage\u201d from the downloaded \u201covr_unity_0.4.3_lib.zip\u201d<\/p>\n<p>&#8211; First go to Edit \/ Project Settings \/ Player, and disable [ ] Use Direct 11 (not needed and some published Oculus application have problems when using DX11 mode)<\/p>\n<p>&#8211; Open demo scene: Tuscany \/ Scenes \/ VRDemo_Tuscany.scene<\/p>\n<p>&#8211; Game Window should have \u201cMaximize on Play\u201d enabled<\/p>\n<p>&#8211; Check from Oculus config utility, that you are using [x] Extented mode (which allows you to drag unity game view into oculus screen, while in Unity editor)<\/p>\n<p>*Direct mode is better, when testing published apps<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3353\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2014\/10\/28\/oculus-dk2-unity-indie\/oculusconf\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusconf.jpg?fit=630%2C410&amp;ssl=1\" data-orig-size=\"630,410\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"oculusconf\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusconf.jpg?fit=630%2C410&amp;ssl=1\" class=\"alignnone size-full wp-image-3353\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusconf.jpg?resize=630%2C410\" alt=\"oculusconf\" width=\"630\" height=\"410\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusconf.jpg?w=630&amp;ssl=1 630w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusconf.jpg?resize=300%2C195&amp;ssl=1 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>Now the most difficult part \ud83d\ude42<\/p>\n<p>&#8211; Your Oculus is your 2<sup>nd<\/sup> monitor\/screen, so in Unity you need to drag the Game view window on to that oculus screen (usually to the right)<\/p>\n<p>&#8211; AND once it\u2019s there, click that small maximize window button<\/p>\n<p>&#8211; Then just hit play and you are in VR!<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3356\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2014\/10\/28\/oculus-dk2-unity-indie\/maximize\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/maximize.jpg?fit=661%2C324&amp;ssl=1\" data-orig-size=\"661,324\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"maximize\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/maximize.jpg?fit=661%2C324&amp;ssl=1\" class=\"alignnone size-full wp-image-3356\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/maximize.jpg?resize=661%2C324\" alt=\"maximize\" width=\"661\" height=\"324\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/maximize.jpg?w=661&amp;ssl=1 661w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/maximize.jpg?resize=300%2C147&amp;ssl=1 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>LINKS<\/strong><\/h2>\n<p>&#8211; DK2 Troubleshooting resource: <a href=\"http:\/\/cymaticbruce.com\/DK2Troubleshoot2.html\">http:\/\/cymaticbruce.com\/DK2Troubleshoot2.html<\/a><br \/>\n&#8211; Oculus demos : <a title=\"https:\/\/share.oculusvr.com\/\" href=\"https:\/\/share.oculusvr.com\/\" target=\"_blank\">https:\/\/share.oculusvr.com\/<\/a><\/p>\n<p>&#8212;<\/p>\n<h2>Windows screen settings<\/h2>\n<p><strong>Main monitor<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3354\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2014\/10\/28\/oculus-dk2-unity-indie\/screen1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen1.jpg?fit=1050%2C656&amp;ssl=1\" data-orig-size=\"1050,656\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screen1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen1.jpg?fit=1024%2C639&amp;ssl=1\" class=\"alignnone size-full wp-image-3354\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen1.jpg?resize=1050%2C656\" alt=\"screen1\" width=\"1050\" height=\"656\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen1.jpg?w=1050&amp;ssl=1 1050w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen1.jpg?resize=300%2C187&amp;ssl=1 300w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen1.jpg?resize=1024%2C639&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>&#8212;<\/p>\n<p><strong>Oculus<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3355\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2014\/10\/28\/oculus-dk2-unity-indie\/screen2\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen2.jpg?fit=1050%2C656&amp;ssl=1\" data-orig-size=\"1050,656\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screen2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen2.jpg?fit=1024%2C639&amp;ssl=1\" class=\"alignnone size-full wp-image-3355\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen2.jpg?resize=1050%2C656\" alt=\"screen2\" width=\"1050\" height=\"656\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen2.jpg?w=1050&amp;ssl=1 1050w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen2.jpg?resize=300%2C187&amp;ssl=1 300w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/screen2.jpg?resize=1024%2C639&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oculus now works with Unity Indie (free) also! (For example using v4.5.5) Quick start: Register as Oculus developer &#8211; https:\/\/developer.oculusvr.com\/ &nbsp; Connecting the device &#8211; Quick start guide: http:\/\/static.oculusvr.com\/sdk-downloads\/documents\/DK2_Quick_Start_Guide.pdf &#8211; Install Oculus runtime from: https:\/\/developer.oculusvr.com\/?action=dl &#8211; Usually need to restart computer after it\u2019s installed &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3358,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[420,1,3],"tags":[667,154,205,668,665,28,383,171],"class_list":["post-3350","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-uncategorized","category-unity3d","tag-dk2","tag-free","tag-indie","tag-install","tag-oculus","tag-plugin","tag-tutorial","tag-unity"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/10\/oculusview.jpg?fit=680%2C334&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-S2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/3350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=3350"}],"version-history":[{"count":2,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/3350\/revisions"}],"predecessor-version":[{"id":3359,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/3350\/revisions\/3359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/3358"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=3350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=3350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=3350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}