Reference no: EM132265016
Advanced Graphics Assignment - Lab: Creating a version of Voxel Painter
Objective for this lab:
- To be hone you spatial reasoning skills.
- To recreate a voxel painter.
- Do all the assigned problems on your own.
Tasks: If you are not comfortable with your Lab 5 then, there is a new base to start your application with. It contains an axis-helper, a plane, a cube, a directional and a hemisphere light. There is even a controller setup to toggle rotation of scene.
Start with the above screen shot (attached). In addition to the lights and the axis helper there is also a GridHelper.
Active-Planes: Fill the above grids with invisible mini-planes. The planes should be placed in an array. This array will be used to check for intersection with your raycaster.
You must not use magic-numbers in your code. All values should be calculated.
Mouse down handler: Create and wire-up a mouse down handler to do the following:
Detect which of the mini-planes was clicked.
Create a cube and place it at the same position as the plane. For the cube texture map, you must use an image file with path name "../assets/textures/square.png"
Move the plane to the top of the previously add cube.
If you are able to combine the last two steps in a single function of the mini-plane object, this will contribute heavily towards your code style marks.
Attachment:- Assignment File.rar