neoRiley Posted January 23, 2014 Share Posted January 23, 2014 I'm following the tutorial here: https://github.com/BabylonJS/Babylon.js/wiki/15-Environment In the tutorial, it mentions "Skybox_px.png", but then the sample images are labeled as ".jpg". When i run my code, the engine is assuming .jpg for the file extensions as I'm getting 404 errors saying that "Skybox_px.jgp" is missing. Is there anyway to specify the extension to be used for the skybox images? Thanks for your help, John Quote Link to comment Share on other sites More sharing options...
neoRiley Posted January 23, 2014 Author Share Posted January 23, 2014 ah... it's hardcoded: line 812 babylon.engine.js:var extensions = ["_px.jpg", "_py.jpg", "_pz.jpg", "_nx.jpg", "_ny.jpg", "_nz.jpg"]; I'd like to put in a request to have this dynamic Quote Link to comment Share on other sites More sharing options...
neoRiley Posted January 23, 2014 Author Share Posted January 23, 2014 actually, ultimately, we should be able to send an array of images in the proper order so that we don't have to follow the px, py, pz, nx, ny, nz format. Many of the skyboxes I own use front, back, left, right, up, down in their naming convention. So passing an array in the proper would make it an open solution at that point. Thoughts? Thanks guys! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 23, 2014 Share Posted January 23, 2014 Good idea, I've just changed the signature of new BABYLOn.CubeTexture to this one: BABYLON.CubeTexture = function (rootUrl, scene, extensions) { this._scene = scene; this._scene.textures.push(this); this.name = rootUrl; this.url = rootUrl; this.hasAlpha = false; this.coordinatesMode = BABYLON.Texture.CUBIC_MODE; this._texture = this._getFromCache(rootUrl); if (!extensions) { extensions = ["_px.jpg", "_py.jpg", "_pz.jpg", "_nx.jpg", "_ny.jpg", "_nz.jpg"]; } Quote Link to comment Share on other sites More sharing options...
neoRiley Posted January 23, 2014 Author Share Posted January 23, 2014 Thats excellent - thanks very much! Is that pushed to git? ... never mind, I see it Thanks again! John Quote Link to comment Share on other sites More sharing options...
neoRiley Posted January 23, 2014 Author Share Posted January 23, 2014 Hey Deltakosh, I was told you're in charge of making the minified versions - is that right? and if so, could I get you to make one for the latest release? Thanks again, John Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 23, 2014 Share Posted January 23, 2014 You can do so: Babylon.js-master\Tools\BuildOurOwnBabylonJS\BuildOurOwnBabylonJS\executables\BuildOurOwnBabylonJS.bat Then you will find the file here: Babylon.js-master\Tools\BuildOurOwnBabylonJS\BuildOurOwnBabylonJS\ourOwnBabylon.js Quote Link to comment Share on other sites More sharing options...
neoRiley Posted January 23, 2014 Author Share Posted January 23, 2014 ah thank you, I have mac, but run Windows on VMWare and was able to create it just fine - thanks very much, John Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 24, 2014 Share Posted January 24, 2014 Minifed version updated 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.