• Hi Guest!

    Please be aware that we have released another critical security patch for VaM. We strongly recommend updating to version 1.22.0.10 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.
Sensor Plugin

Plugins + Scripts Sensor Plugin

PrettyFrank

Well-known member
Messages
64
Reactions
346
Points
53
PrettyFrank submitted a new resource:

Sensor Plugin - Add distance/angle-based triggers between atoms and other atoms/player.d

Sensor (a plugin)
Sensor enables angle/distance-based triggers between atoms and/or the player.

Why?
I could never get the Depth of Field settings to work perfectly with any existing setup, including FocusOnMe, PostMagic (using AutoFocusPoint), or the PostProcessing plugin. Each of these are great, but just not working for me. Ultimately, building this unlocked a ton of potential in...

Read more about this resource...
 
damn, i just tried it and so far it looks like a really good plugin for dof :eek:
like i put it on an empty atom with vrrender plugin, tweaked with the values in postmagic dof and sensor trigger a little and it works on every reasonable distance, i don't have to change anything for it :eek:
really good job :D this will make a lot of things a lot easier :3
 
and because of your demo i also just got ideas for many different use cases as well, ty for a lot dude, this is an incredible plugin
i just want you to know that you did an amazing job ?
 
PrettyFrank updated Sensor Plugin with a new update entry:

Sensor v5

Version 5 Updates

- FIX: Attempting to make replacing Sensor plugins with latest versions preserve the previous settings. v4 --> 5 will lose your settings, but hopefully v6 will protect them? We'll see...
- FIX: When in Angle mode, the max threshold now appropriately sets to 180 (degrees), rather than the previous 20 used for distance.
- NEW: Changing the threshold will check for crosses in real-time without requiring atom movement, allowing easier testing.
- NEW: More...

Read the rest of this update entry...
 
g.png


It would be nice to add an option where the angle looks visually
 
and because of your demo i also just got ideas for many different use cases as well, ty for a lot dude, this is an incredible plugin
i just want you to know that you did an amazing job ?
Super glad to hear it! I'm still discovering uses for it myself!
 
@PrettyFrank
Nice work! A much needed plugin. I was thinkimng of a few ideas to expand the plugin features I wanted to throw out there.

One idea was to combine both distance and angle based Sensors. Something like Distance trigger is only active within certain Angle values. Found out we can do that already by adding two Sensors on the atom and disabling the first plugin using Threshold conditions on the second plugin.

Second idea is to adjust the angle values reading (or scale?) based on the distance to atom. Like how Lumination can adjust Spot angle values based on distance to keep a same size circle for the light cone. I imagine we can use this to actually detect if we are looking at the atom body regardless of distance. Currently if you get too close, the angle range which means 'looking at' the atom becomes bigger.
 
@PrettyFrank
Nice work! A much needed plugin. I was thinkimng of a few ideas to expand the plugin features I wanted to throw out there.

One idea was to combine both distance and angle based Sensors. Something like Distance trigger is only active within certain Angle values. Found out we can do that already by adding two Sensors on the atom and disabling the first plugin using Threshold conditions on the second plugin.

Second idea is to adjust the angle values reading (or scale?) based on the distance to atom. Like how Lumination can adjust Spot angle values based on distance to keep a same size circle for the light cone. I imagine we can use this to actually detect if we are looking at the atom body regardless of distance. Currently if you get too close, the angle range which means 'looking at' the atom becomes bigger.
Thanks! Good idea to keep in mind for a later release - also great to hear you found a way around the limitation anyway! My idea is to release small utility plugins similar to logic bricks that you can layer up to achieve cool effects :)
 
Could use a fixed offset slider for the 'distance' function that allows to add something like +1 to the value before it's used as 'OnChange'-trigger.
I'd use it to extend the light range a bit over the exact distance between two atoms.

Not sure if that would be something other users find useful or if other plugins can already do that. This was the first result that came up when I searched for "distance"-Plugins ... tried it ... worked perfectly after adjusting min/max scale values.
Nice work! (y)
 
HEY! I think this is what i need for a game i'm making in VaM! do you mind clarifying if this is possible?

i want to make a hertbeat sound, and the closr a person is to the main player, the faster the heartbeat will play. I'm assuming i can scale the audio speed using this trigger plugin?
 
