Realistic Foreskin & Erection Simulation

Plugins + Scripts Realistic Foreskin & Erection Simulation

Download [<1 MB]
I think I have a problem. In my tests, only the max hoodie changes significantly. The min doesn't seem to have much effect.
 
Last edited:
I've solved this problem and will share the solution here:
Main modifications to the RunRudolf_RealisticForeskin.cs file:

1. Delete or comment out lines 4761 and 4763.

2. Change line 4823 of code

"foreskinmorph1_choice.morphValue = Mathf.Lerp(foreskinmorph1_choice.morphValue, Mathf.Clamp((share_of_targetDistance - _delayFactorJSON.val) * _pullbackintensityJSON.val, foreskinmorph1_min_dyn, foreskinmorph1_max_JSON.val), _morphSpeedJSON.val * _morphSpeedReduction * Time.deltaTime); //Hoodie Retracted function"

is replaced with

"foreskinmorph1_choice.morphValue = Mathf.Lerp(foreskinmorph1_choice.morphValue, Mathf.Clamp((share_of_targetDistance - _delayFactorJSON.val) * _pullbackintensityJSON.val, foreskinmorph1_min_JSON.val, foreskinmorph1_max_JSON.val), _morphSpeedJSON.val * _morphSpeedReduction * Time.deltaTime); //Hoodie Retracted function”

3. Change line 4825 of code

“foreskinmorph2_choice.morphValue = Mathf.Lerp(foreskinmorph2_choice.morphValue, Mathf.Clamp((share_of_targetDistance - _delayFactorJSON.val - Red_Penis_Skin3AmountJSON.val) * _pullbackintensityJSON.val, foreskinmorph2_min_dyn, Mathf.Max(erection * foreskinmorph2_max_JSON.val, 0.1f, foreskinmorph2_min_dyn)), _morphSpeedJSON.val * _morphSpeedReduction * Time.deltaTime); //Hoodie Retracted More function"

is replaced with

"foreskinmorph2_choice.morphValue = Mathf.Lerp(foreskinmorph2_choice.morphValue, Mathf.Clamp((share_of_targetDistance - _delayFactorJSON.val - Red_Penis_Skin3AmountJSON.val) * _pullbackintensityJSON.val, foreskinmorph2_min_JSON.val, foreskinmorph2_max_JSON.val), _morphSpeedJSON.val * _morphSpeedReduction * Time.deltaTime); //Hoodie Retracted More function"

4. Change line 4916 of code

“foreskinmorph1_choice.morphValue = Mathf.Lerp(foreskinmorph1_choice.morphValue, Mathf.Clamp((share_of_targetDistance_temp - _delayFactorJSON.val) * _pullbackintensityJSON.val, foreskinmorph1_min_dyn, foreskinmorph1_max_JSON.val), _morphSpeedJSON.val * _morphSpeedReduction * Time.deltaTime); //Hoodie Retracted function"

is replaced with

"foreskinmorph1_choice.morphValue = Mathf.Lerp(foreskinmorph1_choice.morphValue, Mathf.Clamp((share_of_targetDistance_temp - _delayFactorJSON.val) * _pullbackintensityJSON.val, foreskinmorph1_min_JSON.val, foreskinmorph1_max_JSON.val), _morphSpeedJSON.val * _morphSpeedReduction * Time.deltaTime); //Hoodie Retracted function”

5. Change line 4918 of code

“foreskinmorph2_choice.morphValue = Mathf.Lerp(foreskinmorph2_choice.morphValue, Mathf.Clamp((share_of_targetDistance_temp - _delayFactorJSON.val - Red_Penis_Skin3AmountJSON.val) * _pullbackintensityJSON.val, foreskinmorph2_min_dyn, Mathf.Max(erection * foreskinmorph2_max_JSON.val, 0.1f, foreskinmorph2_min_dyn)), _morphSpeedJSON.val * _morphSpeedReduction * Time.deltaTime); //Hoodie Retracted More function"

is replaced with

"foreskinmorph2_choice.morphValue = Mathf.Lerp(foreskinmorph2_choice.morphValue, Mathf.Clamp((share_of_targetDistance_temp - _delayFactorJSON.val - Red_Penis_Skin3AmountJSON.val) * _pullbackintensityJSON.val, foreskinmorph2_min_JSON.val, foreskinmorph2_max_JSON.val), _morphSpeedJSON.val * _morphSpeedReduction * Time.deltaTime); //Hoodie Retracted More function“

