private void renderScene() { /* * //Julia set takes time to render so we have to wait for it to complete * if (waitForJuliaSetToRender) { * if (BackgroundImageControllerScript.isSetGenerated()) { * //julia set ready switch cameras * mainCamera.enabled = false; //switch off first - bizarrre but it works * backgroundCamera.enabled = true; * mainCamera.enabled = true; //now switch on again * RenderSettings.skybox = noMaterial; * mainCamera.clearFlags = CameraClearFlags.Depth; * waitForJuliaSetToRender = false; * } * } */ //render brush if (brush != null) { //mutate current form brush.mutate(currentConfig, colourConfig); largestBoundsDistance = brush.getLargestBoundDistance(); } //render saved forms foreach (Trunk model in currentScene) { model.mutate(null, null); } }
public void createNewBrush() { //clear current brush clearBrush (); //create new colour configuration for each form ColourConfiguration.BackgroundType background = ColourConfiguration.BackgroundType.None; if (colourConfig != null) { background = colourConfig.getBackgroundType(); } colourConfig = new ColourConfiguration(); colourConfig.setBackgroundType (background); //create new brush brush = new Trunk(currentConfig, colourConfig); largestBoundsDistance = brush.getLargestBoundDistance (); }
public void createNewBrush() { //clear current brush clearBrush(); //create new colour configuration for each form ColourConfiguration.BackgroundType background = ColourConfiguration.BackgroundType.None; if (colourConfig != null) { background = colourConfig.getBackgroundType(); } colourConfig = new ColourConfiguration(); colourConfig.setBackgroundType(background); //create new brush brush = new Trunk(currentConfig, colourConfig); largestBoundsDistance = brush.getLargestBoundDistance(); }