HEY! I think this is what i need for a game i'm making in VaM! do you mind clarifying if this is possible?

i want to make a hertbeat sound, and the closr a person is to the main player, the faster the heartbeat will play. I'm assuming i can scale the audio speed using this trigger plugin?
You definitely can! :)
 
PrettyFrank updated Sensor Plugin with a new update entry:

Sensor v8

Changes
- Sensor now defaults to Distance mode, which is likely the common use-case. It's been modified to be a near drop-in for autofocus control.
- Added better documentation.
- Scaling defaults are set up to work well for autofocus/depth of field controls. Just add triggers to match.
- If selecting a Person atom as your target, you'll be able to pick a subcontroller. If you need more control then that, simply use a target atom you place in the scene.

Read the rest of this update entry...
 
Hi, PrettyFrank! Let me start by saying that I wanted a plugin like this for a long time. Thank you!
However, I have not yet left a review because of a game breaking bug: the plugin stops working after the scene has been reloaded. First video shows it function as intended and second video is taken after scene reload:
 
Hi, PrettyFrank! Let me start by saying that I wanted a plugin like this for a long time. Thank you!
However, I have not yet left a review because of a game breaking bug: the plugin stops working after the scene has been reloaded. First video shows it function as intended and second video is taken after scene reload:
Yikes! Which version is this on? I have sensors all over working after reloads, but perhaps I introduced a bug somewhere… I won’t be able to fix anything for a few days, but I’ll do a deep dive when I get home. Def appreciate the heads up!
 
Yikes! Which version is this on? I have sensors all over working after reloads, but perhaps I introduced a bug somewhere… I won’t be able to fix anything for a few days, but I’ll do a deep dive when I get home. Def appreciate the heads up!
Nm, I can see from the UI you’re on 8. Oof. Will fix ASAP. In the meantime if you don’t need access to controller targeting (if using target atoms) you can use v6, which is stable. But that’s a bit of a pain for body part detection, this the v8 release…
 
Nm, I can see from the UI you’re on 8. Oof. Will fix ASAP. In the meantime if you don’t need access to controller targeting (if using target atoms) you can use v6, which is stable. But that’s a bit of a pain for body part detection, this the v8 release…
Don't worry, in my case it can wait. I was just prototyping today, not producing a scene.
 
PrettyFrank updated Sensor Plugin with a new update entry:

v9 (bugfix)

Version 9 (bugfix):

Sensor 8 introduced the ability to select subcontrollers if the plugin was on a Person atom, or it was targeting another Person atom. This allowed you to measure to/from certain body controllers without having to create and parent empty atoms to the target zones. Unfortunately, the logic was bugged, preventing updates when measuring to an atom other than the Player after restore.

Version 9 fixes this!

View attachment 442054[ATTACH...

Read the rest of this update entry...
 
@VAMFantasy your issue should be fixed now in Sensor 9 :)

It turns out it wasn't just a restore issue, it was anytime you tried to change the target atom after the first time (which would also happen on restore).

Lemme know if you run into any issues with the new one!
 
Hard to believe only 4 scenes are using this. Might use it when I get around to putting my StateMachine into a scene.
 
Hard to believe only 4 scenes are using this. Might use it when I get around to putting my StateMachine into a scene.
Yeah, I think it’s just a matter of time/exposure though… it honestly has so many uses!

I’ll try and post some demo videos explaining how it can solve some common scene issues :)
 
How to directly link distance changes with character morph
For example, when the distance is close, the character opens their mouth wide

if no need plug directly link morph
it is possible?
 
How to directly link distance changes with character morph
For example, when the distance is close, the character opens their mouth wide

if no need plug directly link morph
it is possible?



It's definitely possible (see video):

A few tips:


- be sure to favorite morphs you want to be able to see/adjust in the trigger menus
- set the Scale Min to how close you want to be when the trigger value reaches 0. For instance, if you want the mouth to be open to the max at any distance under 0.3m, set this to 0.3m.
- set the Scale Max to how close you want to be when the trigger value reaches 1. For instance, if you want the mouth closed at all distances past 1.2m, set this to 1.2.
- you can pile on as many morphs/triggers as you want, assuming they can share the same scale values. If not, just add another sensor.
 
Back
Top Bottom