Comments (8)
Nice work! I know how fun narrowing that kind of thing down can be :P
from bepuphysics2.
There are some pieces of test content in that demo which will trigger that error intentionally; a point set with no volume is invalid input. Did you see that error for a point set that unambiguously has volume?
from bepuphysics2.
I tested with simple manual cube.
points[0] = new System.Numerics.Vector3(0, 0, 0); points[1] = new System.Numerics.Vector3(0, 0, boxScale); ...
Error only if Net8.0.
somewhere in rawFaceVertexIndices
in ComputeHull. in one case this 0 in other 2.
from bepuphysics2.
I'm not seeing a similar failure with CreateBoxConvexHull
in ConvexHullTestDemo
, could you give me a snippet of code that reproduces the problem within ConvexHullTestDemo
?
from bepuphysics2.
PCS.zip
my dotnet version 8.0.201 and 7.0.406 (what you 8.0.xxx version?)
if in BepuPhysics.csproj and BepuUtilities.csproj i change to net7.0 - this works.
i think main problem in dotnet runtime. unsafe buffers/operations...
from bepuphysics2.
That's odd; running the repro with 8.0.201 appears to work for me. What CPU/OS are you using?
from bepuphysics2.
Reinstall. really odd, now i think this is CPU problem. something like dotnet/runtime#98704
i have 2 legacy pc(as remote "terminal") win10(1809 17763.3650) - cpu Intel celeron e3300 and old notebook win7(7601) intel p6100 and both have some issue. need test on main server pc when i reinstall hypervisor, dockers, os`s ...
in attachment 2 compiled versions
Debug.zip
edit: tested on net8.0.preview.1 - and it works... O_O ...
preview.2 and rc.1 - nope -_-
from bepuphysics2.
after hours of Console.WriteLine
and debug.... i Found
previousEdgeDirection = Vector2.Normalize(facePoints[nextIndex] - facePoints[previousEndIndex]);
in ReduceFace
code
var v1 = new Vector2(0,2);
var v2 = new Vector2(0,0);
var previousEdgeDirection = Vector2.Normalize(v1 - v2);
Console.WriteLine(previousEdgeDirection);
show <0 ∞>
in net8.0 and <0 1>
in 7.0.
OMG.
Close issue in this place and open in
dotnet/runtime#99391
from bepuphysics2.
Related Issues (20)
- Consider incremental tree refines on insertion HOT 1
- Instability caused by ApplyImpulse HOT 1
- Tree metanodes contain obsolete data
- Regressions on 16-wide vectors HOT 1
- Consider `Compound` vs `BigCompound` heuristic helper
- Building convex hull fails for a specific mesh (.obj included) and results in memory corruption HOT 5
- Risky stackallocs
- Spin/Friction Issues with the Character Demo HOT 2
- Remove constraint while retaining other constraint references HOT 7
- Handle versioning
- NaNs after collision bug ? HOT 1
- Assertion raised in AddUnsafely HOT 11
- Flat "fractal like" mesh fails to compute convex hull (unsure if bug or expected) HOT 4
- it should be b*b -4*a*c here? HOT 1
- Individual Mesh-Mesh Collision HOT 11
- Changing demos tickrate HOT 1
- Demos do not work on Mac OSX HOT 4
- BepuUtilities: Implementation for Matrix4x4Wide? HOT 2
- Freeze and explosive memory growth when newing a ConvexHull with specific input HOT 6
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 bepuphysics2.