Originally posted by mordentral
View Post
Announcement
Collapse
No announcement yet.
VR Expansion Plugin
Collapse
X
-
Hi mordentral,
I noticed while using a vrbuttoncomponent that if you alter the relative transform of it at runtime when you interact with it it hops back the place it was set originally. I haven't tested it in depth (or looked at the code) but I was animating a button using a timer to pop up only when you stand on a platform and found that when I set the transform of button component to its "down" position in blueprint viewport what I describe above would happen. But if I set it to its "up" position then override it at runtime it works as I would expect.
Comment
-
Originally posted by ctpeepee View PostHi mordentral,
I noticed while using a vrbuttoncomponent that if you alter the relative transform of it at runtime when you interact with it it hops back the place it was set originally. I haven't tested it in depth (or looked at the code) but I was animating a button using a timer to pop up only when you stand on a platform and found that when I set the transform of button component to its "down" position in blueprint viewport what I describe above would happen. But if I set it to its "up" position then override it at runtime it works as I would expect.
You need to make sure to SetButtonState as well so it knows its new position. That being said, you can SetButtonState with bSnapIntoPosition as False and it will lerp itself into the new state for you so that you don't need to manually do it.
Consider supporting me on patreon
My Open source tools and plugins
Advanced Sessions Plugin
VR Expansion Plugin
Comment
-
Originally posted by mordentral View Post
That is because it is storing its current state so that it can handle lerping and resting positions and the over depth past the click depth.
You need to make sure to SetButtonState as well so it knows its new position. That being said, you can SetButtonState with bSnapIntoPosition as False and it will lerp itself into the new state for you so that you don't need to manually do it.
I can't remember if I read somewhere that you actually said to not alter the relative transform of the buttoncomponent itself and to move a parent around if you wanted to move it now I come to think about it...
Comment
-
Originally posted by ctpeepee View Post
I'm not sure if I didn't explain myself well or if I just don't understand... but having looked at the code I believe the reason I was getting what I was is that I was animating the relative transform of the button component to its parent so the buttons InitialRelativeTransform was no longer correct when the button was pressed. There was a panel you stand on which triggered moving the button up from the floor to hip height and also setting its opacity. So I don't believe I could have resolved my issue using SetButtonState. I think I could have called ResetInitialLocation or probably better to have childed the button component to a scene component and altered the transform of the scene component instead.
I can't remember if I read somewhere that you actually said to not alter the relative transform of the buttoncomponent itself and to move a parent around if you wanted to move it now I come to think about it...
Consider supporting me on patreon
My Open source tools and plugins
Advanced Sessions Plugin
VR Expansion Plugin
- 1 like
Comment
-
Hi Mordentral,
I've been noticing some problems with using a remote grip by way of the custom pivot components in multiplayer. I set it up as you did in your video https://youtu.be/BwS9Fo1Ozb0?t=349 using the built in laser to set the location of the grip component. I also added thumb stick control so it can push or pull the actor away from you. My problem is that the client's offset grips never seem to update on the server.
Example: I grab object on client 20 feet away using laser beam. Client is fine, but on the server it teleports to the hand. Also the thumbstick setting the grip component location just doesn't work on client, I can see the grip sphere move, but the actor won't. I know you said the grip components are not replicated and I've tried to set it up but nothing seems to work and my blueprints are turning into spaghetti. I have a hackish way to force set the location if a client is using it, but it ruins grip functionally and seems messy.
I know this problem is probably too specific, so I totally understand if I don't hear back. I just feel like there is a simple way to update the location of the clients grip components that I'm totally missing.
Comment
-
Has anyone run into this horrid stuttering issue in the hmd? it seems to happen if the world scale is anything but 100.0.
Cant find whats doing it, all the transforms of the pawn and components are not actually changing from the stutter
video link: https://youtu.be/L7e4zGbGf8M
Comment
-
Originally posted by Dogū View PostHi Mordentral,
I've been noticing some problems with using a remote grip by way of the custom pivot components in multiplayer. I set it up as you did in your video https://youtu.be/BwS9Fo1Ozb0?t=349 using the built in laser to set the location of the grip component. I also added thumb stick control so it can push or pull the actor away from you. My problem is that the client's offset grips never seem to update on the server.
Example: I grab object on client 20 feet away using laser beam. Client is fine, but on the server it teleports to the hand. Also the thumbstick setting the grip component location just doesn't work on client, I can see the grip sphere move, but the actor won't. I know you said the grip components are not replicated and I've tried to set it up but nothing seems to work and my blueprints are turning into spaghetti. I have a hackish way to force set the location if a client is using it, but it ruins grip functionally and seems messy.
I know this problem is probably too specific, so I totally understand if I don't hear back. I just feel like there is a simple way to update the location of the clients grip components that I'm totally missing.
You need to tell the server that the client moved the pivot (or move it on the server and let it movement replicate down to the clients). Right now you are just moving it on the owning client only and it is staying in the same spot on everyone else.
Consider supporting me on patreon
My Open source tools and plugins
Advanced Sessions Plugin
VR Expansion Plugin
Comment
-
Originally posted by Rareden View PostHas anyone run into this horrid stuttering issue in the hmd? it seems to happen if the world scale is anything but 100.0.
Cant find whats doing it, all the transforms of the pawn and components are not actually changing from the stutter
video link: https://youtu.be/L7e4zGbGf8M
Consider supporting me on patreon
My Open source tools and plugins
Advanced Sessions Plugin
VR Expansion Plugin
Comment
-
Originally posted by mordentral View Post
Is that in multiplayer and did you not change world scale on the server as well? Because the CMC would report incorrect locations then.
Comment
-
Originally posted by Rareden View Post
no it wasnt multiplayer, it seems to be related to nav mesh, if i delete the nav volume and restart the editor it gets rid of it
Consider supporting me on patreon
My Open source tools and plugins
Advanced Sessions Plugin
VR Expansion Plugin
Comment
-
Originally posted by Rareden View PostHas anyone run into this horrid stuttering issue in the hmd? it seems to happen if the world scale is anything but 100.0.
Cant find whats doing it, all the transforms of the pawn and components are not actually changing from the stutter
video link: https://youtu.be/L7e4zGbGf8MLast edited by MagicBots; 06-19-2019, 12:55 AM.
Comment
-
Originally posted by mordentral View Post
You need to set the pivots on all clients / the server, you also need to replicate that you are moving the custom pivots. The pivot can be ANYTHING so I can't really replicate that for you, and replication in engine is one way, server-down.
You need to tell the server that the client moved the pivot (or move it on the server and let it movement replicate down to the clients). Right now you are just moving it on the owning client only and it is staying in the same spot on everyone else.
Comment
-
Originally posted by MagicBots View Post
ROJO mentioned on the discord that play in editor is currently bugged with non 100 world scales.. If you close all of the tabs, including output, find in editor..etc all of them.. It should work in PIE. Are you getting that outside of PIE as well? This had worked for me when i tested it.. Not sure where the bug is from but that workaround worked for me.
havent tried it in a packaged build yet, trying to get the knuckles mappings to work in a build first
- 1 like
Comment
Comment