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

Loading a ConvexShape and creating a ShapeHull is broken #10

Open
FDMX2 opened this issue Jul 27, 2015 · 2 comments
Open

Loading a ConvexShape and creating a ShapeHull is broken #10

FDMX2 opened this issue Jul 27, 2015 · 2 comments

Comments

@FDMX2
Copy link

FDMX2 commented Jul 27, 2015

Hi,

loading a mesh like shown in the ConvexDecompositionDemo demo is broken. Executing the demo shows the problem:
Expected (and working with BulletSharpGen):
expected

Broken Version with BulletSharpPInvoke:
brokenhullexample

@AndresTraks
Copy link
Owner

It's the same as issue #2. Something goes wrong in the C++ HACD code when using P/Invoke, but I haven't found the problem. HACD does work in C++/CLI.

This test shows that HACD already fails in libbulletc, so it's not a bug in the C# part of the wrapper:
https://github.com/AndresTraks/BulletSharpPInvoke/blob/master/libbulletc/test/bulletctest.cpp

@AndresTraks
Copy link
Owner

It was an issue with the renderer that caused the leftmost mesh to get messed up. The vertex stride wasn't taken into account for StridingMeshInterfaces. This is fixed in af632cf.

But the shapes at the back are still wrong because of HACD.

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