dotrana

11-06-2013, 10:38 AM

Hi,

I have a 3D humanoid graphics defined by a few million 3D points (I am using CUDA interop for rendering and handeling calculations). I have an arbitrary spotlight source (it is not used for actually illuminating the scene). I also know the vertices that will be illuminated by this source. I want to separate out the points that lie on the surface closest to my light source. e.g. if the light source is on the right side of the graphic and is pointing towards the graphic. it will be illuminating the right arm, the chest/abdomen and the left arm. I know the vertices of the graphic that are illuminated. And i want to separate out the vertices that are on the right arm. I am able to separate the vertices that face the light source. Is there an efficient way to get the indexes of the vertices that lie on the right arm.

Thank you in anticipation.

regards

Vj

I have a 3D humanoid graphics defined by a few million 3D points (I am using CUDA interop for rendering and handeling calculations). I have an arbitrary spotlight source (it is not used for actually illuminating the scene). I also know the vertices that will be illuminated by this source. I want to separate out the points that lie on the surface closest to my light source. e.g. if the light source is on the right side of the graphic and is pointing towards the graphic. it will be illuminating the right arm, the chest/abdomen and the left arm. I know the vertices of the graphic that are illuminated. And i want to separate out the vertices that are on the right arm. I am able to separate the vertices that face the light source. Is there an efficient way to get the indexes of the vertices that lie on the right arm.

Thank you in anticipation.

regards

Vj