Is it possible that set(view.fovmax,111) is not working in HTML5? I can only set a fovmax statically in the <view> tag itself, but attempting to set it dynamically fails (as in, the value is not used). Is this a know issue?
Thanks!
Is it possible that set(view.fovmax,111) is not working in HTML5? I can only set a fovmax statically in the <view> tag itself, but attempting to set it dynamically fails (as in, the value is not used). Is this a know issue?
Thanks!
I use action which limits FOV between 20 and 100 for ipads and iphones... Never noticed any problems...
Check out that the scene has limitview="range" atrribute.
Thanks for your input, Alexey. Unfortunately, that didn't help.
I did find the culprit, however. Klaus, not sure if this is something for you to look at, or if there's a simple logical explanation.
This DOESN'T work:
But this DOES (i.e. the fov is correctly limited in HTML5 [it always works fine in Flash...])
In other words, the order of set and lookto matters.
i see the reason, I guess. Oninterrupt(break) breaks the current action. If you didn't specify "nonblocking" parameter to "true" for your lookto(); action, then lookto executed first, and after its completion set(view) is fired. If lookto is interrupted by the user, the lookto action stops and set(view) is not launched. In your second working example set(view) is fired before the lookto and thus is not blocked.
I tried this code and it worked:
When nonblocking is set to "true", the set(view) is executed just outright during the lookto action.
Ah, yes, that makes sense! I'm amazed by your insight into all this, well done!!
Thanks, Alexey!
Don’t have an account yet? Register yourself now and be a part of our community!