jurito Posted September 28, 2018 Share Posted September 28, 2018 Hello and first of all sorry for the noob question. I am trying to convert this THREEjs shader to Babylon to no avail. I used https://www.babylonjs-playground.com/#DAC1WM as base and managed to arrive to https://www.babylonjs-playground.com/#DAC1WM#1 and now i'm kinda stuck. Anyone can help? TIA Quote Link to comment Share on other sites More sharing options...
Guest Posted September 28, 2018 Share Posted September 28, 2018 Hello and welcome! you have all you need in the console: vUv is undeclared and has to be renamed to vUV https://www.babylonjs-playground.com/#DAC1WM#2 Quote Link to comment Share on other sites More sharing options...
SinhNQ Posted September 28, 2018 Share Posted September 28, 2018 Hi @jurito From link above github, i saw them use more than one shader to create effects. I have ported 2 shaders BadTVShader.js and SaticShader.js. Here: https://github.com/felixturner/bad-tv-shader/tree/master/example/js Demo: https://www.babylonjs-playground.com/#DAC1WM#3 The other, you do the same. Hope this help you! Quote Link to comment Share on other sites More sharing options...
jurito Posted October 1, 2018 Author Share Posted October 1, 2018 well, thanks A LOT. Quote Link to comment Share on other sites More sharing options...
jurito Posted October 8, 2018 Author Share Posted October 8, 2018 Meanwhile I managed to convert other shaders and even make (simple of course) new ones but i noticed missed something on this one.. Demo with only the badtv shader: https://www.babylonjs-playground.com/#DAC1WM#4 if you play a bit with the 'distortion' and 'distorsion2' parameters, you'll see that they don't influence the shader at all, while they do on the ThreeJS demo (http://felixturner.github.io/bad-tv-shader/example/ , parameters 'Thick distort' and 'Fine distort'). Anyone can help me understand why? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 8, 2018 Share Posted October 8, 2018 Because there is a typo (distorTion vs distorSion) https://www.babylonjs-playground.com/#DAC1WM#5 Quote Link to comment Share on other sites More sharing options...
jurito Posted October 9, 2018 Author Share Posted October 9, 2018 omg i need some rest ? sorry to bother Quote Link to comment Share on other sites More sharing options...
Guest Posted October 9, 2018 Share Posted October 9, 2018 No worry 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.