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

Yon is not respected #28

Closed
assertivist opened this issue Mar 3, 2019 · 1 comment
Closed

Yon is not respected #28

assertivist opened this issue Mar 3, 2019 · 1 comment
Labels
bug Something isn't working graphics Problems with OpenGL or generally rendering related

Comments

@assertivist
Copy link
Member

"Yon" is Avara's concept of how close you must be to be able to see/view an object. Avara had gnarly culling algorithms that would show parts of shapes as you closed in on the yon distance for that object. We will probably not pull that off easily, but a simple LOD effect can be used in place of this.

This should be a fairly simple addition to the object shader, adding another parameter for the yon value.

Of course, the favorite example of this yon effect are the missiles on top of the end structures in Net-1. It also provides an example of its effect on gameplay in the original.

@assertivist assertivist added bug Something isn't working graphics Problems with OpenGL or generally rendering related labels Mar 3, 2019
@assertivist
Copy link
Member Author

Turns out it worked all along. Here's your Net-1 moneyshot @shrizza

2020-08-03-232651_2560x1080_scrot

2020-08-03-232657_2560x1080_scrot

I dunno why I thought this would be a problem, Avara does its own culling as well at the application logic level, so those objects are not even passed to opengl for drawing if they are filtered out by the view pyramid check OR the yon check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working graphics Problems with OpenGL or generally rendering related
Projects
Status: Done
Development

No branches or pull requests

1 participant