Skip to content

puncoz/threejs-3d-rooms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Code Exercise

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. Cube Image

  • 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.

Notes

  • 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.

Instructions

  1. Fork the repository.

  2. Create a seperate file for the assignment.

  3. Push your branch and create a pull request on GitHub.

  4. example.html is one example for reference done with three.js.

  5. Extra Credit: If showcased understanding of Quaternion Rotation.

References

Releases

No releases published

Packages

No packages published

Languages

  • HTML 92.6%
  • CSS 7.4%