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

Models view threshold #2101

Closed
wants to merge 9 commits into from
Closed

Conversation

Relfos
Copy link
Contributor

@Relfos Relfos commented Aug 28, 2014

Added minimum and maximum viewing distance to camera in order to optimize display conditions of models

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 14, 2014

Thanks @Relfos but we are going to implement this using more generic "display conditions" so we can support different conditions like viewer altitude, number of pixels, etc. You should be able to use the display-condition branch for now, e.g.:

var model = Model.fromGltf({
  url : uri,
  displayCondition : new DistanceDisplayCondition(0, 1000.0) // Only draw if center is < 1,000 meters away
});

Contributions to that branch are welcome. This is for #758.

I'll look at #2177 now.

@pjcozzi pjcozzi closed this Dec 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants