Jump to content

Real-Time Body Physics (DirectX 11)


Recommended Posts

Posted
On 10/31/2025 at 8:34 AM, CPVC said:

 

Yup, I'm aware that elder sims don't work. Right now, RTBP only looks for adult male and female sims. It can differentiate between the two by looking for male and female features in the mesh. Female sims have breasts and butts that protrude further than male sims. Male sims have broader shoulders than female sims.

 

In the future, I'll add elder and teen sim detection and you'll be able to customize physics based on age. I think teens work fine because they line up well enough with adults. I'll have to examine the meshes to see what to look for when detecting teens.

 

The rays I'm using for breast detection originate from (0.023, 0.351, 1.0) and (-0.023, 0.351, 1.0) in direction (0.0, 0.0, -1.0) for the left and right breasts. This is in game space. Converted to Blender space, that's (-0.092, -4.0, 1.4) in direction (0.0, 1.0, 0.0). RTBP assumes that the bones with the most influence are the breast bones.

 

So, for RTBP to work, the mesh needs to be identifiable as female and the closest vertex on the triangle the ray intersects with has to have the breast bones as the most influential bones.

 

As for your second mesh working in the DX9 version of RTBP, I examined the old source code and I did tweak the ray origins slightly between that version and the DX11 version. It used to be (0.022, 0.35, 1.0) as the origin, now it's (0.023, 0.351, 1.0). That might have been enough to make your mesh not function with RTBP anymore.

 

I'll look into a better way of detecting breasts that accommodates more variation in breast positions. Right now things have to line up fairly well with the default meshes. I've already got a couple ideas.

 

Attached is an image of your first mesh and where the ray would intersect it.

 

Ray to Breast.png

 

Edit: Whoops, forgot to mention another thing RTBP does when creating breast bones. In the event that the two bones gathered from the initial ray casts against each breast are equal, it'll go with the first pair of bones that are not equal. For example, if both breasts are influenced by the spine bone and their respective breast bones, but the spine is the most influential for both, RTBP will go with the ones that are different, the left and right breast bones.

Thank you for your detailed explanation. I will try to take it into account, however, it severely limits me regarding some user requests. Perhaps you could expand the possibilities a bit more with more variations. Nevertheless, I thank you for your work and perseverance. I think I speak for many when I say that you have made many players happy with this, myself included. I try to achieve something similar with my own content. I also enjoy experimenting with Blender, and if it works and looks good in the game, I'm satisfied. Ultimately, all we want is to give the game more realism and a more natural, human appearance.

Posted
On 10/31/2025 at 10:47 AM, RealSiViX said:

I owe you an apology, I thought the elder sims had working breast physics but after playing some today I can confirm they do not (which I see CVPC has already confirmed as well), sorry for the confusion.

The funny thing is, I accidentally designed a CC for breasts that bypasses this and allows RTBP to work on older women. It's an older CC, but I'll dig it out. I'll make the CC available here for anyone who wants to use it as a workaround until CPVC is ready.

Posted
6 hours ago, jeno3 said:

Thank you for your detailed explanation. I will try to take it into account, however, it severely limits me regarding some user requests. Perhaps you could expand the possibilities a bit more with more variations. Nevertheless, I thank you for your work and perseverance. I think I speak for many when I say that you have made many players happy with this, myself included. I try to achieve something similar with my own content. I also enjoy experimenting with Blender, and if it works and looks good in the game, I'm satisfied. Ultimately, all we want is to give the game more realism and a more natural, human appearance.

 

Thanks for the kind words. I'll definitely work on coming up with something new. It's a delicate balance trying to reliably find the breasts and avoid any false positives, like bouncing shoulders or something. There has to be a better way to accommodate modders like yourself.

Posted (edited)
7 hours ago, RavenTwain said:

Anyway to disable/edit male breast physics?

 

Male breast physics should be disabled by default. However, sometimes a mesh can be incorrectly classified as female and sometimes physics will be applied to it. This usually manifests as bouncing shoulders.

 

At this time, RTBP can only analyze the mesh geometrically. The actual gender of the sim in-game is irrelevant. If it finds what it thinks are breasts, it'll make them move. It does attempt to determine the sim's gender before applying any physics, though. So if RTBP thinks a mesh is male, it's not going to try to find breasts on it.

 

