dcversus Posted May 21, 2015 Share Posted May 21, 2015 HiI'm new in babylonjs. Recently I encountered a problem while creating the game. I create a model in blender and export this to .babylon format, all works fine, but when I want to add a reflection (in water) to this model game fails this error:babylon.2.0.js:4 Uncaught TypeError: Failed to execute 'uniformMatrix4fv' on 'WebGLRenderingContext': No function was found that matched the signature provided.Water init code (i use water from WORLDMONGER) water = BABYLON.Mesh.CreateGround("water", 1024, 1024, 1, scene, false); var waterMaterial = new WORLDMONGER.WaterMaterial("water", scene, light); waterMaterial.refractionTexture.renderList.push(ground); waterMaterial.reflectionTexture.renderList.push(skybox); water.visibility = 0.5; water.material = waterMaterial;After adding my mesh (after it loading)water.material.reflectionTexture.renderList.push(players[0].meshModel);In attach model that I use. In advance thanks. footman.zip Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 21, 2015 Share Posted May 21, 2015 Hello, this is neraly impossible to help you without a repro case Can you sahre a link with your scene? and Please use babylon.debug.js to get the un-minfied version Quote Link to comment Share on other sites More sharing options...
dcversus Posted May 21, 2015 Author Share Posted May 21, 2015 Thanks for your reply Deltakosh Used babylon.2.0.debug.js Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 21, 2015 Share Posted May 21, 2015 I meant: having a live demo Quote Link to comment Share on other sites More sharing options...
dcversus Posted May 21, 2015 Author Share Posted May 21, 2015 Sorry, but what do you mean on the "live demo". Babylonjs playground demo, yes? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 21, 2015 Share Posted May 21, 2015 THis would be huge but at least a web page on your site where I can test without having to build a repro on my own:) Quote Link to comment Share on other sites More sharing options...
dcversus Posted May 21, 2015 Author Share Posted May 21, 2015 I had to spend a lot of time to post a live demo, I hope it was worth it. As you can see, when loading error occursFailed to execute 'uniformMatrix4fv' on 'WebGLRenderingContext': No function was found that matched the signature provided.http://plnkr.co/edit/GwysJ44iNQaO6ZHPiLIf?p=preview Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 22, 2015 Share Posted May 22, 2015 Sounds like this is fixed by 2.1:http://plnkr.co/edit/cDqufCTHaBJoEiz8Gew8?p=preview dcversus 1 Quote Link to comment Share on other sites More sharing options...
dcversus Posted May 22, 2015 Author Share Posted May 22, 2015 Thank you very much! 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.