Search found 71 matches

by Ehsanizadi
Tue Jul 07, 2015 8:55 am
Forum: General Bullet Physics Support and Feedback
Topic: Importing shapes into Bullet
Replies: 4
Views: 2108

Re: Importing shapes into Bullet

Thanks,

I will try convex decomposition.

The time takes for that does not matter that much. so, I think it is ok for me
by Ehsanizadi
Mon Jun 29, 2015 2:05 pm
Forum: General Bullet Physics Support and Feedback
Topic: Importing shapes into Bullet
Replies: 4
Views: 2108

Re: Importing shapes into Bullet

It is composed of irregular polyhedrons. So, there is no regular shapes like boxes or so.
The time for such conversion does not matter to me that much (as far as it is less than a few hours)

Is there any tutorial for convex decomposition? What file format is accepted for convex decomposition?
by Ehsanizadi
Mon Jun 29, 2015 12:51 pm
Forum: General Bullet Physics Support and Feedback
Topic: Why my bullet simulation is not going on GPU?
Replies: 3
Views: 1595

Why my bullet simulation is not going on GPU?

Hi, I am working on Ubuntu 14.04 64bit and installed Bullet. I have a Nvidia video card (GTX TITAN). During the time I run my bullet simulation (which takes around 40 minutes), if I run "nvidia-smi" on the terminal, I won't get Bullet as a process to run on my GPU. Apparently I guess it just runs on...
by Ehsanizadi
Mon Jun 29, 2015 8:14 am
Forum: General Bullet Physics Support and Feedback
Topic: Importing shapes into Bullet
Replies: 4
Views: 2108

Importing shapes into Bullet

Hi, I have a meshed geometry file (in stl, obj, etc format) composed of thousands of separated rigid bodies. But all in one file. How can I import it into bullet with less effort in a way that I tell bullet to recognize every separate object as an unique rigid body? If it is not possible, what do yo...
by Ehsanizadi
Thu Jun 18, 2015 9:13 am
Forum: General Bullet Physics Support and Feedback
Topic: Energy inside the system
Replies: 2
Views: 959

Energy inside the system

Hi, I have simulation set consisting of thousands of objects, densely packed, which are subjected to stress. At different times during simulation, movements of rigid bodies are detected, and sometimes not. How can I calculate the energy inside my system? Kinetic energy and potential energy? Is there...
by Ehsanizadi
Fri Jun 05, 2015 9:27 am
Forum: General Bullet Physics Support and Feedback
Topic: C++ error!
Replies: 7
Views: 2223

Re: C++ error!

Thanks for your comments.

My problem solved
by Ehsanizadi
Thu Jun 04, 2015 6:09 am
Forum: General Bullet Physics Support and Feedback
Topic: C++ error!
Replies: 7
Views: 2223

Re: C++ error!

Thanks, But still my problem is not solved. I defined my function like: void beadPositionWriter(btRigidBody* rigidBody, int NumberOfRigidBodies, int index){ std::ofstream beadsPositions("beadsPositions/beadsPositions." + std::to_string(index) + ".csv"); beadsPositions << "xCoord" << "," << "yCoord" ...
by Ehsanizadi
Mon Jun 01, 2015 5:37 pm
Forum: General Bullet Physics Support and Feedback
Topic: C++ error!
Replies: 7
Views: 2223

Re: C++ error!

Even if I do so, in my function (removing the brackets), I get the same error: directShearTest.cpp:308:37: error: expected primary-expression before ‘,’ token beadPositionWriter(metalBeadRB*, exactNumBead, time1); ^ make: *** [bullet3] Error 1
by Ehsanizadi
Mon Jun 01, 2015 5:26 pm
Forum: General Bullet Physics Support and Feedback
Topic: C++ error!
Replies: 7
Views: 2223

Re: C++ error!

But isn't it needed to tell my compiler that my btRIgidboy is an array ?
by Ehsanizadi
Mon Jun 01, 2015 12:24 pm
Forum: General Bullet Physics Support and Feedback
Topic: C++ error!
Replies: 7
Views: 2223

C++ error!

Hi all, I understand that this error is C++-related, however, I think I get the answer sooner here. I wrote a function which writes the positions of an array of rigid bodies (array of rigid bodies were generated by btAlignedObjectArray<btRigidBody*>): void beadPositionWriter(btRigidBody* rigidBody[]...
by Ehsanizadi
Thu May 14, 2015 12:44 pm
Forum: General Bullet Physics Support and Feedback
Topic: Contact forces in Bullet
Replies: 7
Views: 2770

Re: Contact forces in Bullet

Another question on how getting forces: How to get forces/impulses in a specific direction? Assume a case of hundreds of balls moving in different direction and are hitting an object (object X). How can I get force/impulse applied to object X in x,y or z direction? Or the force impulses depend on th...
by Ehsanizadi
Thu May 07, 2015 6:57 am
Forum: General Bullet Physics Support and Feedback
Topic: Contact forces in Bullet
Replies: 7
Views: 2770

Re: Contact forces in Bullet

Thanks Erwin for your reply,

It makes it great for my simulation.
I am currently working on geotechnical engineering related simulations using bullet, so far it is fast and accurate.

Thank you again for providing such a great software, and make it free.

Regards,
Ehsan
by Ehsanizadi
Wed May 06, 2015 10:16 am
Forum: General Bullet Physics Support and Feedback
Topic: Contact forces in Bullet
Replies: 7
Views: 2770

Re: Contact forces in Bullet

Yes, the contact forces are available for the contact points. You can iterative over the contact manifolds and over each contact in the manifold. Use the 'm_appliedImpulse' member, and scale it by the delta time to get the applied force (assuming a fixed time step). The FractureDemo uses this force...
by Ehsanizadi
Tue May 05, 2015 7:04 am
Forum: General Bullet Physics Support and Feedback
Topic: Contact forces in Bullet
Replies: 7
Views: 2770

Re: Contact forces in Bullet

Very nice!
Thank you all for your responses.

Ehsan
by Ehsanizadi
Mon May 04, 2015 2:40 pm
Forum: General Bullet Physics Support and Feedback
Topic: Contact forces in Bullet
Replies: 7
Views: 2770

Contact forces in Bullet

Hi, I'm using Bullet for an engineering simulation and I need to know the contact forces. Is it possible in Bullet? For example dropping a box on table, can we get the force/impulse induced by the collision between box and table? What about resting objects on each other? For example a box put on the...