Jump to content

Recommended Posts

6 hours ago, CPVC said:

 

 

Hmmm... So vertex selection is based on the default (Maxis) meshes. If you're using a custom default mesh via a mod, it may not work, because the positions of the vertices are different.

 

I'll work on it.

Which mods could cause it? I removed sliders, custom feet, nipples, bouncing boobs mod.. It is the same, when I create in CAS, it works in the beginning, but when I click on other type of clothing for example when I click from everyday to formal it stops and is like that entire gameplay. Sorry for bothering you, but I really want to make it work. 

Link to comment

This is what I ended up with settings wise:

 

[rtbp.leftBreast]
mass=0.6
damping=16.0
springK=250.0
maxLength=0.16

[rtbp.rightBreast]
mass=0.6
damping=16.0
springK=250.0
maxLength=0.16

[rtbp.leftButt]
mass=0.2
damping=15.0
springK=350.0
maxLength=0.16

[rtbp.rightButt]
mass=0.2
damping=15.0
springK=350.0
maxLength=0.16

 

Small breasts are perfect. Butt movement is fairly subdued. It tends to go apeshit in CAS and explode, dropping FPS from 200+ to 13. It seemed, to me at least, restricting max length and going hard on the dampening stopped the z-axis forward/backward tomfoolery. (Uneducated number changing.)

 

Does Sims not use a normal base skeleton for humanoids with specific, identical bones or is it defined in the meshes or some such?

Link to comment
21 hours ago, Oops19 said:

Does getClosestVertexToTextureCoord() actually work? It seems to be the better way to get the vertices as the position on UV maps do not change.

Yes, it does work and it is the method I used to find vertices initially. I thought that using texture coordinates to find vertices was what was causing most of the bugs, but I was wrong. I think I'll work on a hybrid approach that uses both.

16 hours ago, nobodysfool said:

Which mods could cause it? I removed sliders, custom feet, nipples, bouncing boobs mod.. It is the same, when I create in CAS, it works in the beginning, but when I click on other type of clothing for example when I click from everyday to formal it stops and is like that entire gameplay. Sorry for bothering you, but I really want to make it work. 

Absolutely no problem, friend! I'm not entirely sure what the problem is, but I'm working on it.

Link to comment

I don't know how this all works so I'm going to make some blind suggestions that hopefully you can make use of, would it be possible to make it detect when 2 verts are sharing an exact location, this is what happens on all the seems and if its possible to find the seems somehow then maybe could have the phys apply to both verts the same or not at all to hopefully eliminate any gaps.

 

Link to comment
6 hours ago, CPVC said:

Yes, it does work and it is the method I used to find vertices initially. I thought that using texture coordinates to find vertices was what was causing most of the bugs, but I was wrong. I think I'll work on a hybrid approach that uses both.

Absolutely no problem, friend! I'm not entirely sure what the problem is, but I'm working on it.

My bad. I remember the 1st version and did wonder whether the issues were triggered by HQ while you replied that the points are already normalized. Maybe it helps to check 3-5 or even 20 points initially  instead of one point and select then one points which has the most nearby neighbors. A little bit of logging to a file would be nice, though. My HH mods writes 1 MB/minute of mostly "useless" information.

Link to comment

Another preview release for anyone willing to try it. In this version, I attempted to tame the breasts by simulating them in local space. Also, I tried to compensate for the scale portion of the breast matrices. Hopefully the breasts behave more reasonably.

 

Other changes:

 

* Added a power setting to all simulators. This increases or decreases the power of the force vector for each simulator. 1.0 is the default, 2.0 is twice as powerful, 0.5 means half as powerful, etc. Just add a "power=X" line to your "Settings.ini" file for each simulator. See the included "Settings.ini" file for an example.

 

* Better logging. Instead of just writing everything to stdout, there is now a log file, "Log.txt", in the "RTBP" folder.

 

I'm not sure if this is the best way forward in regards to breast physics. I played around with it a bit and liked what I saw. Much less jitter, but also much less movement in general. I didn't play around with the variables too much.

 

Thank you for trying this preview. If you find settings you like, please share them. Thank you for your help.

RTBP Preview 2020-09-17.zip

Link to comment

RTBP Preview 2020-09-17 & RTBP 0.3, RTBP attempt to load "d3d9_2.dll"(reshade) is error ,not load game!

22:12:24:354 [09852] | INFO  | Initializing crosire's ReShade version '4.7.0.846' (64-bit) built on '2020-06-24 18:37:45' loaded from "M:\Games\The Sims 4_1\Game\Bin\d3d9_2.dll" into "M:\Games\The Sims 4_1\Game\Bin\TS4_x64.exe" ...
22:12:24:529 [09852] | INFO  | Registering hooks for "user32.dll" ...
22:12:24:529 [09852] | INFO  | > Libraries loaded.
22:12:24:530 [09852] | INFO  | > Found 14 match(es). Installing ...
22:12:24:573 [09852] | INFO  | Registering hooks for "ws2_32.dll" ...
22:12:24:573 [09852] | INFO  | > Libraries loaded.
22:12:24:573 [09852] | INFO  | > Found 8 match(es). Installing ...
22:12:24:616 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d2d1.dll" ...
22:12:24:616 [09852] | INFO  | > Delayed.
22:12:24:616 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d9.dll" ...
22:12:24:620 [09852] | INFO  | > Delayed.
22:12:24:620 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d10.dll" ...
22:12:24:620 [09852] | INFO  | > Delayed.
22:12:24:620 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d10_1.dll" ...
22:12:24:620 [09852] | INFO  | > Delayed.
22:12:24:620 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d11.dll" ...
22:12:24:621 [09852] | INFO  | > Delayed.
22:12:24:621 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d12.dll" ...
22:12:24:621 [09852] | INFO  | > Delayed.
22:12:24:621 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\dxgi.dll" ...
22:12:24:622 [09852] | INFO  | > Delayed.
22:12:24:622 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\opengl32.dll" ...
22:12:24:622 [09852] | INFO  | > Libraries loaded.
22:12:24:622 [09852] | INFO  | > Found 360 match(es). Installing ...
22:12:24:676 [09852] | INFO  | Initialized.
22:12:24:677 [09852] | INFO  | Redirecting Direct3DCreate9(SDKVersion = 32) ...
22:12:24:677 [09852] | ERROR | Unable to resolve hook for 0x00007FFF7E608BB0!



 

Link to comment
17 hours ago, CPVC said:

 

Thank you for trying this preview. If you find settings you like, please share them. Thank you for your help.

RTBP Preview 2020-09-17.zip 863.1 kB · 28 downloads

This works pretty well for me. Once in a while the breasts or but go a little goofy with funny rear end bulges and garments sporting fantastic trains, but things normalize in a few minutes without intervention. I can consistently produce peculiar instabilities by using the camera. Even those, which can be pretty wild, resolve themselves in a few seconds.

 

I did adjust the rear end with this change "springK=150.0".

Link to comment
15 hours ago, markroot said:

RTBP Preview 2020-09-17 & RTBP 0.3, RTBP attempt to load "d3d9_2.dll"(reshade) is error ,not load game!

