Search the Community
Showing results for tags 'pointlight'.
Found 6 results
Amarth2Estel posted a topic in Questions & AnswersHello Everyone ! I am currently working on an 'indoor' project and can't manage to solve an issue. I would like to render a room with a ceiling light. I am working with StandardMaterial only. I use a single pointLight to avoid heavy computations with multiple lights. Every mesh both cast and receive shadows. To see non-directly-illuminated mesh, I also use an ambientColor on every material on the scene. Thanks to Deltakosh's answers on a previous post, I managed to get correct shadows using Close Exponential Shadow Map by stretching my scene into a unit cube and setting the depthScale of the shadowGenerator to 1. I use shadowGenerator.setDarkness(0) to ensure shadows are the most dark as possible. However, even if these shadows are correct, they are way too light to be seen in my scene. I think this is both due to the depthScale and the fact that receiving-shadows-mesh material have an ambientColor. I thought about apply a filter directly in the shadows texture to increase level of gray in the entire image but I don't know how to get this texture and how to apply filter before the render. Do you know how to do that ? Or any ideas on how to reach my goal ? Because the room I would like to render is fully dynamic, I think I cannot use tricks like static lightMapping. PS : Here is a PG showing my problem. I would like the shadow to be darker. Thank you very much !
Shadows still apears when object is under the ground
CHIMAIRA posted a topic in Questions & AnswersHi everyone I have some weird issue using shadows in Babylon. Please take a look at the sample below : http://www.babylonjs-playground.com/#ITTNDX#1 It seems that the shadow is not cutted off properly ! it still appears even if the object goes under the ground. Is there anything to do to fix that ? Thanks for your time A
what needRefreshPerFrame do ?
meteoritool posted a topic in Questions & AnswersHi ! My question is in the title ! I've been testing with a moving pointLight, but its lighting still 'updates' either set to true or false. I wonder what needRefreshPerFrame does exactly just curious !
Shadows and Point Light
jerome posted a topic in Questions & AnswersHi, I saw that, with BJS v2.3, the shadows were working also for the point light. I can't see them in this example : http://www.babylonjs-playground.com/#1QXRNW#1 Did I miss something ? I know that I used a back sided big box to receive the shadows but it works well with the directional light.
PointLight makes sharp light circle
ryvo posted a topic in Questions & AnswersHi, PointLight in the Babylon preview release (also release currently available in the sandbox) makes a sharp light circle like this: In release 2.2 it was smooth like this: I need to use the latest release because in release 2.2 shaddows did not work for me. Please advise how can I make it smooth in the latest release. Thank you in advance! Vojtech