Jump to content

Firefox Android. No navigation/gesture response.


JasonX
 Share

Recommended Posts

Unfortunately I've found this occurring device specific from time to time. If I require the Arc Rotate Camera, I typically use another camera and set it's attributes to emulate an ARC. Otherwise, this will continue to be the case as it's not a babylon.js issue, but an issue with the device, OS, and browser.

Also, if you want to remove the error: potatoman.babylon.manifest?1528004661664:1 Failed to load resource: the server responded with a status of 404 (Not Found)

Then create an empty text file "name.manifest" which it is looking for, and the error will no longer be reported. I and others have asked for this to be ignored if not in existance in the past, but perhaps there is a reason why it can't be ignored. I assume @JCPalmer is still updating the .babylon exporter, so perhaps he might remove the .manifest reference from the babylon.js exe. But again, I'm not sure why this is still referenced. It doesn't affect the loading of a .babylon file.

DB

Link to comment
Share on other sites

Hi all, I solved the problem.

 

Looks like need to include jquery's pep.js and set an attribute touch-action=none in rendercanvas. Here's the code that works in android chrome and android firefox.

 

<canvas id="renderCanvas" touch-action="none"></canvas>
<script src="https://code.jquery.com/pep/0.4.3/pep.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babylonjs/3.2.0/babylon.js"></script>
<script src="/scripts/potatoman.js"></script>
Link to comment
Share on other sites

Yes, for the touch to work, you have to use jQuery PEP and set the right property on the canvas element. We should probably reinforce that somewhere in the documentation even if this is already specified: https://doc.babylonjs.com/babylon101/cameras

For the .manifest, this is the only I have to check you're requesting offline for those ressources. You can disable this check by changing the enableOfflineSupport boolean property on the engine objecthttps://doc.babylonjs.com/how_to/caching_resources_in_indexeddb

Link to comment
Share on other sites

I am not sure why I am in this topic.  BTW, there was a recent  PR by @FunFetched  to automatically create a .manifest file in the exporter.  This will at least do this for you, and be more than just an empty file @dbawel.

# Create or update .manifest file
if self.scene.writeManifestFile:
    file_handler = open(self.filepathMinusExtension + '.babylon.manifest', 'w', encoding='utf8')
    file_handler.write('{\n')
    file_handler.write('\t"version" : ' + str(calendar.timegm(time.localtime())) + ',\n')
    file_handler.write('\t"enableSceneOffline" : true,\n')
    file_handler.write('\t"enableTextureOffline" : true\n')
    file_handler.write('}')
    file_handler.close();

You have to click the checkbox, since it is not done by default.  I do not have anything to do the loading side.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...