Coming soon - Get a detailed view of why an account is flagged as spam!
view details
2
Render/Hide objects in a volume.
Post Body

I'm currently working on a side-scrolling project where the player can move through the world via elements in the foreground and background, and have the camera set up in such a way that they can see into open doors in the background, creating a nice feeling of cohesion.

Unfortunately, with the nature of the orthographic camera; Assets in the previous 'layer' interrupt the player's perspective - Is there anyway to set a volume for, say, a hallway, that will cease all rendering of everything inside of it once the player leaves?
Ideally, I'd like to make it so only the hallways/rooms the player is in are visible, stripping the front facing wall so that the player can see their character.

Here is my experimental setup. You see the background door for the player to enter, and the 'main' hall I'd like to obscure entirely.

I've tried manipulating the clipping values for the camera, but those have produced undesirable results.

Any feedback or suggestions would be greatly appreciated! Heck there's probably a smarter way of doing this.

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
50,936
Link Karma
13,768
Comment Karma
37,100
Profile updated: 4 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago