KeyShot Forum

Technical discussions => Animation => Topic started by: hugo on March 06, 2014, 09:56:44 AM

Title: VR HTML code for Android Touch Screen?
Post by: hugo on March 06, 2014, 09:56:44 AM
My Samsung Android Tablet will show the VR animation, but naturally wont play the animation because the current VR code is Mouse Dependent, not Touch Dependent.
Does have the corresponding Touch Dependent VR code so I can substitute it in my HTML VR files?

TIA!
Title: Re: VR HTML code for Android Touch Screen?
Post by: thomasteger on March 06, 2014, 12:18:28 PM
VR supports touch. Go to keyshotvr.com and try it on the KeyShotVR examples posted there.
Title: Re: VR HTML code for Android Touch Screen?
Post by: hugo on March 06, 2014, 05:40:35 PM
I see I did not make my question clear"

If I download a VR animation produced on my PC to my Android tablet, that VR  wont play in the Android version of Firefox, because its missing the specific HTML Touch Screen Code.  Hence My question, What HTML code snippet do I need to replace in my VR  HTML so the VR will play on my Android Tablet?

TIA!
Title: Re: VR HTML code for Android Touch Screen?
Post by: thomasteger on March 07, 2014, 10:02:55 AM
We just tested it and it worked without any problems. Do the VR examples on keyshotvr.com work for you?
Title: Re: VR HTML code for Android Touch Screen?
Post by: hugo on March 07, 2014, 10:27:56 AM
Quote from: Thomas Teger on March 07, 2014, 10:02:55 AM
We just tested it and it worked without any problems. Do the VR examples on keyshotvr.com work for you?

There is no problem with your Website or your VR examples running in an Android environment.
My concern is with my PC created VR's. If I copy the entire folder and HTML code from my PC to a Folder on my Android tablet.
They don't play! :(
Title: Re: VR HTML code for Android Touch Screen?
Post by: Brandon Davis on March 07, 2014, 01:43:27 PM
As Thomas noted, we tried this here without any problems.

Can you provide us with an error message or screenshots of what you are experiencing?

Title: Re: VR HTML code for Android Touch Screen?
Post by: hugo on March 08, 2014, 03:21:49 PM
Quote from: Brandon Davis on March 07, 2014, 01:43:27 PM
As Thomas noted, we tried this here without any problems.

Can you provide us with an error message or screenshots of what you are experiencing?

Indeed I can, My Tablet is a Samsung Galaxy Tab 2 10.1" 16GB Android 4.1 Tablet:  its PC identity is GT-P5113
there are no error messages displayed on the tablet when I try to run the PC created VR
Title: Re: VR HTML code for Android Touch Screen?
Post by: Brandon Davis on March 08, 2014, 09:09:44 PM
Thanks for these screen dumps.

What happens when you simply place your finger on your tablet screen and swipe back and forth? You said the VR's on our website work fine for you? (e.g. https://www.keyshot.com/vr/DirtBike/DirtBike.html)

It would be nice if you could open the browser's error console to see if any JS errors are displayed (i'm not sure how to open the error console on your version of firefox, but google will :) ). I can see that JS is being executed because it has loaded the frame(s).

What version of KeyShot are you using to generate your VR's?

Title: Re: VR HTML code for Android Touch Screen?
Post by: hugo on March 09, 2014, 11:33:44 AM
This particular VR is a simple turntable of 72 frames, hence sliding the fingers left or right should cause the VR to react, but there is no screen movement, the image stays stationary.

However Pinching the fingers in and out on the Tablet, will Zoom the image in and out.
Its also not possible to see the entire picture on the tablet, the bottom part of the missing gold rectangle will not appear it simply becomes part of the white background, the VR is placed on.
More info:
Your https://www.keyshot.com/vr/DirtBike/DirtBike.html) requires a few seconds to load the frames, which shows in the KS LOGO, before the VR can be played (see attachment)

When I touch to play hurricane_VR.102.html, for a micro second the KS frame count logo appears, and then disappears. In other words it appears only to load the 1st frame, the other 71 are simply not loaded.

KS 4.3.18
Title: Re: VR HTML code for Android Touch Screen?
Post by: Brandon Davis on March 10, 2014, 07:02:42 PM
Can you open the browser error console to see if any errors are being written? I'm not quite sure how to open the console on your version of FireFox, but this article might help:
https://quality.mozilla.org/docs/mobile-firefox/firefox-mobile-enabling-the-error-console/
Title: Re: VR HTML code for Android Touch Screen?
Post by: hugo on March 11, 2014, 08:59:43 AM
I know on a PC if I right click on the Firefox Browser, I can click the Inspect Element(Q) title and see the HTML code.
I was looking for that same ability on my Tablet, unfortunately FireFox Android does not have that ability.

Mozilla support might have an answer? https://support.mozilla.org/en-US/users/login
because right it looks like one can't play a KS VR on an Android device  :(
Title: Re: VR HTML code for Android Touch Screen?
Post by: Brandon Davis on March 12, 2014, 02:29:22 PM
Ok, I was able to locate this issue with one of the devices that we have here. I was able to debug the issue using the remote debugging feature in firefox, explained in this article: https://hacks.mozilla.org/2012/08/remote-debugging-on-firefox-for-android/ (https://hacks.mozilla.org/2012/08/remote-debugging-on-firefox-for-android/)

If you can email me brandon(at)luxion(dot)com, I will send you the new KeyShotVR.js file for you too try.
Title: Re: VR HTML code for Android Touch Screen?
Post by: hugo on March 26, 2014, 12:46:41 PM
I have been very busy at work. your request is on my todo list.  :)
Title: Re: VR HTML code for Android Touch Screen?
Post by: hugo on April 09, 2014, 07:52:42 AM
Quote from: Brandon Davis on March 12, 2014, 02:29:22 PM
If you can email me brandon(at)luxion(dot)com, I will send you the new KeyShotVR.js file for you too try.

I deleted the old KeyShotVR.js file then copied over the new file on my Samsung Tablet (GT-P5113) but it still does not work.

The KS logo appears in the top left hand corner, loads the files, then disappears, the 1st frame remains on screen, but there
is no touch control that allows moving to the next images. (pinching, and zooming the screen works)

I then tried several other VR files, with the revised KeyShotVR.js and got the same result.