Code Monkey home page Code Monkey logo

Comments (10)

AndresTraks avatar AndresTraks commented on July 28, 2024

The C++/CLI compiler is trying to inline this piece of code:
http://bulletphysics.org/Bullet/BulletFull/btGImpactShape_8h_source.html#l00134

But C++/CLI can't allocate the btAABB object with proper memory alignment for SSE like C++ can. I'll try to find a workaround.

from bulletsharp.

tam7832 avatar tam7832 commented on July 28, 2024

Thank you for doing research

from bulletsharp.

AndresTraks avatar AndresTraks commented on July 28, 2024

GetAabb should work now. Is it possible for you to try it? Are you using the old 2.82 version because you need .NET 2.0?

To use GetVertex, you need to do more work. GetVertex requires locking the TrimeshPrimitiveManager, which is only available if you compile without the DISABLE_BVH definition in Stdafx.h. If you only need to get the vertices and not do anything fancy, then you can just use the vertices that you originally passed to the GImpactMeshShape.

This is a largely untested part of BulletSharp since it's not a typical use case. That's why there are these problems.

from bulletsharp.

tam7832 avatar tam7832 commented on July 28, 2024

I'm using the Net 4.5.
Switch to the new version is not a problem, but to a format that can use the earlier version
Problems might occur.

For now, the vertices using the GImpactMeshShape.MeshInterface.GetLockedReadOnlyVertexIndexData
To use so like there is no problem, it is used to determine the AABB.

When the problem is resolved
I want to use it.

from bulletsharp.

tam7832 avatar tam7832 commented on July 28, 2024

Can you use GetAABB In bulletsharp-x64-2.83 / Release SharpDX?

Of after calling GImpactMeshShape () in my environment
The process will be exited somewhere.

Somewhere it seems there is a problem,
It is not been able to find yet.

from bulletsharp.

AndresTraks avatar AndresTraks commented on July 28, 2024

Version 2.83.5 includes the fix for GetAabb.

from bulletsharp.

tam7832 avatar tam7832 commented on July 28, 2024

Hello. I'm sorry, correspondence became slow.
I tried the Version 2.83.5.

I used bulletsharp-x64-2.83.5 / Release SharpDX.

We've created a shape in GImpactMeshShape.
After you create a shape, somewhere in the timing
Process will exit.

Whether the same phenomenon occurs at your place?

from bulletsharp.

AndresTraks avatar AndresTraks commented on July 28, 2024

The GImpact demo works fine:
https://github.com/AndresTraks/BulletSharp/blob/master/demos/Generic/GImpactTestDemo/GImpactTestDemo.cs

Can you share the code where you set up the GImpactMeshShape?

from bulletsharp.

tam7832 avatar tam7832 commented on July 28, 2024

We've checked for proper operation GImpactTestDemo.
There was no problem.

However, when the access to gImpactmesh.LocalBox
The process is terminated.

var minBox = trimesh.LocalBox.Min;

from bulletsharp.

tam7832 avatar tam7832 commented on July 28, 2024

Another problem is there, but GetAABB () There is no problem.
Here will and resolution.
Thank you.

from bulletsharp.

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.