A major task I worked on this week for the Beta presentation was a function to convert the JSON I created with all the furniture parts information into HTML entities that could be added to the scene when "spawned". This took around 6hrs and I learned that JavaScript does not take well to retrieving property names containing dashes in in JSON. This led to issues with trying to directly convert from using the property names stored in JSON with the associated values, since the properties needed dashes to work as an A-Frame entity in HTML.
I also initially had some challenges with querying the JSON objects since the data for each furniture piece is contained in the furniture object, therefore the query must account for multiple layers of arrays. However, the object spawning now works as tested in the Warehouse environment by clicking on specific boxes (which have yet to be labeled). I will be adding the other box spawners once the furniture parts 3D models are ready to be imported.
This week I also worked on improving the index.html page (see screenshot below) since it was originally just the Living Room environment with two clickable cubes, one to go to each respective scene. This took around 2hrs to create the images and implement the clicking functionality leading to the different pages.
After the coronavirus precautions began, I became a bit preoccupied with some other things but I was still able to finish the aforementioned tasks for this sprint. With the school closed down for all non-essential operations, we have some difficulties with renting a VR headset to test our game prototype with. This unexpected limitation may inevitably lead to a change in our scope.
I also initially had some challenges with querying the JSON objects since the data for each furniture piece is contained in the furniture object, therefore the query must account for multiple layers of arrays. However, the object spawning now works as tested in the Warehouse environment by clicking on specific boxes (which have yet to be labeled). I will be adding the other box spawners once the furniture parts 3D models are ready to be imported.
This week I also worked on improving the index.html page (see screenshot below) since it was originally just the Living Room environment with two clickable cubes, one to go to each respective scene. This took around 2hrs to create the images and implement the clicking functionality leading to the different pages.
After the coronavirus precautions began, I became a bit preoccupied with some other things but I was still able to finish the aforementioned tasks for this sprint. With the school closed down for all non-essential operations, we have some difficulties with renting a VR headset to test our game prototype with. This unexpected limitation may inevitably lead to a change in our scope.
Comments
Post a Comment