Skip to content
NetworkOffice edited this page Mar 6, 2016 · 1 revision

Flower格式

Flower is a text based file format used by NxOgre or Flour to convert into a more optimised nxs or xm mesh. It is native to NxOgre, but has OGRE and Blender exporters available.

Example

The following snippet is a Cube with a 200 metre length on all sides, it is specified as a convex mesh, but can be easily changed to a triangle, cloth or skeletonal one by adjusting the type on the second line..

# Cube
type convex
vertices -100.0,100.0,-100.0    #0
vertices 100.0,100.0,-100.0     #1
vertices 100.0,-100.0,-100.0    #2
vertices -100.0,-100.0,-100.0   #3
vertices -100.0,100.0,100.0     #4
vertices 100.0,100.0,100.0      #5
vertices 100.0,-100.0,100.0     #6
vertices -100.0,-100.0,100.0    #7
indexes 0,2,3, 0,1,2, 1,6,2, 1,5,6, 4,6,5, 4,7,6, 0,7,4, 0,3,7, 0,5,1, 0,4,5, 2,7,3, 2,6,7

Further information

Clone this wiki locally