Jump to content

How to run modified babylon code?


Recommended Posts

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: 0
Unable to load Babylon/Shaders/particles.vertex.fx
Line 215




Can anyone offer any clues?

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...