Git Product home page Git Product logo

Comments (19)

N8python avatar N8python commented on August 23, 2024 1

I have... no idea what could be causing this.. How far away are those tiles from the camera in world-units.

from n8ao.

N8python avatar N8python commented on August 23, 2024 1

I'm so happy it works!

from n8ao.

liuyehua avatar liuyehua commented on August 23, 2024
image

from n8ao.

liuyehua avatar liuyehua commented on August 23, 2024

I have... no idea what could be causing this.. How far away are those tiles from the camera in world-units.

image

I tried to look down from the vertical direction, and when the camera height was around 3360000, the map tiles began to hover on the blackened edge...

from n8ao.

N8python avatar N8python commented on August 23, 2024

could you perhaps send me a .zip of your project? so i could debug it myself?

from n8ao.

liuyehua avatar liuyehua commented on August 23, 2024

I have... no idea what could be causing this.. How far away are those tiles from the camera in world-units.

I have found the problem, and this problem occurs when I turn on the logarithmicDepthBuffer...

from n8ao.

liuyehua avatar liuyehua commented on August 23, 2024

could you perhaps send me a .zip of your project? so i could debug it myself?
I am so sorry,This is not my personal project, it's a project of my company, I'm just working for it...
The problem lies in the logiarithmicDepthBuffer, can you roughly guess what the reason is? If I don't turn on this, AO is normal, but if I don't turn on this, objects in my scene will flicker...

from n8ao.

liuyehua avatar liuyehua commented on August 23, 2024

I have observed some useful phenomena, when I set camera near number more big , The later the black tiles appear, May this be an accuracy issue caused by the large difference between camera far and near...

from n8ao.

N8python avatar N8python commented on August 23, 2024

Intriguing... log depth buffer probably relies on very high-precision math that breaks down at larger scales.

from n8ao.

N8python avatar N8python commented on August 23, 2024

Did you try subdividing your plane - it could be that the depth-interpolation math breaks down at such large scales.

from n8ao.

liuyehua avatar liuyehua commented on August 23, 2024

Did you try subdividing your plane - it could be that the depth-interpolation math breaks down at such large scales.

the map tiles is replies quad tree... The solution I am thinking of now is to dynamically change the near of the camera when the lens is zoomed out

from n8ao.

N8python avatar N8python commented on August 23, 2024

I could also just disable AO entirely when the distance is too large... I don't know.

from n8ao.

liuyehua avatar liuyehua commented on August 23, 2024

I could also just disable AO entirely when the distance is too large... I don't know.

yes that's a good way too😀

from n8ao.

liuyehua avatar liuyehua commented on August 23, 2024

I could also just disable AO entirely when the distance is too large... I don't know.

Now I am wondering why sky.js is not affected. .

from n8ao.

N8python avatar N8python commented on August 23, 2024

Cuz I have a special piece of code to exclude the sky from AO - I could also do that with things that are very, very far away.

from n8ao.

liuyehua avatar liuyehua commented on August 23, 2024

Cuz I have a special piece of code to exclude the sky from AO - I could also do that with things that are very, very far away.

So can your AO plug-in set a threshold uniform, allowing users to decide how far away the distance AO will no longer take effect. . .

from n8ao.

N8python avatar N8python commented on August 23, 2024

I'm thinking about that... though it appears the issue is w/ large triangles in general, so I don't know.

from n8ao.

N8python avatar N8python commented on August 23, 2024

Pushed a possible fix. Let me know if it works - try version 1.6.7.

from n8ao.

liuyehua avatar liuyehua commented on August 23, 2024

Pushed a possible fix. Let me know if it works - try version 1.6.7.

very nice,it works!!!, Thank you very much for your contribution
image

from n8ao.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.