6. Don't copy the "" symbol :)
Hey, that's a feature, not a bug. It represents increased skin tension in erected state, also depending on whether you manipulate the foreskin with mouth/chest or hands/vagina/anus (the latter will give more movement).
In case you want a fully closable foreskin, just reduce the "Foreskin Tension" slider to 0!
 
Hey, that's a feature, not a bug. It represents increased skin tension in erected state, also depending on whether you manipulate the foreskin with mouth/chest or hands/vagina/anus (the latter will give more movement).
In case you want a fully closable foreskin, just reduce the "Foreskin Tension" slider to 0!
How about a circumcised setting where the foreskin only moves a little and doesn't cover anything?
 
Hey, that's a feature, not a bug. It represents increased skin tension in erected state, also depending on whether you manipulate the foreskin with mouth/chest or hands/vagina/anus (the latter will give more movement).
In case you want a fully closable foreskin, just reduce the "Foreskin Tension" slider to 0!
Oops, I just realized it now
 
RunRudolf updated Realistic Foreskin & Erection Simulation with a new update entry:

Triggerable Custom Appearances, More Morphs and Bugfixes

View attachment 532558

New Content
  • ControlCenter: Added a button to directly choose a custom appearance preset file in the AltFuta converter tab. This will just open an explorer window pointing the user directly to the custom appearances preset files folder. This comes in handy then creating custom AltFuta looks. It is also a triggerable function (e.g. by UIButton or Timeline). The trigger parameter for Receiver Target is "Appearance" with the...

Read the rest of this update entry...
 
Love this plugin, great work. Do you think you could make a trigger option for the cock creator (creating a new one via a trigger)?
 
Love this plugin, great work. Do you think you could make a trigger option for the cock creator (creating a new one via a trigger)?
Hi, sure, thats possible. Do you mean just any random cock with all possible properties (decal, normal, shape, pubic)? Or rather individual properties per trigger (shape with a trigger, decal with a trigger, ...)?
 
Hi, sure, thats possible. Do you mean just any random cock with all possible properties (decal, normal, shape, pubic)? Or rather individual properties per trigger (shape with a trigger, decal with a trigger, ...)?

Thanks for taking a look!
I was thinking about just pressing "Create Cock" with a trigger and then using whatever properties are already active. But toggling the different options with triggers would be awesome too, if it is not too much extra work =).
 
Thanks for taking a look!
I was thinking about just pressing "Create Cock" with a trigger and then using whatever properties are already active. But toggling the different options with triggers would be awesome too, if it is not too much extra work =).
Yes, so let's do it with the full range of toggles, this makes more sense for versatility and is not that much work. I will use this opportunity to go through all exposed triggers and choose more meaningful names and remove internal variables if they are not necessarily exposed to the trigger system. This will make the triggering system for these plugins much more easily accessible to creators.
 
Yes, so let's do it with the full range of toggles, this makes more sense for versatility and is not that much work. I will use this opportunity to go through all exposed triggers and choose more meaningful names and remove internal variables if they are not necessarily exposed to the trigger system. This will make the triggering system for these plugins much more easily accessible to creators.
Sounds great! Another feature I'm missing is some kind of turn off option, where one can set a timer value when the male starts to gets flaccid again after having no action for a specific amount of time.
 
Sounds great! Another feature I'm missing is some kind of turn off option, where one can set a timer value when the male starts to gets flaccid again after having no action for a specific amount of time.
Do you mean in scripted timeline sequences or in interactive mode?
In interactive mide, this will happen automatically due to VAMMoan intensity decrease. In scripting mode, you can trigger 0 erection with a very long duration, which should lead to this effect. Or what do you mean with timer? Not sure a general auto flaccid rule would fit all purposes.
 
Do you mean in scripted timeline sequences or in interactive mode?
In interactive mide, this will happen automatically due to VAMMoan intensity decrease. In scripting mode, you can trigger 0 erection with a very long duration, which should lead to this effect. Or what do you mean with timer? Not sure a general auto flaccid rule would fit all purposes.
Oh true, nice, thanks. That's good enough for me.
 
