Jump to content

Real-Time Body Physics (DirectX 11)


Recommended Posts

Posted

Hello! Thank you for your work! When Sims is wearing clothes, the physics of the chest works fine if she is naked then the chest does not move but the entire upper body moves. Rolled back to the previous version.

Log.txt

Posted

v0.3-p6 2021-02-21

it seems like when display is going to off (sleep mode time off) game freeze

I still hear UI interaction and sims but image stay still and I can't do anything since I can't see anything in game

or it just me?

Posted

Hey, great mod! When in fullscreen or fullscreen windowed mode, the game whitescreens if I tab out and back in. Additionally, it stays on top after tabbing back in, making exiting it quite hard. Sounds still work fine, the mouse pointer turns into other symbols where the buttons are, with which I am able to guess where the exit buttons are. I'm currently using an Nvidia GPU, which might be relevant. This is with the latest preview, I'll now try the previous one.

 

Edit:

  

5 hours ago, 0xAF said:

v0.3-p6 2021-02-21

it seems like when display is going to off (sleep mode time off) game freeze

I still hear UI interaction and sims but image stay still and I can't do anything since I can't see anything in game

or it just me?

 

This is probably related.

 

Edit #2: Attached Log.txt, doesn't seem to catch anything. Bug appears everywhere, including main menu.

Log.txt

 

Edit #3: Just confirmed that the error doesn't occur on v0.3-p5 (2020-12-19)

Posted
1 hour ago, eldr3d said:

Sounds still work fine, the mouse pointer turns into other symbols where the buttons are, with which I am able to guess where the exit buttons are. I'm currently using an Nvidia GPU

x2

exactly the same

Posted
17 hours ago, 0xAF said:

v0.3-p6 2021-02-21

it seems like when display is going to off (sleep mode time off) game freeze

I still hear UI interaction and sims but image stay still and I can't do anything since I can't see anything in game

or it just me?

 

14 hours ago, eldr3d said:

Hey, great mod! When in fullscreen or fullscreen windowed mode, the game whitescreens if I tab out and back in. Additionally, it stays on top after tabbing back in, making exiting it quite hard. Sounds still work fine, the mouse pointer turns into other symbols where the buttons are, with which I am able to guess where the exit buttons are. I'm currently using an Nvidia GPU, which might be relevant. This is with the latest preview, I'll now try the previous one.

 

Edit:

  

 

This is probably related.

 

Edit #2: Attached Log.txt, doesn't seem to catch anything. Bug appears everywhere, including main menu.

Log.txt 2.65 kB · 1 download

 

Edit #3: Just confirmed that the error doesn't occur on v0.3-p5 (2020-12-19)

 

12 hours ago, 0xAF said:

x2

exactly the same

 

Thanks for the bug reports and thanks for sharing your log files. Looking through your logs, I can see that the extra debugging features I've added are working.

 

As for the whitescreening issue, I've noticed this problem in my testing as well. According to my research, when an application is running in fullscreen mode, the device context can be lost when you alt+tab out and will need to be reset upon returning to the application. I'm not sure why this didn't happen in the previous version...

 

While I'm working on fixing this, I suggest you all run the Sims 4 in windowed fullscreen mode. To switch to this mode, you'll have to move the "d3d9.dll" file out of the "Bin" folder or rename it so it won't be loaded. Then you'll need to start The Sims, and switch to windowed fullscreen mode. After you've successfully done that, exit out of The Sims and move the DLL back into the "Bin" folder or rename it back to "d3d9.dll". Next time you fire up the Sims 4, RTBP will be loaded and it won't lose the device context when you alt+tab out.

Posted
11 hours ago, CPVC said:

I suggest you all run the Sims 4 in windowed fullscreen mode.

sorry I do not mention it, but I run in windowed fullscreen mode all the time

so in my case there is no "whitescreen" but just last game rendered frame

alt+tab seems working fine, but when device is going to off (power saving) game freeze

Posted
19 hours ago, 0xAF said:

sorry I do not mention it, but I run in windowed fullscreen mode all the time

so in my case there is no "whitescreen" but just last game rendered frame

alt+tab seems working fine, but when device is going to off (power saving) game freeze

 

Oh, ok, I see what you mean. I think that both of these issues are related. According to the official Microsoft Direct3D 9 documentation, alt+tabbing out of a Direct3D 9 application that is fullscreened OR the computer going into a power saving mode in any display mode can cause the device to be lost.

 

Don't worry, I'll fix it. This is now my number one priority.

Posted

Been looking at this project come together for some while now but I haven't actually tried it because I'm on a mac lol. Anyway, still super cool to see it improving! Any idea if it would ever come to mac?

