Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Why is my rigid body not on the surface of the object 1 month 1 week ago #635

  • hairgreatgod123
  • hairgreatgod123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 19
  • Thank you received: 0
Hi, I'm here again, brother. After the last small case, I found a problem in the interactive simulation of creating cloth and rigid body on abc. I don't know if I have overlooked the details. Currently, the default model created by Maya, such as a sphere plane, is no problem. But when creating a rigid body on abc or a pre-made model, the first one of the rigid body trio ran to the world center coordinates, which is the one in the figure below. Later, when I used cloth to constrain the rigid body, the constraint point also went to the center of the world. . . I have checked the uv and normals and so on and there is no problem. I am going to collapse. Because I cannot upload the scene this time, but I also hope to get your help. Thank you
Attachments:

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 1 month 1 week ago #636

  • Sebastian
  • Sebastian's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 77
  • Thank you received: 18
Hi,

Let me see if I understand correctly.
Your problem is that the rigid does not align with the body / input geometry and also that the Welding does not constrain to where one would expect it to be, i.e. it goes to the rigid's location, which is different from the body / input geometry.
Based on this, let me explain:
In Carbon, we split the notion of a traditional Rigid Body into Rigid + Shape + Body to give us a lot more control and advanced features.
You can read more about this here:  www.numerion-software.com/index.php/foru...-ever-wanted-to-know

There are quite a lot of interesting things you can do by either playing with the relative position of the Rigid to the Body, or by changing the Rigid Massbox.
I would like to refer you to this entry:  www.numerion-software.com/index.php/foru...-box-explanation#601

Coming back to your question:
Any Weldings will be between a Cloth and the Rigid. When creating a Rigid, we automatically take the node transform for Rigid position and rotation.
Often, when you import an alembic, the node transform is set to default, i.e. 0 translation and rotation. This explains why the Rigid is spawned at (0,0,0).
You can either manually set the Rigid position / rotation, or you can center and bake the pivot of the abc before creating the Rigid.

There are a number of forum entries with information about this:
This post, at roughly 10sec:  www.numerion-software.com/index.php/foru...odies-video-tutorial
This is also mentioned here at around 45sec:  www.numerion-software.com/index.php/foru...to-add-rigid-buttons

Does this solve your issue?

Cheers,
Sebastian

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 1 month 1 week ago #637

  • hairgreatgod123
  • hairgreatgod123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 19
  • Thank you received: 0
H ello, I'll center the coordinates of the object according to what you said to create a rigid body, and I can't adjust it. Because the screen recording software is temporarily broken, it's easy to take pictures. I'll take a look. Ha, I also copied the model of ABC in this scene. Now I upload the scene and video to you. Please help me see what's going on.

File Attachment:

File Name: body.mb
File Size:177 KB

File Attachment:

File Name: body.mb
File Size:177 KB
Attachments:

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 1 month 1 week ago #638

  • Sebastian
  • Sebastian's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 77
  • Thank you received: 18
Hi,

It seems that you have attached a file called body.mb (177KB) twice.
And neither contains any rigid or body nodes.
Was this intended?

Cheers,
Sebastian
 

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 1 month 1 week ago #639

  • hairgreatgod123
  • hairgreatgod123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 19
  • Thank you received: 0
Hello, I'll upload it again. There are files of rigid bodies and models 

File Attachment:

File Name: body_2021-12-16.mb
File Size:118 KB

File Attachment:

File Name: v2.zip
File Size:86 KB
Attachments:

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 1 month 1 week ago #640

  • Sebastian
  • Sebastian's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 77
  • Thank you received: 18
Hi,

Please see my previous message:

or you can center and bake the pivot of the abc before creating the Rigid.

So, it looks like body_geo1 has a centered pivot, it is not baked.
If you only center pivot, the node transform is still at default values, i.e. no translation or rotation.
Only once you bake the pivot will the center values be put in the transform attributes.
Alternatively, if you do not want to bake the pivot, change "Transform Source" from "Geometry" to "Manual" and copy the pivot parameter manually into the "Transform Position".

I hope this makese sense.

Cheers,
Sebastian
 

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 1 month 1 week ago #641

  • hairgreatgod123
  • hairgreatgod123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 19
  • Thank you received: 0
Thank you very much. I have solved this problem by copying location information and baking pivot.

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 3 weeks 5 days ago #643

  • hairgreatgod123
  • hairgreatgod123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 19
  • Thank you received: 0
Hey, Sebastian, I am coming again, I have recently found that the roast positioning before the rigid body is created is no problem. But after I went to sway the animation of the initial needle. That will cause the center point of the rigid to stay in the start position, which leads to the new animation to solve an emulation error. How can I solve this problem? 

Please Log in or Create an account to join the conversation.

Last edit: by hairgreatgod123.

Why is my rigid body not on the surface of the object 3 weeks 4 days ago #644

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 174
  • Thank you received: 21
