Frictional Games Forum (read-only)
[LVL ED] Primitives working with occlusion culling - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [LVL ED] Primitives working with occlusion culling (/thread-14338.html)



Primitives working with occlusion culling - Adrianis - 03-29-2012

Im in a position where, to create a convincing enough environment Im using Primatives with textures to make up walls, instead of static object. There doesnt seem to be a way that I can find to make primatives cast shadow (although there is a setting for primatives called 'cast shadow') for, say, spot lights. That can be designed around, but it got me worried that the occlusion culling wouldnt work properly

I was wondering if anyone knows whether primatives that effectively block the players sight actually work with the occlusion culling system, in the same way that static objects like proper walls do?



RE: Primitives working with occlusion culling - Obliviator27 - 03-29-2012

For some reason, you cannot cast shadows with planes. You'd have to use the technical black plane to create a shadow. You could position the black planes 0.001 units behind the plane, so that the shadow would remain convincing.



RE: Primitives working with occlusion culling - Adrianis - 03-29-2012

(03-29-2012, 11:23 PM)Obliviator27 Wrote: For some reason, you cannot cast shadows with planes. You'd have to use the technical black plane to create a shadow. You could position the black planes 0.001 units behind the plane, so that the shadow would remain convincing.
Thanks for your response. As I said, the issues with shadows can be worked around (i had thought of using sections of wall, but a black plane is a better idea), thats not so much the issue though I appreciate your answer.

The occlusion culling system means that the engine doesn't load things that the player can't see, to a certain degree. This improves performance on large levels. What I'm asking is, since the primatives dont block light like normal walls do, do they still work with the occlusion culling system? i.e. do things behind them (out of view for the player) not get loaded




RE: Primitives working with occlusion culling - Your Computer - 03-30-2012

(03-29-2012, 11:55 PM)Adrianis Wrote: The occlusion culling system means that the engine doesn't load things that the player can't see, to a certain degree. This improves performance on large levels. What I'm asking is, since the primatives dont block light like normal walls do, do they still work with the occlusion culling system? i.e. do things behind them (out of view for the player) not get loaded

Light shining on an object that can't be seen (though the light can be seen) doesn't dictate whether the object being shined on should be rendered. If you want some insight on the workings of occlusion culling of the game, turn on the global fog with occlusion culling and make the starting distance the same as the ending distance.