<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Oculus not seeing camera view in Stingray Forum (Read Only)</title>
    <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6994216#M8468</link>
    <description>&lt;P&gt;Do you have any other way I can screen share/meet with you? &amp;nbsp;Teamviewer maybe?&lt;/P&gt;
&lt;P&gt;Alternatively you could upload me what you have somewhere and I can take a look and see if I can resolve it for you.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2017 12:44:10 GMT</pubDate>
    <dc:creator>paul.kind</dc:creator>
    <dc:date>2017-04-04T12:44:10Z</dc:date>
    <item>
      <title>Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6991679#M8450</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've run through the roller coaster demo setup, and was able to duplicate the demo in Stingray. &amp;nbsp;As of Friday, playing the level (without Oculus), the viewpoint of the level test was that of the camera. &amp;nbsp;This morning I tried the exact same file with the Oculus plugged in, and while Oculus can SEE the level, it is not seeing it form the same viewpoint.... it's like the camera is above and off to the side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something in the Oculus Lua that needs to be set to tell it to use the same camera?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 14:13:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6991679#M8450</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-03T14:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992158#M8458</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1951677"&gt;@paul.kind&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3105693"&gt;@dan.matlack&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this have something to do with positional tracking? &amp;nbsp;Can I disable it somehow? &amp;nbsp;Oculus is stuck in Persective, not looking from the camera called out in the level flow. &amp;nbsp;Help please?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 16:30:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992158#M8458</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-03T16:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992197#M8459</link>
      <description>&lt;P&gt;It is my understanding that the roller coaster demo was set up to have the hmd be set at the camera location based on the project. If you are using a different project or have adjusted the project, that may no longer be the case. You need to set the hmd position to be that of the desired camera position. You can do that by updating it every tick to that position or by linking it to the camera in flow or lua.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 16:46:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992197#M8459</guid>
      <dc:creator>dan.matlack</dc:creator>
      <dc:date>2017-04-03T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992202#M8460</link>
      <description>&lt;P&gt;Hrm, thats a curious problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the camera tracking correctly along with the tutorial only it is offset? &amp;nbsp;Forgive me, i have mot personally gone through the tutorial myself, but, i know enough to help you out here. &amp;nbsp;Also, if you move your head around does the oculus move with it? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the answers above are "no" then you may want to set your tracking space using the tracking space node to wherever you want your "head" to be. &amp;nbsp;You will want to update this every frame.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="head_pos.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/340669i2FA440E4AEB3C746/image-size/large?v=v2&amp;amp;px=999" role="button" title="head_pos.PNG" alt="head_pos.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lemme know if this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 16:48:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992202#M8460</guid>
      <dc:creator>paul.kind</dc:creator>
      <dc:date>2017-04-03T16:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992209#M8461</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3105693"&gt;@dan.matlack&lt;/a&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3105693"&gt;@dan.matlack&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;It is my understanding that the roller coaster demo was set up to have the hmd be set at the camera location based on the project. If you are using a different project or have adjusted the project, that may no longer be the case. You need to set the hmd position to be that of the desired camera position. You can do that by updating it every tick to that position or by linking it to the camera in flow or lua.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thank you, but I am a complete newbie, you might have to dumb that down for me.... &amp;nbsp;Sorry.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 16:50:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992209#M8461</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-03T16:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992229#M8462</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1951677"&gt;@paul.kind&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I disconnect Oculus completely, and run level test without it, the camera is set as expected based on the tutorial. &amp;nbsp;Which is to say, you are in the car on the track. &amp;nbsp;But as soon as I plug in the Oculus, it jumps back to a perspective view. &amp;nbsp;I'm sure this is Oculus 101, but I'm in over my head here coming from an Inventor background. &amp;nbsp;I have people that want to see this working, and I'm not able to make it happen.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 16:58:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992229#M8462</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-03T16:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992826#M8465</link>
      <description>&lt;P&gt;Ok, so it should be pretty easy no matter the case. &amp;nbsp;If you have a few minutes, contact me on Skype, my user name is &lt;STRONG&gt;threedeenut&lt;/STRONG&gt; (Paul Kind). &amp;nbsp;Just friend request me and lets have a call together to resolve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 21:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6992826#M8465</guid>
      <dc:creator>paul.kind</dc:creator>
      <dc:date>2017-04-03T21:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6994122#M8467</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1951677"&gt;@paul.kind&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Ok, so it should be pretty easy no matter the case. &amp;nbsp;If you have a few minutes, contact me on Skype, my user name is &lt;STRONG&gt;threedeenut&lt;/STRONG&gt; (Paul Kind). &amp;nbsp;Just friend request me and lets have a call together to resolve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Paul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the offer, but that's not really going to work. &amp;nbsp;This is all on my work PC and I don't have the ability to Skype from here. &amp;nbsp;Thanks anyway.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 12:11:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6994122#M8467</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-04T12:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6994216#M8468</link>
      <description>&lt;P&gt;Do you have any other way I can screen share/meet with you? &amp;nbsp;Teamviewer maybe?&lt;/P&gt;
&lt;P&gt;Alternatively you could upload me what you have somewhere and I can take a look and see if I can resolve it for you.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 12:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6994216#M8468</guid>
      <dc:creator>paul.kind</dc:creator>
      <dc:date>2017-04-04T12:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6994284#M8469</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1951677"&gt;@paul.kind&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've sent you a PM... once we get to a resolution I will update here so the solution will be searchable. &amp;nbsp;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 13:02:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6994284#M8469</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-04T13:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995466#M8470</link>
      <description>&lt;P&gt;I thought It wouldn't hurt to tag&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1274083"&gt;@MatthewDoyleArt&lt;/a&gt;&amp;nbsp;in this thread also, since the roller coaster has his name on it. &amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 19:19:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995466#M8470</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-04T19:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995537#M8472</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I updated the Rollercoaster VR kit to Stingray 1.7. You can try to download the new version from here: &lt;A href="https://autodesk.box.com/s/jsutlpm7v6kxx5l817ejybuc025rv1az" target="_self"&gt;https://autodesk.box.com/s/jsutlpm7v6kxx5l817ejybuc025rv1az&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The update no longer uses Flow to control the Oculus camera. It is all done in Lua now. I am actually creating a Lua Tips &amp;amp; Tricks video which will go live this week that explains how I did it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Until then, here's the basic code I did to make it work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt;: Open Project.lua script and specify the level (line 11)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Project.level_names = {
rollercoaster = "content/levels/RollerCoaster_VR/RollerCoaster_VR_Level"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; Add these local variables (line 35)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;-- Cart &amp;amp; Player Start
local cart = nil
local player_starts = nil&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt; Adjust the SimpleProject.config data (line 43).&lt;/P&gt;
&lt;P&gt;Just change the standalone_init_level_name to point to the level defined in Step 1 above:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SimpleProject.config = {
standalone_init_level_name = Project.level_names.rollercoaster,&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 4:&lt;/STRONG&gt; Modify get_player_start_pose() function (line 53)&lt;/P&gt;
&lt;P&gt;The entire function should now look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;local function get_player_start_pose()
&amp;nbsp;&amp;nbsp;&amp;nbsp; local pose = stingray.Unit.world_pose(player_starts, 1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; local scale = stingray.Unit.local_scale(player_starts, 1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; stingray.Matrix4x4.set_scale(pose, scale)
&amp;nbsp;&amp;nbsp; return pose
end&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 5:&lt;/STRONG&gt; Modify Project.on_level_load_pre_flow() function (line 84)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;function Project.on_level_load_pre_flow()
&amp;nbsp;&lt;BR /&gt;-- Add this code directly after the line: Project.vr_eye_height = vr_eye_height
&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; -- Link player start to cart
&amp;nbsp;&amp;nbsp;&amp;nbsp; cart = stingray.World.unit_by_name(SimpleProject.world, "Coaster_Camera_B")
&amp;nbsp;&amp;nbsp;&amp;nbsp; local cartIndex = stingray.Unit.node(cart, "Cart")
&amp;nbsp;&amp;nbsp;&amp;nbsp; player_starts = stingray.World.unit_by_name(SimpleProject.world, "player_start")
&amp;nbsp;&amp;nbsp;&amp;nbsp; stingray.World.link_unit(SimpleProject.world, player_starts, cart, cartIndex)
&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 6:&lt;/STRONG&gt; Modify Project.update(dt) function (line 161)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;function Project.update(dt)

-- Add this code directly after the line: if not OculusVRSystem.is_ensabled(vr_system) then return end&lt;BR /&gt;&lt;BR /&gt;local player_start_pose = get_player_start_pose()
local player_start_position = stingray.Matrix4x4.transform(player_start_pose, stingray.Vector3(0, -0.5, 2))
stingray.Matrix4x4.set_translation(player_start_pose, player_start_position)
OculusVRSystem.set_tracking_space_pose(vr_system, player_start_pose)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 20:04:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995537#M8472</guid>
      <dc:creator>MatthewDoyleArt</dc:creator>
      <dc:date>2017-04-04T20:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995641#M8473</link>
      <description>Wow, thanks Mr. Doyle.  I'll have a look at that tomorrow.    Gotta say after 20 years in mechanical cad, I feel like a stranger in a strange land... but it is fun to learn something new.</description>
      <pubDate>Tue, 04 Apr 2017 20:21:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995641#M8473</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-04T20:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995654#M8474</link>
      <description>&lt;P&gt;You're welcome. If you have any issues with the update kit, let me know. I have tested it with DK2 on my end and it works great. I moved from Flow to Lua, because the camera was laggy in Flow. In Lua, the VR camera maintains a perfect position as the coaster moves.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 20:24:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995654#M8474</guid>
      <dc:creator>MatthewDoyleArt</dc:creator>
      <dc:date>2017-04-04T20:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995673#M8475</link>
      <description>Sounds promising.  Where we are taking this is to create a fly through of some of the systems we build, to show off at trade shows and such.  The coaster concept, once I get the hang of it, should translate nicely to what we want to do.</description>
      <pubDate>Tue, 04 Apr 2017 20:30:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995673#M8475</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-04T20:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995683#M8476</link>
      <description>&lt;P&gt;Cool. Well, let me know if you have trouble downloading the 1.7 kit from that link. If you don't have access, I will try to figure out another place I can put it for you.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 20:34:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/6995683#M8476</guid>
      <dc:creator>MatthewDoyleArt</dc:creator>
      <dc:date>2017-04-04T20:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/7002726#M8486</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1274083"&gt;@MatthewDoyleArt&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello again. Finally got back to looking at this. &amp;nbsp;I'm trying to take your code lines and apply them to a new project (adjusted of course). &amp;nbsp;The level test keeps failing at this line of code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="nil2.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/342380iC2CB94CA87879796/image-size/large?v=v2&amp;amp;px=999" role="button" title="nil2.PNG" alt="nil2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="nil.PNG" style="width: 296px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/342379i3F76A02BD1C763A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="nil.PNG" alt="nil.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This project I am running doesn't have the camera attached to a physical entity like the cart in the coaster, so I made "cart" = to the name of the node in my camera entity. &amp;nbsp;It's the player_start line it seems not to like. &amp;nbsp;taking it out doesn't seem to fix the issue. &amp;nbsp;Any ideas?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 13:16:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/7002726#M8486</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-07T13:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/7002816#M8487</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1274083"&gt;@MatthewDoyleArt&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Digging deeper, the line items are different in this project than in your original coaster lua, so I opened that and put the code you gave me above into the appropriate lines on this new script. &amp;nbsp;The logs keep pointing me to this section:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;-- Cart &amp;amp; Player Start
local cart = nil
local player_starts = nil

-- Can provide a config for the basic project, or it will use a default if not.
SimpleProject.config = {
	standalone_init_level_name = Project.level_names.VR_Chem_Plant,
	camera_unit = "core/appkit/units/camera/camera",
	camera_index = 1,
	shading_environment = nil, -- Will override levels that have env set in editor.
	create_free_cam_player = false, -- Project will provide its own player.
	exit_standalone_with_esc_key = true
}

-- check to see if there are player starts in the level, if not return world 0
local function get_player_start_pose()
		&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;if #player_starts &amp;gt; 0 then&lt;/STRONG&gt;&lt;/FONT&gt;
		local index = stingray.Math.random(1, #player_starts)
		local pose = stingray.Unit.world_pose(player_starts, 1)
		local scale = stingray.Unit.local_scale(player_starts, 1)
		stingray.Matrix4x4.set_scale(pose, scale)
		return pose
	else
		return stingray.Matrix4x4.identity()
	end
end&lt;/PRE&gt;
&lt;P&gt;The highlighted line seems to be the one failing. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 13:55:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/7002816#M8487</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-04-07T13:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/7003469#M8488</link>
      <description>&lt;P&gt;I see. The code I provided works with the coaster project due to the way it is set up. I don't know about how your project is set up, but it sounds like you are just using an animated camera, rather than an animated mesh object.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;(Update: See my next post for a solution that should work with just an animated camera)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how my setup works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First up, you must have a player spawn point located at the location you want to start at.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Select Create Tab, and choose Player Start under Misc.&lt;/LI&gt;
&lt;LI&gt;Place the spawn point as I have in this image below.&lt;/LI&gt;
&lt;LI&gt;Name it player_start&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2017-04-07 12.35.46.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/342504i644721F14740E57A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2017-04-07 12.35.46.png" alt="Screenshot 2017-04-07 12.35.46.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code below is added to: &amp;nbsp;Project.on_level_load_pre_flow()&lt;/P&gt;
&lt;P&gt;It gets references to the cart mesh &amp;amp; it's index, as well as the player start, then it links the player start to the cart.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;You might not need these lines of code at all if you aren't linking the player spawn point to a moving mesh object, but instead using a camera.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;cart = stingray.World.unit_by_name(SimpleProject.world, "Coaster_Camera_B")
local cartIndex = stingray.Unit.node(cart, "Cart")
player_starts = stingray.World.unit_by_name(SimpleProject.world, "player_start")
stingray.World.link_unit(SimpleProject.world, player_starts, cart, cartIndex)&lt;/PRE&gt;
&lt;P&gt;Next, this code in the Project.update(dt) function makes sure the VR camera's tracking space is updated every tick of the game loop:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;local player_start_pose = get_player_start_pose()
local player_start_position = stingray.Matrix4x4.transform(player_start_pose, stingray.Vector3(0, -0.25, 2.25))
stingray.Matrix4x4.set_translation(player_start_pose, player_start_position)
OculusVRSystem.set_tracking_space_pose(vr_system, player_start_pose)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, this function replaces the original get_player_start_pose() function in the oculus vr template. It uses the player_starts spawn point to find out where the VR camera should be at any given frame, and is called on by the code above in Project.update(dt):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Notice it gets its pose &amp;amp; scale info from the player_starts object. If you want to use the camera, you'll need to replace these lines with code that gets the pose &amp;amp; scale from the camera instead.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;local function get_player_start_pose()
    local pose = stingray.Unit.world_pose(player_starts, 1)
    local scale = stingray.Unit.local_scale(player_starts, 1)
    stingray.Matrix4x4.set_scale(pose, scale)
    return pose
end&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:08:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/7003469#M8488</guid>
      <dc:creator>MatthewDoyleArt</dc:creator>
      <dc:date>2017-04-07T18:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oculus not seeing camera view</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/7003505#M8489</link>
      <description>&lt;P&gt;Here's what I did to get it to work with just a camera:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Assume the camera in my level has the name "myCam" and that the camera is animated.&lt;/LI&gt;
&lt;LI&gt;Add the local variable in Lua:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;local myCam = nil&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Change the get_player_start_pose() function to this:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;local function get_player_start_pose()
    local pose = stingray.Unit.world_pose(myCam, 1)
    local scale = stingray.Unit.local_scale(myCam, 1)
    stingray.Matrix4x4.set_scale(pose, scale)
    return pose
end&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Add this line of code to Project.on_level_load_pre_flow()&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;myCam = stingray.World.unit_by_name(SimpleProject.world, "myCam")&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Add this code to the Project.update(dt) function:&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;PRE&gt; local player_start_pose = get_player_start_pose()&lt;BR /&gt; OculusVRSystem.set_tracking_space_pose(vr_system, player_start_pose)&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:15:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/oculus-not-seeing-camera-view/m-p/7003505#M8489</guid>
      <dc:creator>MatthewDoyleArt</dc:creator>
      <dc:date>2017-04-07T18:15:22Z</dc:date>
    </item>
  </channel>
</rss>

