Author Topic: VR HTML for scroll/mouse interaction.  (Read 1824 times)

0 Members and 1 Guest are viewing this topic.

Offline Daniellance

  • Newbie
  • *
  • Posts: 4
VR HTML for scroll/mouse interaction.
« on: June 27, 2016, 03:41:49 pm »
I am looking for a way to start an interaction with a VR render based on scroll.

Example:
The render of the box opens and closes.
I want the box to open as the user scrolls down the webpage.
E.g. no grab interaction for the user.

This would have to start only when the object becomes visible or else the movement of the box would be missed or I wouldn't be able to preload the render to speed things up.

I have played around with the HTML a little but the grab interaction within the iframe is a little new to me. Little help would be great:)


Offline Josh3D

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3064
    • keyshot.com
Re: VR HTML for scroll/mouse interaction.
« Reply #1 on: June 29, 2016, 11:42:04 am »
Hi, it may be possible for you to channel scroll events into drag events to the iframe, by sending drag events to the VR iframe when a user scrolls. There's not straightforward option to do that straight from KeyShot though.

Offline Daniellance

  • Newbie
  • *
  • Posts: 4
Re: VR HTML for scroll/mouse interaction.
« Reply #2 on: July 06, 2016, 04:40:39 pm »
@Josh Mings Thanks for the reply! Any idea what the code would look like?