Sunflow Projects
From Sunflow Wiki
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.
- Menger Sponge
- Iterative Fractals
- File Mesh Allowing UV And Normal Data
- Isosurface using CubeGrid class
- Quadric Primitive
- Shader Blend Through The Iterations
- Modified Fake Ambient Term
- Filter Size Control
- Source Code Shaders
- IsoCube Primitive Using Version 0.06.3
- Isometric Lens
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");
