Question: Using JavaScript, WebGL and three.js Eerie Lighting Create a map that is enclosed by a wall. Make the floor and the wall different colors Create
Using JavaScript, WebGL and three.js
Eerie Lighting
- Create a map that is enclosed by a wall.
- Make the floor and the wall different colors
- Create several tree objects (from the previous assignment) as obstacles.
- Create a directional light located at 0,50,50.
- Scale its affect so the environment appears dim
- Create a point light and place it on several points in the maze
- For all point lights, make sure the affect fades with distance from the point light.
- (Hint if you found the magnitude of the surface to light vector that should be the distance)
- Create a box that is placed in the sky.
- Have a spotlight emit from the bottom of the box onto the ground.
- The box should move back and forth
- Create a finish marker, and a starting marker.
- IF you make it to the finish marker (first person control) then print you win on the website.
- If you get caught by the spot light, you start over.
- (Dont worry about the point lights)
- Your goal is to create a spooky environment that may be akin to a stealth survival game.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
