dsman Posted December 2, 2017 Share Posted December 2, 2017 - I had a Babylon scene, which was opening fine through very basic scene code with basic camera and light setting. - I opened the scene in Babylon editor (editor.babylon.com) and added a reflection probe named "New Reflection Probe", attached to a mesh, added meshes to its render list and finally set ReflectionTexture in a PBR material properties for a mesh to this "New Reflection Probe" from the drop-down. - Everything is fine. The mesh was showing reflection as expected. - Now I exported Babylon scene. Copied the JSON content that shows up in the export popup. Replaced the content of my .babylon file with that content. And tried reloading the page. It showed errors like below in browser console: BJS - [16:08:16]: Babylon.js engine (v3.1-beta-6) launchedbabylon.3.1.beta.max.js:6692 BJS - [16:08:17]: CannonJS is not available. Please make sure you included the js file. @ babylon.3.1.beta.max.js:6692 babylon.3.1.beta.max.js:6692 BJS - [16:08:17]: Physics Engine CannonJSPlugin cannot be found. Please make sure it is included. @ babylon.3.1.beta.max.js:6692 /models/interior/New%20Reflection%20Probe_px.jpg Failed to load resource: the server responded with a status of 404 (Not Found) /models/interior/New%20Reflection%20Probe_py.jpg Failed to load resource: the server responded with a status of 404 (Not Found) /models/interior/New%20Reflection%20Probe_pz.jpg Failed to load resource: the server responded with a status of 404 (Not Found) /models/interior/New%20Reflection%20Probe_nx.jpg Failed to load resource: the server responded with a status of 404 (Not Found) /models/interior/New%20Reflection%20Probe_ny.jpg Failed to load resource: the server responded with a status of 404 (Not Found) /models/interior/New%20Reflection%20Probe_nz.jpg Failed to load resource: the server responded with a status of 404 (Not Found) babylon.3.1.beta.max.js:6692 BJS - [16:08:20]: Error while trying to load image: ../../models/interior/New Reflection Probe_px.jpg @ babylon.3.1.beta.max.js:6692 babylon.3.1.beta.max.js:6692 BJS - [16:08:20]: Error while trying to load image: ../../models/interior/New Reflection Probe_py.jpg @ babylon.3.1.beta.max.js:6692 babylon.3.1.beta.max.js:6692 BJS - [16:08:20]: Error while trying to load image: ../../models/interior/New Reflection Probe_pz.jpg @ babylon.3.1.beta.max.js:6692 babylon.3.1.beta.max.js:6692 BJS - [16:08:20]: Error while trying to load image: ../../models/interior/New Reflection Probe_nx.jpg @ babylon.3.1.beta.max.js:6692 babylon.3.1.beta.max.js:6692 BJS - [16:08:20]: Error while trying to load image: ../../models/interior/New Reflection Probe_ny.jpg @ babylon.3.1.beta.max.js:6692 babylon.3.1.beta.max.js:6692 BJS - [16:08:20]: Error while trying to load image: ../../models/interior/New Reflection Probe_nz.jpg @ babylon.3.1.beta.max.js:6692 If I understand Probes well, they are runtime generated and are in-memory. Why them Babylon is looking for texture files? PS: I don't understand the reason behind showing Babylon JSON in a popup for Babylon Export in Babylon Editor. Especially prettified/maxified JSON. After saving the exported JSON output it was 16 MB. I literally tried 5-6 plugins of Notepad++, Sublime, and VS Code, none worked. I tried online minifier but browser, of course, became irresponsive. I tried 2-3 node packages too but it didn't work. Ideally, the export option should simply download the .babylon file automatically. Not sure who would use prettified/maxified JSON for what purpose. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 2, 2017 Share Posted December 2, 2017 ping @Luaacro. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 4, 2017 Share Posted December 4, 2017 Hey thanks for feedback! @dsman I’m adding this feature. For the reflection probes, we need to update Babylon.js. I’ll let you know once done Quote Link to comment Share on other sites More sharing options...
dsman Posted December 5, 2017 Author Share Posted December 5, 2017 @Luaacro Thanks. Would be waiting for the commit. Please update when you do. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 6, 2017 Share Posted December 6, 2017 Hey @dsman, for the feature you asked it has just been added and deployed at http://editor.babylonjs.com/ My next step is to add Reflection Probe well parsed and will let you know once done! Quote Link to comment Share on other sites More sharing options...
dsman Posted December 7, 2017 Author Share Posted December 7, 2017 @Luaacro Thanks for the update. Looking forward to the fix for Reflection Probe. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted April 25, 2018 Share Posted April 25, 2018 @Deltakosh is there any action to serialize / parse reflection probes ? If not, I can focus and pull request Quote Link to comment Share on other sites More sharing options...
Guest Posted April 25, 2018 Share Posted April 25, 2018 We don't so far. So please be my guest 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.