Write a code that:
-
Create 3D rooms. Room is a cube. Must see rooms through the semi-transparent wall. Build a pattern of room as in the image below.
-
Wall of a room must be opaque if there is no next room to traverse.
-
Move from one room to another. You are only allowed to move from one space to another space. Ex: From room 1 you have only option to move to room 2 and from room 2 only option to move either room 5 or room 3.
-
Able to navigate 360 inside a room.
-
Use the concept of 3D transformations.Reference
- three.js is a cross-browser JavaScript library and application programming interface used to create and display animated 3D computer graphics in a web browser using WebGL.
- There are lots of examples that can be referenced.
- You are free to use, write your code in any framework.
- Your code should run and should able to see the desired output in 3D view.
-
Fork the repository.
-
Create a seperate file for the assignment.
-
Push your branch and create a pull request on GitHub.
-
example.html
is one example for reference done with three.js. -
Feel free to add your own elements for extra credit.