JasonX Posted June 2, 2018 Share Posted June 2, 2018 Link here to test. Using latest 3.2.0 via CDN https://www.marduksoft.com/demo3d/potatoman.php With Arcrotatecamera, doesn't work under Android version of Firefox. Can't rotate/zoom no gestures working. Other than that, works with Desktop chrome, Firefox and Android Chrome (latest version) Quote Link to comment Share on other sites More sharing options...
dbawel Posted June 3, 2018 Share Posted June 3, 2018 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 Quote Link to comment Share on other sites More sharing options...
JasonX Posted June 3, 2018 Author Share Posted June 3, 2018 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> Quote Link to comment Share on other sites More sharing options...
davrous Posted June 3, 2018 Share Posted June 3, 2018 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 object: https://doc.babylonjs.com/how_to/caching_resources_in_indexeddb Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 4, 2018 Share Posted June 4, 2018 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. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
dbawel Posted June 4, 2018 Share Posted June 4, 2018 @JCPalmer I thought you wrote the .babylon exporter? DB Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.