Jump to content


  • Content Count

  • Joined

  • Last visited

About paleRider

  • Rank
    Advanced Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    EU / Spain / Zaragoza
  • Interests

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. As an epilogue, and thinking it can be useful for somebody, I finally managed to have my DDS local file loaded by means of CreateFromPrefilteredData, on Cordova-iOS, with the help of cordova-plugin-wkwebview-file-xhr. Best regards.
  2. Well, only as a epilogue for this (already closed) issue, I finally managed to have my DDS local file working on iOS. Please see related thread: ...with the help of cordova-plugin-wkwebview-file-xhr. Sadly, against the expected, that is not the same with the other XHR-loaded asset of my app, the MP3 local file, so I get the following Xcode error output on it: 2018-04-04 16:43:53.758536+0200 ERROR: BJS - [16:43:53]: error on XHR request. 2018-04-04 16:43:53.760983+0200 xhr-polyfill.js - exception delivering event {"isTrusted":false} TypeError: Argument 1 ('audioData') to webkitA
  3. Well, this is embarrasing... the case is that my problem with remote served mp3 not "sounding" was only due to the infamous Side Switch. It was turned off. The confusing thing was that movies and music were played w/o problem (?) and so I didn't realized it was off.
  4. Thanks JC: Yes, I suppose I need to start looking for this issue in JQM/Ionic/Cordova forums. With iOS you always know it's going to be painful.
  5. Hi there: As using the environment in a DDS format is revealing as an excesive time consuming task, I'm decided to keep the things simple and use the good old 6-sides method for the CubeTexture/CubeMap. Thank you very much.
  6. Hi JCPalmer: Well, as Deltakosh wrote this is a problem related with the way Cordova-iOS manages the local storage XHR resources. Anyway, when I use a web-served URI, the error is gone (so I suppose the mp3 is loaded) but sadly no sound is produced.
  7. Hi Deltakosh, and thank you very much for your support in this "not-really-a-BJS-issue" issue. If I understand, I need to implement it (more or less) this way: var xhr=new XMLHttpRequest(); xhr.open("GET","assets/textures/environment.dds",true); xhr.responseType="arraybuffer"; xhr.addEventListener("load", function(){ if(xhr.status===200){ var blob=new Blob([xhr.response],{type: "image/png"}); var blobURL=URL.createObjURL(blob); texEnvironment =BABYLON.CubeTexture.CreateFromPrefilteredData(blobURL,_Scene); } },function(){ alert("Error"); }; ); Isn'
  8. Hi Deltakosh: I supposed that but the console logs are quite different. Anyway, I'll try the way-of-the-blob also here and let you know. Thank you.
  9. BTW I'm trying to tackle the problem also from the Cordova side. There're are several plugins that promises to solve XHR issues within iOS environment (so this is a really hot matter). The case is that, for example, cordova-plugin-ionic-webview works but its performance is very poor (maybe because I'm using JQM and not Ionic). Maybe that poor performance is due to the overhead of running a local http server. On the other hand the more "framework agnostic" and not running any http server, the Oracle's pair: cordova-plugin-wkwebview-engine (1.1.4) + cordova-plugin-wkwebview-file
  10. Well, my (really-simple) sound related code lines are these: var _Sfx=new BABYLON.Sound("sfx","assets/sounds/sfx.mp3",_Scene,null,{ autoplay: false, loop: true, volume: 0} ); ... function _updateVolume(param){ ... // _Sfx.setVolume(param); } As said, it works on: desktop - Windows - web - FF desktop - Windows - web - Chrome desktop - macOSX - web - Safari mobile - Android - web - Chrome mobile - Android - hybrid app (Cordova) mobile - iOS - web - Safari But not in mobile - iOS - hybrid app (Cordova). Best regards.
  11. Hi PsichiX: Tomorrow in the morning (CET) I'll be back in the office, able to show that (very simple) lines of code. Anytime please consider that the code is working flawless in browsers (Win, macOS and Linux) and Android Cordova hybrid app, and only failing in iOS Cordova hybrid app. Thanks for your time. Best regards.
  12. Hi there: I have a BJS development in production that works great in all platform but iOS-Cordova app. In this last configuration the sound doesn't work at all, dumping the following error message: Any clues on this? Thanks for your time.
  13. Hi again Deltakosh: I'm here again after a break, in order to (hopefully) finish this development. Retaking the conversation where we let it, we had a DDS texture that Cordova-iOS implementation refused to load by means of BABYLON.CubeTexture.CreateFromPrefilteredData BJS API, because "...WKWebView appears to treat local files as if they came from a remote server, even though they're in the app itself, and such requests are blocked." (taken from Construct Engine / Ashley's Blog / https://www.construct.net/es/blogs/ashleys-blog-2/hacking-something-useful-out-of-wkwebview-932) Fro
  14. Hi Deltakosh: Of course this is not BJS Engine fault, but.. please, understand me, I thought it was possible to have a WebGL cross-platform framework capable to achieve the requirements of my average projects. In this direction, the inclusion of PBR materials in the engine was great news. Sadly, you'll need environment textures if you are going to use PBRs in a proper way. And so is how we got to where we are now. Well, if XHR is needed but we canĀ“t use it under iOS-Cordova, ... the available options here are: store that DDS in a web server and include the need for Inter
  15. Hi again DK: I've just realized you were asking me for a profiler screenshot when using online environment DDS path, here you are: I hope this helps! Thank you for your time.
  • Create New...