[SOLVED] COEN290- Assignment 3: Ray Casting

25.99 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

Rate this product

In this assignment, you will implement ray casting algorithm.

write a program to generate the ray casting result.

The objects in the scene are spheres.  You need to define in your program:

the light source intensity (R, G, B), 
light source location (Lx, Ly, Lz), 
eye location (Ex, Ey, Ez), 
at least 2 spheres, 
location/radius of spheres,

surface property (K value in the lighting model),  view plane size/location/orientation (perpendicular to  one axis)

Your result should be showing 2 shaded spheres (or more),  with one sphere casting a shadow on the other

( after your program works, just change the sphere location or light location to get shadow)

 

ground plane is optional.  Reflection and refraction are optional.

 

A diagram image is provided for your reference.

 

Write comment to explain your code.

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.