Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render portals only when necessary #6

Open
bliptec opened this issue Jul 12, 2014 · 2 comments
Open

Render portals only when necessary #6

bliptec opened this issue Jul 12, 2014 · 2 comments

Comments

@bliptec
Copy link
Owner

bliptec commented Jul 12, 2014

Portals don't need to render when they're completely obstructed by geometry or outside the player's view.

@MattJeanes
Copy link
Contributor

Props by default don't render when the player is not looking at them, would it be possible to use the same method for this or is it not exposed to Lua? Other than that, I can only think of using the dot product but that's fairly expensive iirc, and it wouldn't work for portals behind geometry. I suppose you could do a trace of some sort for that but again that would be fairly expensive.

@bliptec
Copy link
Owner Author

bliptec commented Jul 12, 2014

as of 434c695 the portal is drawn like a normal entity, but the view is still rendered. It'd be nice to check if the player is behind the portal too, since the math for that is significantly less expensive than re-rendering the world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants