Announcement

Collapse
No announcement yet.

Set haptics by value during only 3 seconds in oculus touch?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    [OCULUS] Set haptics by value during only 3 seconds in oculus touch?

    Hi! I need to set haptic feedback while a button is pressed, but when i tried, the effect turn off at 3 seconds only.
    I tried two things:
    -Put the set haptics by value in the Press event of the touch controller (in the trigger).
    -Put a flag boolean in the press event, and set haptics in each tick.
    Both ways only last 3 seconds, but i need to press the button longer.

    What can i do in this case?

    And other question about haptics. There is a better way of make "haptic feedback effect buffer"? is there a guide somewhere? How can i add dynamically info to the buffer before sending it to the controller?
    I made two haptic buffer assets, but sometimes the first one override the second one, so i think i need to merge them before sending to the controller, but don´t know how.

    Thanks!

    #2
    Anybody with haptics exp here?

    Comment


      #3
      You can find a full explanation about haptic effects on the Touch Controllers using Unreal here: https://developer.oculus.com/documen...nreal-haptics/

      With Play Haptic Effect, you can make it loop so it doesn't stop until you call Stop Haptic Effect. Check out the example in the documentation linked above.
      CTO | Head of VR Development - Visit us at http://humanxr.com
      My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

      Comment


        #4
        That´s the guide i´m following, and i´m having the 3 second problem. I will try with play haptic effect and loop, but i think "set haptic by value" should work too. Maybe is a bug?

        One thing that i´m trying to do, is a haptic effect for a fire extinguisher. But while the extinguisher can last like 10-15 seg, the haptic only last 3 sec. Which could be the best way of do this?


        And, can you help me with the buffer question?

        Comment


          #5
          Originally posted by PiroKun View Post
          That´s the guide i´m following, and i´m having the 3 second problem. I will try with play haptic effect and loop, but i think "set haptic by value" should work too. Maybe is a bug?

          One thing that i´m trying to do, is a haptic effect for a fire extinguisher. But while the extinguisher can last like 10-15 seg, the haptic only last 3 sec. Which could be the best way of do this?


          And, can you help me with the buffer question?
          Seems to be an known issue, but it is not solved yet: https://answers.unrealengine.com/que...4-seconds.html

          Try with Play Haptic Effect as suggested.

          Regarding the buffered output, I am not sure I understand your use case. You can play only one buffer at a time. If you need to do something different i.e. multiple buffers, then you need to manually merge the buffers before sending them to the controller.
          CTO | Head of VR Development - Visit us at http://humanxr.com
          My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

          Comment


            #6
            Originally posted by vr_marco View Post

            Seems to be an known issue, but it is not solved yet: https://answers.unrealengine.com/que...4-seconds.html

            Try with Play Haptic Effect as suggested.

            Regarding the buffered output, I am not sure I understand your use case. You can play only one buffer at a time. If you need to do something different i.e. multiple buffers, then you need to manually merge the buffers before sending them to the controller.
            yes! that. how can i merge the buffers in blueprint?

            Comment


              #7
              Originally posted by PiroKun View Post

              yes! that. how can i merge the buffers in blueprint?

              I just checked and I am afraid it can't be done in Blueprints. You need to use C++ for that.
              CTO | Head of VR Development - Visit us at http://humanxr.com
              My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

              Comment

              Working...
              X