RunRudolf updated Realistic Foreskin & Erection Simulation with a new update entry:

Triggerable Cock Creator, Disable Testes Physics Option, QoL Fixes

View attachment 534278
Credits: Character "Tyler" by PetaZwerga, Pose 13 from "Luminestrial.StandingPosesExhibit.2"
New Functions
  • ControlCenter: Added trigger support for the Random Cock Creator. Compose your random cock setup in a trigger (e.g. UIButton or Timeline) by adding the properties you want to be changed, and attach the “Trigger Cock Creation” at the end. Some of the properties are (as before) only available in...

Read the rest of this update entry...
 
RunRudolf updated Realistic Foreskin & Erection Simulation with a new update entry:

Improved Idle Animations, Bugfixes

View attachment 536182

New Stuff
  • ControlCenter: Improved and extended idle animations, and separated them into two categories: Idles and fitness. Idles are in place, with some animated poses by Luminestral added. Fitness are the existing exercises which require a bit more space, improved with minor hand details.
  • RealisticForeskin: The Decal Maker plugin preset for advanced mode in the "Textures" tab is automatically loaded if any decal or normal is selected...

Read the rest of this update entry...
 
Hi, just saw some triggers have changed names, this mean got to check and correct every projects for the triggers (time consuming but doable) or stick back to older version :sick: i have in mind the 'Erection Test' (if i remember well) is now 'Test Mode: Set Erection Level' from 0 to 700, also what does the other one, 'Erection Level' from 0 to 1 ? I've tested it but it does nothing.

For the foreskin, the testing activation is no more available :cry: i'm used to invoke this trigger ON/OFF oftenly for handjobs start, guess solution would be to play with min or max hoodretractation or something like that, but it so much easier to on/off.

Hope you can do something about that🤞 and thanks for the work :)

Edit : just changed line 436 for the erection testing level, easy solved
C:
public static JSONStorableFloat intensityTest = new JSONStorableFloat("Erection Test", 0.0f, 0.0f, 700.0f, false);
But i don't know about the foreskin test trigger
 
Last edited:
Hi, just saw some triggers have changed names, this mean got to check and correct every projects for the triggers (time consuming but doable) or stick back to older version :sick: i have in mind the 'Erection Test' (if i remember well) is now 'Test Mode: Set Erection Level' from 0 to 700, also what does the other one, 'Erection Level' from 0 to 1 ? I've tested it but it does nothing.

For the foreskin, the testing activation is no more available :cry: i'm used to invoke this trigger ON/OFF oftenly for handjobs start, guess solution would be to play with min or max hoodretractation or something like that, but it so much easier to on/off.

Hope you can do something about that🤞 and thanks for the work :)

Edit : just changed line 436 for the erection testing level, easy solved
C:
public static JSONStorableFloat intensityTest = new JSONStorableFloat("Erection Test", 0.0f, 0.0f, 700.0f, false);
But i don't know about the foreskin test trigger
Hi, you are right, this is unfortunately somewhat a breaking change. I thought about it for some time, but usability won against backwards compatibility in this case. If you know the old and new triggers (see below), you could edit them directly in the .json (replace) effectively:

- RealisticErection: OLD "Erection Level" remained the same in NEW, this works from 0-1 and this is the intended main erection level trigger. I recommend using this one!

- RealisticErection: OLD "Erection Test" is NEW "Test Mode: Set Erection Level", this works from 0-700 (intensity) and only presets the level. To activate the preset level, use the next trigger.
- RealisticErection: OLD "Testing" is NEW "Enable / Disable Test Mode", on/off, only activates/deactivates test mode, the preset level will be applied.

And you are right, I removed the test triggers in the Foreskin plugin. I considered them not useful as they did not work reliably (not at all in transition state of the foreskin).

- RealisticForeskin: OLD "Testing" (test mode activation) and OLD "Foreskin Test" (foreskin level) have been removed. NEW "Foreskin Tension" works to control the foreskin state, but slowly. Please describe to me what you need the manual foreskin control exactly for, so I can think of a good solution.
 
Hi, you are right, this is unfortunately somewhat a breaking change. I thought about it for some time, but usability won against backwards compatibility in this case. If you know the old and new triggers (see below), you could edit them directly in the .json (replace) effectively:

