Sunflow Projects

From Sunflow Wiki

Jump to: navigation, search

Introduction

Most of the projects below are meant to be added to a .java file (though some are patches to the source). So for the java file projects all you would need to do is take a plain text file then rename it to anything.java. Using the GUI you can open this file like a scene file or use the command line to render the file out by putting the image type of your choice (e.g. -o output.hdr fractal.java). Some of the files below make use of outside scene files that you must have, but several are "stand-alone" and don't require you to do anything except load the java file.

Note On The SVN Version

You might notice that running these files using the SVN version of Sunflow (0.07.3 and up) may throw errors. This may be due to several changes to the code, but I will list the top two things you should check/correct:

  • "parse" has been replaced by "include"
  • Calling objects is different in 0.07.3 thanks to the use of the plugin registry. As an example, lets look at how a camera is added to the .java file. The 0.07.2 way is to use the following:
camera("myCamera", new PinholeLens());

The 0.07.3 way is a bit different.

camera("myCamera", "pinhole");
Personal tools