Claxon Posted January 24, 2014 Share Posted January 24, 2014 I've just started playing with babylon and I'm quite enjoying it, but I quickly found that I wanted to make a change to babylon.particleSystem.js (adding min/max start angle for particles). My question is how do I test my changes? My html was including babylon.1.8.5.js which I'm aware is the minified version of the engine (and so doesn't include my changes), but what do I need to include to run the modified code?<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Babylon - Star Map</title> <style> html, body, div, canvas { width: 100%; height: 100%; padding: 0; margin: 0; overflow: hidden; } </style> <!-- Core babylon.js library --> <script src="babylon.1.8.5.js"></script> <script src="hand-1.3.4.js"></script> <!-- Engine Setup --> <script type="text/javascript" src="../main.js"></script> <!-- Scene Setup --> <script type="text/javascript" src="../scene_setup.js"></script> </head> <body> <div id="mainContent"> <canvas id="canvas"></canvas> </div> </body></html>I've read the page https://github.com/BabylonJS/Babylon.js/wiki/Creating-the-minified-version and seen that some people have a visual studio setup working, but I'm currently working on Linux so can't use VS or the BuildOurOwnBabylonJS.exe program to rebuild my code. I thought that copying the <script> tags from that page instead of my current <script src="babylon.1.8.5.js"></script> import, but that just generated the following error when I tried to load the page: Error: 0Unable to load Babylon/Shaders/particles.vertex.fxLine 215 Can anyone offer any clues? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 24, 2014 Share Posted January 24, 2014 To fix this error, just add this line before launching Babylon.js:BABYLON.Engine.ShadersRepository = "/Babylon/Shaders/"; Quote Link to comment Share on other sites More sharing options...
Claxon Posted January 24, 2014 Author Share Posted January 24, 2014 Thanks that helped. 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.