• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

Solved Clothing sim scripting

coinstacc

Member
Joined
Aug 26, 2024
Messages
19
Reactions
61
I've got an idea for a script that modifies how the clothing sim is driven by the sim texture, where the value is treated as a stepped/ramped cutoff (sort of like the "undress threshold" option, but reversible and with a smoothed step) instead of the usual behavior, but don't have enough familiarity with VaM's internals or experience with coding/scripting to easily see an entry point for it. Been poking around at some others' scripts to see if I can find any leads on this without any luck so far, seeing a lot of vertex editing but haven't seen anything reference or apply the textures. Anyone have better insight on good starting points, or if this is even plausible to do? (Or if anyone's done this already and I've missed it in searching?) Thanks!
 
Solution
GossamerVR made Stripwise a few years ago that does something similar. It effects the vertices, so it's a bit heavy, but basically allows changing the sim settings based on the character space x/y/z coordinates.

Sim is baked and the texture itself gives the simmed/non sim threshold.
Imagining what you're hoping to do, I think you'll have to work with the sim texture data and "animate" this yourself on the vertices... that might be a quite complex problem to solve without killing the framerate.
 
Upvote 0
Hm, that makes sense when thinking about it further. My usual interaction with clothing is with the "joint strength" setting, which I'm assuming just modifies the property in the baked sim itself and is more performant than taking into account all the individual vertices affected by the texture. Probably too far over my head in this case. Thanks for the insight!
 
Upvote 0
GossamerVR made Stripwise a few years ago that does something similar. It effects the vertices, so it's a bit heavy, but basically allows changing the sim settings based on the character space x/y/z coordinates.

 
Upvote 0
Solution
GossamerVR made Stripwise a few years ago that does something similar. It effects the vertices, so it's a bit heavy, but basically allows changing the sim settings based on the character space x/y/z coordinates.

Yeah, that's one of the scripts I poked around in. Was hoping there would be something a bit simpler, but maybe I'll take a deeper look in that code at some point to see if there's a way to get more granular, texture-based control.
 
Upvote 0
Back
Top Bottom