- RealisticErection: OLD "Erection Level" remained the same in NEW, this works from 0-1 and this is the intended main erection level trigger. I recommend using this one!

- RealisticErection: OLD "Erection Test" is NEW "Test Mode: Set Erection Level", this works from 0-700 (intensity) and only presets the level. To activate the preset level, use the next trigger.
- RealisticErection: OLD "Testing" is NEW "Enable / Disable Test Mode", on/off, only activates/deactivates test mode, the preset level will be applied.

And you are right, I removed the test triggers in the Foreskin plugin. I considered them not useful as they did not work reliably (not at all in transition state of the foreskin).

- RealisticForeskin: OLD "Testing" (test mode activation) and OLD "Foreskin Test" (foreskin level) have been removed. NEW "Foreskin Tension" works to control the foreskin state, but slowly. Please describe to me what you need the manual foreskin control exactly for, so I can think of a good solution.
Oh ok, thanks ! i've tested the Foreskin Tension (before i was playing with foreskin test 'ON' at 0, then turn the foreskin test trigger to OFF to reach an effect of close/open), but now it looks even better than the old trigger. So its very nice (y) :love: , just require to set it to 0 to get the expected result. Awesome improvments indeed! 🙏
 
The Update is really good and works well, nice work, thank you! Can you please also add a trigger option for the cock creator cock size (small, medium, large) if possible?
 
Last edited:
The Update is really good and works well, nice work, thank you! Can you please also add a trigger option for the cock creator cock size (small, medium, large) if possible?
Sorry, I overlooked your comment. I will have a look and add it for the next version!
 
RunRudolf updated Realistic Foreskin & Erection Simulation with a new update entry:

Dynamic Breathing, Bugfixes

View attachment 540404
Credits: Male: Cornell by GiovniYA, Female: KenniCat by SlimerJSPud

New Functions
  • RealisticErection: Added breathing with frequency and amplitude depending on erection level (and orgasm) and slight randomness. The algorithm is from HyperReal.RealBreath plugin (CC-BY) and modified to allow smooth transitions between breathing intensities. If a female person carrying the RealisticEreciton plugin is penetrated for some time and the breathing...

Read the rest of this update entry...
 
RunRudolf updated Realistic Foreskin & Erection Simulation with a new update entry:

New UI

View attachment 542089
Credits: Eärendil by pgdaddy (Alt Futa setup with RealisticForeskinSim) with body protectory by maru01, shirt by VL_13, boots by JackyCracky, shorts by Tenzan

New Functions
  • ControlCenter, RealisticErection, RealisticForeskin: Complete overhaul of the UI, adding a second UI level where it makes sense, and preventing any need for scrolling. Some functions have been moved from one to another tab, but you will find it as their...

Read the rest of this update entry...
 
Hello, thanks for the amazing plugin :D

I was wondering if it was possible to add a slider for the foreskin state that could be called from timeline, kinda like how you can call the erection level but for the foreskin, I looked around in the variables and on the triggers and couldn't find one.
It would be a cool addition to be able to control the look of the penis foreskin manually with timeline when it's not being interacted with.
 
Hello, thanks for the amazing plugin :D

I was wondering if it was possible to add a slider for the foreskin state that could be called from timeline, kinda like how you can call the erection level but for the foreskin, I looked around in the variables and on the triggers and couldn't find one.
It would be a cool addition to be able to control the look of the penis foreskin manually with timeline when it's not being interacted with.
Hi, I would try using "Foreskin Tension". It's not directly manipulating the foreskin state, but it has the same effect. Its pretty much damped though, depending on what you want this is not perfect. Does that work for you?
If not, I will re-add the "Testing" toggle and the "Foreskin State" slider, but I thought this is not necessary. Let me know...
 
Hi, I would try using "Foreskin Tension". It's not directly manipulating the foreskin state, but it has the same effect. Its pretty much damped though, depending on what you want this is not perfect. Does that work for you?
If not, I will re-add the "Testing" toggle and the "Foreskin State" slider, but I thought this is not necessary. Let me know...
Yeah, foreskin tension gets it halfway there but not exactly what I'm looking for, I'd greatly appreciate the testing toggle and the foreskin state slider.
Thanks again :D
 
Back
Top Bottom