Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Hide Objects Between Camera and Avatar

Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
02-03-2006 11:59
I'd like to see an option to hide the prims of unattached objects that are between the camera and the avatar when the camera is focussed on your own avatar (that is, normal view or when focussed on your own avatar with alt-click). Many, if not most, other third-person games seem to work this way, so that when you're inside a building you don't have to choose between an obscured view or having the camera zoomed in tight against the character.

It seems to me that the client has all the information it needs to do this, the server shouldn't need to be aware of it. The implementation should probably try to avoid hiding the whole of an object, and it definitely shouldn't hide avatars, objects an avatar is sitting on, or attachments.

Ideally it should work at the prim level, so entire linked houses don't vanish from view, but if that's not possible then the objects should probably be ghosted to 30% transparency rather than completely hidden.

The biggest advantage would be to remove the claustrophobic nature of natural and realistic building. Right now you have to build rooms overscale to avoid having the camera crushed against you when you enter them, and moving through vegetation is tricky at best.

The implementation need not be pixel-accurate. Simple ray-intersection calculations against bounding boxes or spheres for each prim would be more than close enough.
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
Comment from another thread...
02-07-2006 09:57
From: Cottonteil Muromachi
I suspect this might cause quite a mess because, while we can identify what each object and prim is supposed to represent, be it furniture, plant or decor, the SL client would have a hard time intelligently knowing what to occlude. For example, you don't want your furniture in the house to flicker into invisibility when you stand in front of it, while you do want to look past the floor slab or wall blocking you.
Luckily it doesn't have to intelligently occlude stuff. It can stupidly occlude stuff... for example, it could make objects transparent in proportion to the amount of the avatar that's hidden, and even set a minimum occlusion percentage. For example, you could say "below 30%, display, above 80%, hide completely, otherwise set transparency to (%hidden - 30%) * 2... So, for example, a slab that completely hides you goes 100% transparent, a chair that hides your leg it isn't affected at all, and when you stand behind a counter that's covering you from the waist down it goes 40% transparent.