Butt physics on males can be disabled. In your settings file, find the line that says "enableMaleButtPhysics = true" and change the "true" to "false".

Edited by CPVC
Posted
5 hours ago, CPVC said:

 

Male breast physics should be disabled by default. However, sometimes a mesh can be incorrectly classified as female and sometimes physics will be applied to it. This usually manifests as bouncing shoulders.

 

At this time, RTBP can only analyze the mesh geometrically. The actual gender of the sim in-game is irrelevant. If it finds what it thinks are breasts, it'll make them move. It does attempt to determine the sim's gender before applying any physics, though. So if RTBP thinks a mesh is male, it's not going to try to find breasts on it.

 

Butt physics on males can be disabled. In your settings file, find the line that says "enableMaleButtPhysics = true" and change the "true" to "false".


Anything i can do to sim to force/tell RTBP that its a male. And for male butts i have the smallest of jiggle. lol

Posted
22 hours ago, CPVC said:

 

Thanks for the kind words. I'll definitely work on coming up with something new. It's a delicate balance trying to reliably find the breasts and avoid any false positives, like bouncing shoulders or something. There has to be a better way to accommodate modders like yourself.

I hope you find a way. Perhaps we're expecting too much. The possibilities are unfortunately very limited. I notice it again and again when creating the shapes. It's also a shame that you can't extend the mesh with a proper body preset. That's probably the problem, since your physics are based on the original sim, which defines the area. As soon as someone designs custom content that affects half of the edges of the original sim mesh, these unwanted effects will likely occur. I can only vaguely imagine how you're designing it, but I don't know your approach in detail. That's probably beyond my knowledge.

Posted

"RTBP Commander isnt connected to RTBP" and everything in the app/gui program is greyed out and it tries to reconnect every few seconds but always fails. (This is all b4 the Nov 4, 2025 TS4 update)

Posted
3 hours ago, RavenTwain said:

"RTBP Commander isnt connected to RTBP" and everything in the app/gui program is greyed out and it tries to reconnect every few seconds but always fails. (This is all b4 the Nov 4, 2025 TS4 update)

 

RTBP has to be installed correctly and the Sims 4 has to be running.

Posted

It worked before, than (b4 the nov 4th TS4 update), it stopped working and had the issues i mentioned. Its also getting [WinError 10061] when 'trying to connect' and yes, i have tried to open b4 and after starting game to no success either way.

Posted
1 hour ago, RavenTwain said:

It worked before, than (b4 the nov 4th TS4 update), it stopped working and had the issues i mentioned. Its also getting [WinError 10061] when 'trying to connect' and yes, i have tried to open b4 and after starting game to no success either way.

 

Hmmm... Are you seeing the RTBP logo in the upper left corner of the screen when starting the game? If you don't see it, you might want to try reinstalling. Also, the version of RTBP you find on the main page requires the game to be in DirectX 9 mode. To do that, find your installation directory and execute "...\Game\Bin\TS4_DX9_x64.exe" or enable DirectX 9 in the game options.

 

If you're using the experimental DirectX 11 build, your game needs to be in DirectX 11 mode. Execute "...\Game\Bin\TS4_x64.exe" and disable DirectX9 in the game options.

Posted (edited)

yea i took it off DirectX9 for smoother gameplay, slightly better lighting, ext. lol. Ill turn it back to see if it fixes it. thnx

Switching it back to d9 should fix it, since i see logo now (again). thnx.

Edited by RavenTwain
Posted
On 11/3/2025 at 11:46 AM, jeno3 said:

I hope you find a way. Perhaps we're expecting too much. The possibilities are unfortunately very limited. I notice it again and again when creating the shapes. It's also a shame that you can't extend the mesh with a proper body preset. That's probably the problem, since your physics are based on the original sim, which defines the area. As soon as someone designs custom content that affects half of the edges of the original sim mesh, these unwanted effects will likely occur. I can only vaguely imagine how you're designing it, but I don't know your approach in detail. That's probably beyond my knowledge.

 

Would you mind sharing your ".package" files with me? I'd like to test them out in game.

Posted
On 11/5/2025 at 11:00 PM, RavenTwain said:

yea i took it off DirectX9 for smoother gameplay, slightly better lighting, ext. lol. Ill turn it back to see if it fixes it. thnx

