The Question:
How can I control layers in GE ? - the thing I need to use is the visibility. I want to select with a python script all objects on a certain layer… and there’s the catch - I’m using blender 2.25 because of the freakin’ physics of newer ones.
nope, you can’t tell what layer something’s on nor can you change it
[however, you can use a near sensor to detect objects and the visibility sensor to show/hide them… but that means your python script [or some other logic] would have to be connected to every one of the objects]
the thing’s a 3d presentation of an interior design project. since the graphical side is very sophisticated I need to switch of the things you can’t see.
I am doing it by the radar function (hiding things not in a proper angle).
And I need to hide the interior of rooms behind closed doors.
Since it’s impossible to do the layer thing I am going to use messaging.
When door opens it will send a message and the interior will then hide. But this way I have to add a message sensor for every object in the room. I fear the logic occupation of CPU time will be even more than the rasterizer’s.
|| And one more thing : messing with meshes to lower poly count isn’t an option - I am responsible here only for scripting - the visual artist did hell of a job (the house is a beauty) and did his best to lower the poly, so it’s my part to make it work faster.