Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started