Switching it back to d9 should fix it, since i see logo now (again). thnx.

 

If you want to use the dx11 version, make sure you install the RTBP v0.4-p9-e1 from the main mod page (it is at the bottom of that page), including the dx9 dll from that package, then drop the dx11 dll in your game's Bin folder (The Sims 4\Game\Bin)

 

Working perfectly for me so far on dx11 aside from the minor issue that sometimes occurs with butts that CVPC is currently working on.

Posted
12 hours ago, RealSiViX said:

 

If you want to use the dx11 version, make sure you install the RTBP v0.4-p9-e1 from the main mod page (it is at the bottom of that page), including the dx9 dll from that package, then drop the dx11 dll in your game's Bin folder (The Sims 4\Game\Bin)

 

Working perfectly for me so far on dx11 aside from the minor issue that sometimes occurs with butts that CVPC is currently working on.

It doesnt come with a dx11 file

Posted
1 hour ago, RavenTwain said:

It doesnt come with a dx11 file

I think they mean from this post:

 

On 10/17/2025 at 11:35 PM, CPVC said:

While I'm still hunting down that last little annoying bug, I'll let you guys play with what I have so far. This is extremely experimental and only meant for people that know what they're doing. Test this at your own risk, backup your saves, etc., etc., etc. Don't be surprised if something unusual happens.

 

In this ZIP file, you'll find a "d3d11.dll" file. Put that in your "...\Game\Bin\" folder and execute "TS4_x64.exe" to start the DX11 version of the game.

 

Breasts appear to work flawlessly, but the butt causes some visual glitches. This is the bug I've been trying to squash. Oh, and for some outfits one of the butt cheeks is deflated. Another thing I need to fix. Ball physics are completely disabled. Those need some work.

 

RTBP Commander will work with this build, but some of the commands have not been implemented yet. Adjusting the variables will work, though.

 

Once I've taken care of the bug, I'll start adding everything back and put out an official release. After that, the DX9 version will be depreciated and all new work will go towards the DX11 version.

 

RTBP DX11 Preview 2025-10-18.zip 6.69 MB · 66 downloads

 

So like use the d3d9.dll from RTBP v0.4-p9-e1 and use the d3d11.dll from the post I quoted.

Posted
13 hours ago, BakunyuuWaifu said:

I think they mean from this post:

 

 

So like use the d3d9.dll from RTBP v0.4-p9-e1 and use the d3d11.dll from the post I quoted.

 

Correct. Sorry, I should have been more clear...

Posted
On 11/7/2025 at 2:16 AM, CPVC said:

 

Would you mind sharing your ".package" files with me? I'd like to test them out in game.

I'll compress all the files into a RAR archive and make them available to you. I don't know exactly which ones will work and which won't. But there aren't that many, so it should be easy to filter them.

 

Posted
6 minutes ago, jeno3 said:

I'll compress all the files into a RAR archive and make them available to you. I don't know exactly which ones will work and which won't. But there aren't that many, so it should be easy to filter them.

 

Here are a few examples. They've all worked under different versions of RTBP, but never all with the same version. If some worked under one version, others didn't, and vice versa.

to_CPVC.rar

Posted
9 hours ago, jeno3 said:

Here are a few examples. They've all worked under different versions of RTBP, but never all with the same version. If some worked under one version, others didn't, and vice versa.

to_CPVC.rar 4.06 MB · 0 downloads

 

Cool, thanks. I think I might have come up with a solution, but I need to test it out.

Posted

As soon as I put d3d11.dll in the Bin folder, my Dx11 version exe refuses to start. It gives me an error. But, as soon as I remove the .dll file, the Dx11 .Exe version starts just fine. Any idea why this is?

Posted
8 hours ago, chelzmcnamara said:

As soon as I put d3d11.dll in the Bin folder, my Dx11 version exe refuses to start. It gives me an error. But, as soon as I remove the .dll file, the Dx11 .Exe version starts just fine. Any idea why this is?

 

What is the error message you get when you try to start the game?

Posted
13 hours ago, CPVC said:

 

What is the error message you get when you try to start the game?


So the error went away after I also added the d3d9.dll file to the bin folder as well. Is this the correct way to do it? Because I only had the d3d11.dll file before. 

image.png.0662f8e46c5876ebe615d0d40b3c39d2.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...