light source


I have a question regarding the light source,

If in a model there are multiple 3D objects, they all seem to have their own light source. (See attached image as an example)

Is there any way to have a unique light source?

Thank you,
Objects do not have their own light sources. The light sources are defined with adding DirectionalLight, PointLight or SpotLight to the scene. A light source can be also added by the camera when ShowLight is set to Auto (and there is no other light) or Always.

From what I see in the image, I would say that the upper right position that seems dark is shared with multiple triangles - when calculating normal (the direction of the triangles that is used to calculate the light factor) this average the normal direction (average of the direction off all shared triangles). To create sharp edges and uniform coloring along the triangle, you should duplicate positions so that each triangle have its own positions and no position is shared with other triangles. Sharing positions is used for smooth surfaces where there are no edges between triangles.

I would advise you to use the MeshInspectorOverlay (see samples in Ab3d.PowerToys / Utilities).
Andrej Benedik

Forum Jump:

Users browsing this thread:
1 Guest(s)