Posted
19 hours ago, bluupika said:

Been looking at this project come together for some while now but I haven't actually tried it because I'm on a mac lol. Anyway, still super cool to see it improving! Any idea if it would ever come to mac?

 

It would be possible, but it would be difficult. Mac uses a completely different graphics rendering API. For RTBP to ported to Mac, I'd have to rewrite the graphics portion of the code completely. Another problem is that I don't have access to an Apple machine to test it on.

 

It should be possible, however, to run the Windows version of the Sims 4 on MacOS using a program called Wine. I myself use Wine to run the Sims on my Linux machine.

 

https://en.wikipedia.org/wiki/Wine_(software)

Posted

Hey there, just want to say I'm really glad you've set out to create such an ambitious mod! Looks great from what I've seen. It seems like for whatever reason, even though my log file is detecting everything in-game, there seems to be no effect whatsoever, even in CAS.  Also, the game isn't detecting the Cheats Mod, even if I remove every other mod from the folder. Did I mess up somewhere in the installation process? Thanks for your time.

p1.PNG

Log.txt

Posted
On 3/1/2021 at 6:10 PM, whiteblood said:

Hey there, just want to say I'm really glad you've set out to create such an ambitious mod! Looks great from what I've seen. It seems like for whatever reason, even though my log file is detecting everything in-game, there seems to be no effect whatsoever, even in CAS.  Also, the game isn't detecting the Cheats Mod, even if I remove every other mod from the folder. Did I mess up somewhere in the installation process? Thanks for your time.

p1.PNG

Log.txt 2.85 kB · 1 download

 

The fact that you have a log file indicates that you've installed the DLL correctly. I'm not sure why it isn't working for you, but it's also not working on the computer I borrowed to test RTBP on. I think that maybe the rendering pipeline is different for different hardware. I'm working on it.

 

As for the Cheats Mod not working, you'll need to be in-game for that to work. Script mods don't seem to work in Create a Sim.

Posted
6 hours ago, CPVC said:

but it's also not working on the computer I borrowed to test RTBP on.

in my case mod causes strange behavior, after some time it do some kind of reset or something (breast just shaking in different directions) and go normal simulation again

so, it's normal behavior? or it's just stop working and do reset and then again worked for so time and again reset...

I'm use v0.3-p5c 2020-12-19

Posted

This may be a stupid question, or it's just early and my brain isn't awake yet. When changing the numbers on the settings file, to get more butt jiggle do I take the numbers up or down? I myself like a jello booty.

Posted
10 hours ago, ShaggyDhs said:

This may be a stupid question, or it's just early and my brain isn't awake yet. When changing the numbers on the settings file, to get more butt jiggle do I take the numbers up or down? I myself like a jello booty.

 

Increase the "mass" and "springK" variables to increase the jigglyness. You might also try decreasing the damping. I'll quote myself from an earlier post with a more thorough explanation:


So, mass is how heavy the body part is. How resistant it is to its position changing.



Damping is how fast the bouncing stops. Kinda like friction. Higher values make the bouncing stop quicker.

The springK constant defines the spring characteristics of the simulation. Basically how elastic the spring is and how it will respond when force acts upon it. Google "Hooke's Law" for more information. Higher values will make the spring act more springy. "For every action, there is an equal and opposite reaction."

Max length defines how far the body part is allowed to get away from its intended position. Basically, how far the spring can stretch before it won't stretch anymore.

Power is is the multiplier for the force that acts on the simulations at "1.0" the force is unchanged. "2.0" is double, "0.5" is half. I don't recommend playing with this one. I put it in for debugging purposes and will probably remove it in the future.

Gravity is the gravity of the simulations, a constant downward force acting on the springs in meters per second. "9.80665" is the gravity of earth. RTBP assumes every sim is 1.7272 meters tall, or 5'8". Higher gravity levels will will make everything sag much more. I wouldn't play with this one either, unless you'd like to pretend your sims live on another planet or if they're training to fight Cell or something.


It is possible to give these variables values that put the simulations out of equilibrium. For example, if you set the mass too high, the springK won't be able to overcome the force and your sims' body parts will sink into the floor. If the springK is set too high, the body parts will start bouncing faster and faster and never stop.

Posted
1 hour ago, CPVC said:

 

Increase the "mass" and "springK" variables to increase the jigglyness. You might also try decreasing the damping. I'll quote myself from an earlier post with a more thorough explanation:

 

 

Thank you.

Posted

