Is there a way to detect light on a surf object?

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

Show us one image with the data you have. It should be possible.
light.pngThe bigger ball is the light source with red light coming out. Small red areas on smaller black balls is what I want to detect. So where the light from source hits the sensors. Thanks

Sign in to comment.

Answers (0)

Asked:

on 13 Feb 2019

Commented:

on 13 Feb 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!