22:12:24:354 [09852] | INFO  | Initializing crosire's ReShade version '4.7.0.846' (64-bit) built on '2020-06-24 18:37:45' loaded from "M:\Games\The Sims 4_1\Game\Bin\d3d9_2.dll" into "M:\Games\The Sims 4_1\Game\Bin\TS4_x64.exe" ...
22:12:24:529 [09852] | INFO  | Registering hooks for "user32.dll" ...
22:12:24:529 [09852] | INFO  | > Libraries loaded.
22:12:24:530 [09852] | INFO  | > Found 14 match(es). Installing ...
22:12:24:573 [09852] | INFO  | Registering hooks for "ws2_32.dll" ...
22:12:24:573 [09852] | INFO  | > Libraries loaded.
22:12:24:573 [09852] | INFO  | > Found 8 match(es). Installing ...
22:12:24:616 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d2d1.dll" ...
22:12:24:616 [09852] | INFO  | > Delayed.
22:12:24:616 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d9.dll" ...
22:12:24:620 [09852] | INFO  | > Delayed.
22:12:24:620 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d10.dll" ...
22:12:24:620 [09852] | INFO  | > Delayed.
22:12:24:620 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d10_1.dll" ...
22:12:24:620 [09852] | INFO  | > Delayed.
22:12:24:620 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d11.dll" ...
22:12:24:621 [09852] | INFO  | > Delayed.
22:12:24:621 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d12.dll" ...
22:12:24:621 [09852] | INFO  | > Delayed.
22:12:24:621 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\dxgi.dll" ...
22:12:24:622 [09852] | INFO  | > Delayed.
22:12:24:622 [09852] | INFO  | Registering hooks for "C:\WINDOWS\system32\opengl32.dll" ...
22:12:24:622 [09852] | INFO  | > Libraries loaded.
22:12:24:622 [09852] | INFO  | > Found 360 match(es). Installing ...
22:12:24:676 [09852] | INFO  | Initialized.
22:12:24:677 [09852] | INFO  | Redirecting Direct3DCreate9(SDKVersion = 32) ...
22:12:24:677 [09852] | ERROR | Unable to resolve hook for 0x00007FFF7E608BB0!



 

Hmmm... Guess it needs more work. I'm examining the source code to Reshade now. Hopefully I'll find a way to make Reshade play better with my mod, or maybe a way to make my mod play better with Reshade.

9 hours ago, pihwht said:

This works pretty well for me. Once in a while the breasts or but go a little goofy with funny rear end bulges and garments sporting fantastic trains, but things normalize in a few minutes without intervention. I can consistently produce peculiar instabilities by using the camera. Even those, which can be pretty wild, resolve themselves in a few seconds.

 

I did adjust the rear end with this change "springK=150.0".

I spent some time playing this evening and I noticed the same bugs. I think I need to revamp the garbage collector. I programmed the mod to forget buffers that hadn't been rendered in 60 seconds, with the assumption that they were no longer needed. Guess I was wrong.

 

If a sim is out of frame for 60 seconds or more, RTBP will forget the associated vertex buffer and erase the simulators, but won't undo the changes it made to the vertex buffers. If the sim still exists, and the game tries to render it again, without the simulators there to tell it where everything should go, you'll see glitches like this.

 

Thanks for the feedback.

Link to comment

I'll spare you all the technical info, but I'm still working on refining this. I agree with everyone that say that the breasts are out of control, especially in regards to the forward movement. The last preview I released kind of fixed the problem, but now I feel like the breast movement is a little too subtle.

 

I'm experimenting now with using the scale of the breast matrices to calculate the mass of the breasts. Bigger breasts are going to have more mass and are going to be more resistant to change. That should decrease the forward movement.

 

I think I've fixed most of the bugs in the garbage collector, among other things.

 

Once I figure all this out, I'll release a new preview. After that, a new release with source code. Thank you for following my mod.

Link to comment
31 minutes ago, CPVC said:

I'll spare you all the technical info, but I'm still working on refining this. I agree with everyone that say that the breasts are out of control, especially in regards to the forward movement. The last preview I released kind of fixed the problem, but now I feel like the breast movement is a little too subtle.

 

I'm experimenting now with using the scale of the breast matrices to calculate the mass of the breasts. Bigger breasts are going to have more mass and are going to be more resistant to change. That should decrease the forward movement.

 

I think I've fixed most of the bugs in the garbage collector, among other things.

 

Once I figure all this out, I'll release a new preview. After that, a new release with source code. Thank you for following my mod.

Don't rush, take your time. Looking good so far.

Link to comment
8 hours ago, CPVC said:

I'm experimenting now with using the scale of the breast matrices to calculate the mass of the breasts. Bigger breasts are going to have more mass and are going to be more resistant to change. That should decrease the forward movement.

Sorry if thsi sounds dumb, because I have no experience in this area. What's the difference (in terms of convenience / ease of use) between what you propose to do, and simply using the number from the breast slider scale as a factor to multiply the mass?

Link to comment
7 hours ago, 2cool4u_1 said:

Sorry if thsi sounds dumb, because I have no experience in this area. What's the difference (in terms of convenience / ease of use) between what you propose to do, and simply using the number from the breast slider scale as a factor to multiply the mass?

