Search the Community
Showing results for tags 'world light'.
-
Artifacts and Attenuation Issues with Omnidirectional Lighting
bebert-ama-inc posted a topic in Rendering
I have been running into some visibility and artifact issues when using the Point Omnidirectional Light with both instantiating the light in the Editor and using C++. I am trying to mimic sunlight at a Solar System scale, and the Omnidirectional Light is required as the project needs accurate lighting. I have 1 unit equal to 1 km, and a basic scene with an Earth to scale at a distance of 150,000,000 km from the light source. I started in increments to try to find the correct parameters for the omnidirectional light. I started with the default Omnidirectional Light with the Mode set to Dynamic lighting, and an ObjectMeshDynamic Sphere of radius 1 at 2 units away from the Omnidirectional Light. Going off of the Light Sources Parameters Documentation, it gives the impression that setting the Attenuation Power to 0 or close to it will prevent the light fall off the further the distance from the source. It also gives the impression that any objects within the Attenuation Distance with an Attenuation Power at 0 will be illuminated. I slowly incremented the sphere's radius and distance from the light source until I reached the desired radius and distance. I had to set the Omnidirectional Light's Intensity to inf, Attenuation Power to 0, and Attenuation Distance to inf to get the best results. After about 200,000 units away from the light source, the sphere was no longer visible. I tried to experiment with the Omnidirectional Light with a Sphere Shape, and it did seem to light up the scene a bit better than the Point Shape. However, the light still did not reach the Sphere Object at its required distance. The only way I could get any Omnidirectional Light to reach the Sphere Object at its required distance was by setting the radius of the Omnidirectional Light Sphere Shape to inf. It produced the attached image with inconsistent artifacts. My question is if there is any way to have the Omnidirectional Light to light the scene at the required scale and distance? Or are there any settings that could allow for Omnidirectional Light to reach this distance? I know the World Light will reach these distances. However I need to use an Omnidirectional Light to represent the sun in a scene that models the solar system, and the World Light does not produce this desired effect. -
In My scene I have my main World with a world light and a bunch of world objects, and i have a secondary viewport in which i'm trying to light a single object with a single projection light. As long as I have the world light enabled no matter what I set my light mask/viewport mask to on my single object it gets lit by the main world light. I would expect that I could use the light mask to disable the world light from the object so i can light it with a separate light source. At first I thought this was the only problem, but then experimenting with it, I was never able to get the light mask to work on any types of lights or objects. I was able to turn off the projection light from casting on the world objects by using the viewport mask, but it appears that only works for some light sources, not the world light. Thanks, Dusty
- 2 replies
-
- world light
- light mask
-
(and 1 more)
Tagged with: