Is there a way to detect light on a surf object?
Show older comments
I have multiple (60) 3-dimentional surf objects (Spheres), each placed at on of the vertices of truncated icosahedron. (Truncated icosahedron is the same shape as soccer ball with 60 corners). I am using surf, to have a spheres with black color. Then I am generating a red local light source with matlab built in light function. I can clearly see red light reflected on the spheres. Is there a way to get some color values of the surf objects which I can use to see how different vertices of the truncated icosahedron are receiving different amount of light, and the angles the light makes with the spheres (direction of arrival)? I tried to use surf.Cdata but values are same with or without light. I am looking for a way to quantize the light that each sphere is receiving. Any help will be appreciated.
2 Comments
KSSV
on 13 Feb 2019
Show us one image with the data you have. It should be possible.
Amarbir Singh
on 13 Feb 2019
Answers (0)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!