dilevin / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
1 stars 5 forks source link

How to change the transform of complex objects? #81

Open EgeSayin opened 1 month ago

EgeSayin commented 1 month ago

Hi, so we can change the transform of spheres using center and radius attributes, but what about more complex objects like mirrors? Also, apart from position, can we also change the scale and rotation of those objects? Asking for the creative part.

vpineda1996 commented 1 month ago

You can customize your lighting and material type to simulate mirrors:

Look into the data folder, specifically look at https://github.com/dilevin/computer-graphics-ray-tracing/blob/master/data/mirror.json