Closed KingTomaHawk closed 6 years ago
@KingTomaHawk were you able to resolve the problem?
@karmaggyatso sadly no.
Hey @andrewimm, could you help us to resolve the above problem, please. Thank you.
Hi,
You might want to try rendering to a location instead of to a surface in your client.js file:
r360.renderToLocation(
r360.createRoot('TourSample',
{
/* initial props */
}
),
r360.getDefaultLocation()
);
r360.compositor.setBackground(LOADING_BACKGROUND_URL,
{format: '3DTB'}
);
The partial image you are seeing is due to the use of
Environment.clearBackground();
Environment.setBackgroundImage(
asset(this.state.data.photos[this.state.nextLocationId].uri),
{format: '3DTB'} /* one of the formats mentioned above */
);
I think the string values used for the formats of 3D images and video (3DTB etc) have changed between ReactVR and React360, so make sure you have updated these as necessary.
Let me know if this helps, Kevin
Hi Kevin,
sry I was on vacation. Changing from Surface to Location fixed the issue, but It was lagging. Removing the Sound Module from import, fixed that problem.
Thanks
Description
Need help "porting" Tour Sample from React VR to React 360.
Expected behavior
Functional Sample
Actual behavior
I can only see a small area of my 360 Picture:
Reproduction
changed client.js to:
Changed index.html to:
Solution
/
Additional Information
Edit: My first (real) bugreport on Github so forgive me any mistakes :)