This is a good job done, love the idea of real time physics. Also, last version is running much better then previous one (reffering mainly to gentleman's asses). However, this wierd think is still sometimes happening. It seem to be often triggered by "changing outfit" animation and solved by the same thing. Sometimes it stops by itself. Interestingly enaugh, it persists after reload.

 

Posted
2 hours ago, Tukytuk said:

 

Video-2.avi 8.28 MB · 6 downloads This is a good job done, love the idea of real time physics. Also, last version is running much better then previous one (reffering mainly to gentleman's asses). However, this wierd think is still sometimes happening. It seem to be often triggered by "changing outfit" animation and solved by the same thing. Sometimes it stops by itself. Interestingly enaugh, it persists after reload.

 

I think your Sim had too much beans, don't stay near open fire ;)

Posted
On 3/8/2021 at 9:01 AM, Tukytuk said:

 

Video-2.avi 8.28 MB · 19 downloads This is a good job done, love the idea of real time physics. Also, last version is running much better then previous one (reffering mainly to gentleman's asses). However, this wierd think is still sometimes happening. It seem to be often triggered by "changing outfit" animation and solved by the same thing. Sometimes it stops by itself. Interestingly enaugh, it persists after reload.

 

 

I'm pretty sure I know what's causing this. More testing is needed, but I think I may have already fixed it. The fix will be included in the next preview release, which will be out as soon as I fix a few nagging issues. Stay tuned!

Posted
8 hours ago, ShaggyDhs said:

It says it was updated, but the files still have a Dec 2020 date. 

 

7 hours ago, KonataKisaragi said:

Same here.

 

Shoot, sorry about that! I just edited the post to add the logo. I didn't think it would notify everyone that a new version had been released. My bad.

Posted
On 3/5/2021 at 11:35 AM, 0xAF said:

after some time it do some kind of reset or something (breast just shaking in different directions) and go normal simulation again

I was able to figure out what was going on

WW have sweating system, so when sim get sweat layer (there are many of them) it cause re-render, which cause this simulation reset

turning off sweating system resolve it

so, maybe for some users it cause simulation to stop working, not just reset?

cum layer probably also affected (anything that cause sim to re-render)

Posted

Hmm, I've done a cursory look in the thread and I cant see anyone else writing about this.

Just started a new game, and I was confused as it looked like my male character had a stretched neck.

I tried going into CAS to change it, however he looked normal there, when I returned to the world however, it turns out his shoulders (Or rather the midpoint between neck and shoulders), has turned into jelly the middle of his shoulders literally bounce up and down before they settle again, as if the mod has confused the mid point of the shoulders for breasts on a female character.

Log.txt

Posted

Alright, thank you all for your patience. I think I've ironed out most of the problems with the last preview release, so I guess it's time for another one. 

 


Change Log for v0.3-p6.1:

 

* An RTBP logo will appear when the game is started and disappear after a few seconds, just to show people where to find me if they have feedback or require support. To prevent this from happening, set the "showLogoAtStartup" option in your "Settings.ini" file to "false".

 

* The Sims 4 will now tell RTBP when the game is paused or when speeds 2 (fast) or 3 (super fast) are activated. When this occurs, the physics simulators will pause and resume when speed 1 (normal) is activated.

 

* Minor performance improvements.

 

* Dick simulator added. Currently only the testicles are targeted. Vertex selection might need to be tweaked slightly, but you will now see bouncing balls. (Doesn't seem to work when Wicked Whims animations are running. Don't worry, I'll fix it).

 

* More verbose logging. RTBP will now log all the DLC installed, the version of Windows you're running (or emulating), and what GPU you're using at startup. This should help me squash bugs when log files are shared with me.

 

* Added a 3D distance limiter to the spring simulation class that will allow me to limit the distance of the simulations based on axis. At this point, it only tries to prevent the breasts and butt from collapsing into the sim. Also, the limits are hard coded currently, but I could make it so you could set these variables manually in the settings file. Please let me know if you think that's something I should do.

 

* Uncaught exception handling. When an exception is thrown and not caught, RTBP will intercept it and log all the information it can about the exception, along with a backtrace. This information should help me solve problems with RTBP in the future.

 

* Fixed the problem with the game freezing when the Direct3D device is reset, like when you alt-tab out of game or switch from fullscreen mode to windowed.

 

* Fixed simulation optimization bug that caused the simulations to act weird sometimes.

 


If this doesn't work for you, please revert to v0.3-p5. I'm going to work on getting RTBP to run on lower-end hardware now. The laptop I borrowed to test RTBP on is kinda crappy, but people with kinda crappy computers deserve to have bouncing boobs, too.

 

https://www.loverslab.com/files/file/14085-real-time-body-physics

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   1 member

×
×
  • Create New...