That's actually exactly what I'm doing. The breast sliders control the scale portion of the breast matrices, so when you make the breasts bigger in CAS, the breasts' mass increases along with them.

Link to comment

Alright, I released a new preview release, just because. This is now the version I recommend people use.

 

Changes:

 

* I seem to have fixed the problem with the garbage collector forgetting buffers before the game was actually done with them. Expect less funky butt glitches.

* I fixed the problem with the simulators going out of control when the frame rate drops for a second, like when you're in CAS and you choose a new outfit.

* I tamed the breasts slightly by compensating for the scale. They're still not perfect, but better.

* Tweaked a few things. You are, of course, free to keep your old Settings.ini file.

 

Real-Time Body Physics

Link to comment

This is excellent. Thanks for sharing.

 

3 things:

 

1) Since you provided the source, I'd like to use some of it and make a sims 3 version, I'd like to write my own .cpp hooks but use yours as a guide and credit you, is this okay?

 

2) I'm testing your settings out with every animation on this site extensively and trying to get the most overall realistic physical settings for both rough hard animations and a very subtle everyday effect for casual moving lying on the bed. I'm not sure how to change the settings in game, can you explain how to communicate with the mod? I'll gladly share settings when I'm done

 

3)  could you add a callback to move to alt settings when the sim is naked or not, because of course whether or not the sin has on a bra/shirt and underwear/pants alters the free movement, of course

 

bonus 4th - as a long term goal, I'd love to get this working for hair too. likely expensive algorithm, but so sexy and worth it. ?

Link to comment
5 hours ago, simshero said:

Works with sliders and custom body?

I'm not really sure. Haven't tested it. Perhaps other beta testers could answer?

3 hours ago, IAmCornholio said:

This is excellent. Thanks for sharing.

 

3 things:

 

1) Since you provided the source, I'd like to use some of it and make a sims 3 version, I'd like to write my own .cpp hooks but use yours as a guide and credit you, is this okay?

 

2) I'm testing your settings out with every animation on this site extensively and trying to get the most overall realistic physical settings for both rough hard animations and a very subtle everyday effect for casual moving lying on the bed. I'm not sure how to change the settings in game, can you explain how to communicate with the mod? I'll gladly share settings when I'm done

 

3)  could you add a callback to move to alt settings when the sim is naked or not, because of course whether or not the sin has on a bra/shirt and underwear/pants alters the free movement, of course

 

bonus 4th - as a long term goal, I'd love to get this working for hair too. likely expensive algorithm, but so sexy and worth it. ?

1: Sure, go right ahead. I released the source code under the terms of the GNU GPLv3. In all honesty, I'm not sure that was the best license to release it under. I just wanted to make it so opportunists couldn't steal my work, claim it as their own, and charge people for it.

 

As I understand it, under the terms of the GPL, you are allowed to expand upon my work, but you have to give credit and release any changes you make. If any of you think another license is more appropriate, please let me know.

 

2: So, first of all, move the "RTBP Cheats Mod" folder to "(Your Documents)/Electronic Arts/The Sims 4/Mods/". Then, in game, you can send commands to the mod through the cheat console. See the "README.html" file for a list of commands.

 

Note that this method doesn't work in Create A Sim. Script mods aren't loaded until you're actually in game. You can, however, connect directly to TCP port 8008 (BOOB) using a tool like netcat to talk directly with the command server. Since the Sims 4 console appears to be case insensitive, you'll have to type everything in lowercase... Damn, I should really come up with a better interface...*

3 hours ago, 2cool4u_1 said:

This is the biggest issue I have with settings; Trying to find a balance that satisfies me, that works for both.

3: It's difficult to tell when a sim is naked. If I find a way to do that reliably, I will make this happen.

 

https://en.wikipedia.org/wiki/Foreshadowing

Link to comment

"3: It's difficult to tell when a sim is naked. If I find a way to do that reliably, I will make this happen."

 

Any chance Whicked Whims would have the answer?  It has Exhibitionism.  Also wonder if it's underwear feature could be connected to add Support/restraint to appropriate parts.

Link to comment

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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use