Shannon Poole Posted June 21, 2014 Share Posted June 21, 2014 I am trying to build babylon using the gulp tool. It all seemed to build fine but when I try to create a simple scene I get some errors. Chrome console output:BJS - [20:58:48]: Unable to compile effect: defaultBJS - [20:58:48]: Defines: #define LIGHT0#define POINTDIRLIGHT0#define UV1BJS - [20:58:48]: Optional defines:BJS - [20:58:48]: Error: ERROR: 0:4: 'ifdef' : syntax errorAny ideas? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 22, 2014 Share Posted June 22, 2014 Could you give us a live link? Quote Link to comment Share on other sites More sharing options...
Shannon Poole Posted June 23, 2014 Author Share Posted June 23, 2014 Sure http://smashplug.com/babylon/ It's just the 01 Basic Scene source using my build. I didn't actually make any changes yet. I just cloned the repo, ran npm install and ran gulp. I tried gulp typescript as well but same error. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 24, 2014 Share Posted June 24, 2014 Hum there is no shader in your babylon.js code This may be a problem with gulp. (I did not do that part) Quote Link to comment Share on other sites More sharing options...
SideraX Posted June 25, 2014 Share Posted June 25, 2014 Hi, It seems gulp have a bug when it strip the bom character of the shaders files before it concat them (the # was striped instead). Maybe because of your os/editor if you have edited this files. Anyway I will submit a patch after work Quote Link to comment Share on other sites More sharing options...
Shannon Poole Posted June 25, 2014 Author Share Posted June 25, 2014 Awesome thanks For reference I was using Windows 8 and Sublime Text 3. 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.