Write a code to meet the following requirements.
-
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 room next to it. Rooms must be seperated by semi-transparent wall to see the range of rooms.
-
Make sure there aren't any roofs parts. We must be able to see down from above (at an angle).
-
Make sure when it loads, the camera is at the right perspective. It should be like a drone at certain height in the sky. It should be able to look through the halls from above (at an angle).
-
Should be able to view the file in a web browser. It should probably output a file that can be loaded into HTML in 3d. X3DOM, or VRML, or .x3d, etc.
-
Encouraged to implement Quaternion Rotation for extra credit.
- 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. -
Extra Credit: If showcased understanding of Quaternion Rotation.