#threeflow.js : Sunflow for three.js
To come..
- ao materials & ao overrides
- node server work & npm package.
- export normals & uvs > texture support
Installation via npm. Will run a local socket server that projects can connect to..
# npm package to come..
1. Perlin noise scaled THREE.CubeGeometry with THREEFLOW.AreaLight
2. Camaro Model with THREE.MeshFaceMaterial,THREEFLOW.Shiny/MirrorMaterial
4. THREE.IcosahedronGeometry with THREEFLOW.AreaLight
3. WIP - working on THREE.MorphAnimMesh & THREE.FaceColors support
To come..
coffescript example:
# create an instance of the renderer
# along with some render output paths
renderer = new THREEFLOW.SunflowRenderer
pngPath: "renders/myRender.png"
# connect to the socket server.
renderer.connect()
# to render a three.js scene:
renderer.render scene,camera,width,height
Example source can be found here
Material documentation found here
Lights documentation found here
The majority of the information on Sunflow can be found in the Sunflow Wiki. To better understand the full .sc file parser, the source code for the parser can be found in the ScParser.java file in the source.
Sunflow Site
Sunflow Wiki
Sunflow Source
- https://github.com/fpsunflower/sunflow
- https://github.com/fpsunflower/sunflow/blob/master/src/org/sunflow/core/parser/SCParser.java
Sunflow Misc