Week 6
This week consisted of mainly writing/testing code that will implement step 8, and attempting to add a magnifying glass 3d object into Simr, so that it reveals the ASCII code of the output of mainExample when held over the gridPanel.
Step 7: Interactions and Animations
Using a magnifying glass poly from Google Poly and the Entity component, I added it to Simr.
Errors:
-
Entitycomponent not registeredFix:
import Entity from 'Entity'rather thanimport Entity from 'react-360'
-
Even though the
Entitycomponent was rendered successfully, the magnifying glass did not appear in the environment.Attempt:
- Changed scale and values
Step 8: Break code into snippets that can be sequenced
Using knowledge learned from the Udemy Creating VR Experiences, I made each line of mainExample a button, so that onClick these buttons would change the VariablePanel and CodePanel accordingly. I created a separate repl.it enviornment to create and test my getVariables and getCodeSnippets functions that will lay within CodePanel render(). I was unable to finish both functions, so this will continue to be implemented next week.
Thoughts
- I am creating the
getVariablesfunction, so that when code is inputted into themainExample, the variables will be automatically collected and displayed inVariablePanel. Though this is not a step, I think it is a helpful feature to add.
Credits
- Magnifying glass, Poly by Google Link: https://poly.google.com/view/bcdkW7a4AG5
Acquired Knowledge:
EntityrenderToLocation()*****
Completed Tasks
- Finished Week #6 Post
Unfinished Tasks
- Steps 7 - 11
- Find more articles for Final Report
- Work on Final Report
- Finish courses
