KeyShot Forum

Technical discussions => Animation => Topic started by: Daniellance on June 27, 2016, 03:41:49 PM

Title: VR HTML for scroll/mouse interaction.
Post by: Daniellance 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:)

Title: Re: VR HTML for scroll/mouse interaction.
Post by: Josh3D 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.
Title: Re: VR HTML for scroll/mouse interaction.
Post by: Daniellance on July 06, 2016, 04:40:39 PM
@Josh Mings Thanks for the reply! Any idea what the code would look like?