Hi, I am not sure exactly what you are trying to do, but if you want to animate the needle during the simulation you should be using a actor body rather than a rigid body.
You can animate the position of an actor body. The choice depends on whether you want the needle to be a dynamic object (it affected by the simulation = Carbon Rigid) or an animated collider (Carbon Actor) that moves through space, but its position is not affected by the simulation result.

You can't animate a rigid body in the Carbon simulation. If you want to use a rigid body then you need to position it for the start frame and center/bake the pivot BEFORE you build the Carbon Rigid Body or manually reset the Rigid position / rotation. You have to do this every time you have a new rigid body start position.

Happy Holidays.
Mike

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 3 weeks 4 days ago #645

  • hairgreatgod123
  • hairgreatgod123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 19
  • Thank you received: 0
happy Holidays. Thanks for your hard work. I have structured the rigid body and saved the assets. . But I want to open a new animation file next time to reference the carbon asset that I made. I also want to change the starting position of the rigid body. . If the position of the rigid body is changed, does it mean that the rigid body must be recreated? That's very troublesome 

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 2 weeks 6 days ago #651

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 174
  • Thank you received: 21
So you don't need to recreate the rigid body, but you do need to update it.
This can be done with scripting when you change the starting position of the rigid body.
We are producing a video to show how this is done. Video should be available in a couple of days.
Txs Mike

Please Log in or Create an account to join the conversation.

Last edit: by admin.

Why is my rigid body not on the surface of the object 2 weeks 6 days ago #652

  • hairgreatgod123
  • hairgreatgod123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 19
  • Thank you received: 0
thank you for your help. Will the video be provided directly by reply or will it be posted elsewhere?

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 2 weeks 2 days ago #661

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 174
  • Thank you received: 21
Hi, please check out this page for video and script examples
www.numerion-software.com/index.php/foru...-carbon-rigid-bodies

Hope that helps.

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 1 week 5 days ago #667

  • hairgreatgod123
  • hairgreatgod123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 19
  • Thank you received: 0
Hi, thank you for your explanation. I have understood the single object operation of the video, but the script you sent doesn't seem to show how to operate

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 1 week 5 days ago #668

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 174
  • Thank you received: 21
so the whole script might look like this -

// Load Carbon plugin if not loaded yet
int $isLoaded = `pluginInfo -q -loaded Carbon`;
if($isLoaded == 0)
{
    loadPlugin Carbon;
    // Source is only needed because loading of the plugin happens
    // in a different thread while this script continues to be evaluated.
    source "carbonPublicAPI.mel";
}
// Set rigid transform based on new mesh
carbonPublicAPI_ChangeMesh("pSphereRigid11Shape", "mesh", "pSphereShape2");

// reset Carbon simulation
carbonPublicAPI_ResetSimulation("carbonSimulationShape1");

play -forward true;

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 1 week 4 days ago #672

  • k.rant91
  • k.rant91's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Hi there, I am wondering why even after centering and baking my ridge bodies pivots (in my case a set of buttons) why it's still defaulting an incorrect location? I've taken a look at this blog and this video www.numerion-software.com/index.php/foru...to-add-rigid-buttons.  I made sure to center and bake the locations before clicking on the button macro. Any ideas what I'm doing wrong? 

Please Log in or Create an account to join the conversation.

Why is my rigid body not on the surface of the object 1 week 4 days ago #673

  • k.rant91
  • k.rant91's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Sorry, my last image did not post. Try this one --> drive.google.com/file/d/1z9F0piZjxPO_fHg...L4J/view?usp=sharing
 

Please Log in or Create an account to join the conversation.

Last edit: by k.rant91.

Why is my rigid body not on the surface of the object 1 week 3 days ago #675

  • Sebastian
  • Sebastian's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 77
  • Thank you received: 18
Hi,
Thanks for sharing the screenshot.
I am trying to understand what exactly all of the components are.

I circled and numbered groups that I think probably belong together:
Are 1 and 2 all supposed to be buttons? looks like there might be duplicated ones?
Regardiung 3: Are they supposed to be matched with the Rigids in 2?
Also 4. Hard to see from the screenshot, are there more black buttons hidden under the rigids in 1?

It would be great if you could share this file or a simpler version of it so that we can have a look at it.
If you do not feel comfortable posting the file on the forum, please feel free to email it to This email address is being protected from spambots. You need JavaScript enabled to view it..
Just mention that you are  k.rant91  from the forum and we will have a look asap.

Cheers,
Sebastian
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Sebastian.

Why is my rigid body not on the surface of the object 1 week 3 days ago #679

  • k.rant91
  • k.rant91's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Hi Sebastian, 

Yes, It does seem to be making two copies of each button. Unfortunately, I don't have a way to access the file until next Tuesday. I have been able to set up the buttons manually for now but would love to figure out how I could use the button macro to speed up my workflow. I almost think it could be something to do with the way the rig is built. I will do a screen recording next week and hopefully that will give you a much better picture into my button macro problem.

Thank you!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.100 seconds