Package org.jwildfire.create.tina.meshgen.sunflow

Examples of org.jwildfire.create.tina.meshgen.sunflow.SceneBuilder


  }

  private void exportMeshToSunflow(Mesh pMesh, String pFilename) {
    try {
      long t0 = System.currentTimeMillis();
      SceneBuilder scene = ExampleScenes.getExampleScene1();
      scene.addMesh()
          .withMesh(pMesh)
          .withName("generated mesh")
          .withShader(ExampleScenes.SHADER_SHINY);
      Tools.writeUTF8Textfile(pFilename, scene.getProduct());
      long t1 = System.currentTimeMillis();
      double elapsedTime = (t1 - t0) / 1000.0;
      tinaController.showStatusMessage(currBaseFlame, "Scene \"" + new File(pFilename).getName() + "\" exported, elapsed time: " + Tools.doubleToString(elapsedTime) + "s");
    }
    catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.jwildfire.create.tina.meshgen.sunflow.SceneBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.