Eric McG Posted April 30, 2016 Share Posted April 30, 2016 Hi, I'm trying to use the waterMaterial as shown in the tutorial found here: http://doc.babylonjs.com/extensions/Water. In the tutorial it refers to the waterMaterial.js file located here: https://github.com/BabylonJS/Babylon.js/blob/master/materialsLibrary/dist/babylon.waterMaterial.js. In the waterMaterial.js file there is a call to BABYLON.serializeAsTexture(). When I use the waterMaterial.js file, my scene (http://n0code.net/bc/csci305/water_scene.html) won't render and complains that BABYLON.serializeAsTexture() is undefined. I'm using http://cdn.babylonjs.com/2-3/babylon.js and can't find serializeAsTexture() defined in the babylon.js file. Can anyone tell me if I'm using the wrong babylon.js file or where I'm going wrong? Thanks!!! ~Eric Quote Link to comment Share on other sites More sharing options...
Eric McG Posted May 1, 2016 Author Share Posted May 1, 2016 I found that serailizeAsTexture() is defined in the preview version of babylon.js: https://github.com/BabylonJS/Babylon.js/blob/master/dist/preview%20release/babylon.js. Using the preview version of babylon.js fixes the problem. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 1, 2016 Share Posted May 1, 2016 Yep you nailed it Eric McG 1 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.