Search the Community
Showing results for tags 'scene size'.
-
Hi again.. Have a good day and evenings With code can we detect babylon file size (like MB), and item count inside of the babylon file?
-
Hi Everyone! Can someone explain how BabylonJS calculates the resolution of the shadow map? I think I understand it but just want to be sure because I'm having difficulties getting sharp shadows in one of our projects. First off see the overall 3D area of the game/project, I pointed out the dark spots are baked shadows, so ignore those. Also, the area you see in the camera (where most of the objects are located) is circled. Also, the items marked #1 and #2 are two spheres i made that were moved out to the far edges of the area. - Next, you see what it looks like in the BJS camera if the spheres at the edges (1 and 2) are NOT casting shadows. The shadow generator (set to 4k shadow map size) looks nice and crisp. (These are realtime shadows, not baked) - However, the minute I turn enable casting shadows for those two sphere's at the edge of the map, the same exact shadow generator now produces this: - Obviously this looks less than desirable. So initial assumption is that the "resolution" of objects on the shadow map (which I'm assuming is one single dyanmic texture) is calculated by the bounding boxes of the objects casting shadows? Where the edge of the texture goes to the edge of bounding box on the furthest object from the directional lights field of view?
- 6 replies
-
- shadow maps
- shadows
-
(and 1 more)
Tagged with: