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

draw distance options? #179

Open
kfarr opened this issue Aug 31, 2024 · 2 comments
Open

draw distance options? #179

kfarr opened this issue Aug 31, 2024 · 2 comments

Comments

@kfarr
Copy link
Contributor

kfarr commented Aug 31, 2024

Is there a way to set draw distance limits?

  • For example, for small scenes as a user I wish to specify a small area for rendering tiles such that tiles outside the boundaries are not loaded at all
@kfarr
Copy link
Contributor Author

kfarr commented Oct 2, 2024

I wonder if it could be a hack to adjust the PerspectiveFrustum.far value. Right now it is set directly from camera.far:

         const loadersFrustum = new PerspectiveFrustum({
          fov: (camera.fov / 180) * Math.PI,
          aspectRatio: camera.aspect,
          near: camera.near,
          far: camera.far,
        });

(source

far: camera.far,
)

Maybe instead we can set this value to 1/4 of camera far, an arbitrary value, or a parameter passed to the a-frame component

@Avnerus
Copy link
Collaborator

Avnerus commented Oct 2, 2024

Hi, I think this would work, but what I would really like to have is an option for a user hook function in here.
Then we can also add real-time occlusion tests.

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

No branches or pull requests

2 participants