saldukoo Posted March 11, 2016 Share Posted March 11, 2016 Im trying to access the materials library here: https://github.com/BabylonJS/Babylon.js/tree/master/materialsLibrary/dist So after placing this script <script src="/assets/game/Babylon.js-master/materialsLibrary/dist/babylon.brickProceduralTexture.min.js"></script> I get this for all materials TypeError: BABYLON.serializeAsTexture is not a function The procedural texture library works though. How to fix this one? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 11, 2016 Share Posted March 11, 2016 Are you using bjs 2.4? Quote Link to comment Share on other sites More sharing options...
saldukoo Posted March 11, 2016 Author Share Posted March 11, 2016 I was using 2.3. After installing 2.4 the error vanished. The materials aren't working though. Im getting weird looking shaders. Here's the error for FireMaterial. BJS - [00:59:25]: Unable to compile effect: babylon.2.4.js:3:14480 BJS - [00:59:25]: Vertex shader:fire babylon.2.4.js:3:14480 BJS - [00:59:25]: Fragment shader:fire babylon.2.4.js:3:14480 BJS - [00:59:25]: Defines: #define ALPHATEST #define BonesPerMesh 0 #define NUM_BONE_INFLUENCERS 0 babylon.2.4.js:3:14480 BJS - [00:59:25]: Error: ERROR: 0:137: 'uv' : undeclared identifier ERROR: 0:137: 'x' : field selection requires structure or vector on left hand side ERROR: 0:138: 'y' : field selection requires structure or vector on left hand side ERROR: 0:139: 'x' : field selection requires structure or vector on left hand side ERROR: 0:140: 'y' : field selection requires structure or vector on left hand side ERROR: 0:141: 'x' : field selection requires structure or vector on left hand side ERROR: 0:142: 'y' : field selection requires structure or vector on left hand side babylon.2.4.js:3:14480 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 11, 2016 Share Posted March 11, 2016 Adding @Luaacro who wrote the fireMaterial Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted March 15, 2016 Share Posted March 15, 2016 Hello saldukoo, can you share with us your material configuration ? In my tests the material works, so I need your configuration to find the special case where you get this error. Thanks ! Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted March 31, 2016 Share Posted March 31, 2016 Hi saldukoo, I finally found the problem and fixed it: https://github.com/BabylonJS/Babylon.js/pull/1076 Have fun! 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.