Comments (5)
Hello, and thank you for the bug report. Are you on x86? If so, can you try adding the following code before doing anything (you need to include x86intrin.h
)?
_mm_setcsr(_mm_getcsr() | (_MM_FLUSH_ZERO_ON | _MM_DENORMALS_ZERO_ON));
Regardless if this solves your issue or not, could you point me to more information to reproduce the bug? And maybe point me to a scene I could use to reproduce this?
Edit: Nevermind, I think I managed to reproduce that bug with an orthographic camera on one of my test scenes.
from bvh.
I'm working on a fix. It seems that bvh::RobustNodeIntersector
is not affected by the issue. You can try using that in the mean time. To do that, create the single ray traverser with that as a template parameter:
bvh::SingleRayTraverser<Bvh, 64, bvh::RobustNodeIntersector<Bvh>>
from bvh.
This issue should now be fixed by 3b2f3d0 (and following bug fix 354de26). This performance problem was caused by too many false positives in the ray-node intersection during BVH traversal. The fix introduced here will just prevent the traversal from processing nodes in that case, but keep in mind that bvh::FastNodeIntersector
is anyway an intersector that loses precision for ray directions that are close to zero. That should not be a problem in most use cases, but you may want to switch to the robust intersector when you observe artefacts due to the ray missing the geometry. Could you please check that the issue is fixed on your end as well?
from bvh.
Yes it works!
I'm using the bvh to project a mesh onto another, so the rays are generated for each vertices (the ray length are very short as the 2 meshes are somewhat identical).
from bvh.
Alright, then I'm closing this.
from bvh.
Related Issues (20)
- Dot Product Elimination in Sphere Intersector HOT 1
- Flags array seems uninitialized in bottom up algorithm. HOT 3
- Height Field Support HOT 2
- Undefined behavior in morton_split HOT 3
- pragma STDC FP_CONTRACT ON in utilities.hpp is not supported in Visual Studio 2022 HOT 5
- Instances HOT 8
- bvh_always_inline inline HOT 3
- Numerical issue at triangle edges? HOT 11
- Two questions: MB and primitive splitting HOT 1
- raw, bvh node data to upload to the gpu HOT 1
- `build()` in debug build of v2 feels slower than v1 HOT 2
- Recovering "split axis" from MiniTreeBuilder HOT 1
- Face culling options? HOT 1
- Your code is building fine on MSYS2 MINGW64 HOT 1
- Two tests need pthread to compile on linux HOT 2
- Library does not handle rays parallel to axes HOT 5
- Identifiers near and far in bvh.h cause issues when precompiled headers are used HOT 3
- config.min_leaf_size > 1 Leads to assertion failure HOT 1
- What is the use case? is it slower than embree? HOT 1
- Cancel build +progress monitor HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bvh.