Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # comments with #
- # define model format of following data with FMT XZY (OpenGL style) or XYZ (Cartesian)
- # define polygon with POLY{data}
- # example:
- # POLY{
- # t TRIANGLE,
- # n X Y Z # normal of face
- # c R G B # optional, color of all following vertices (multi-color polygon possible)
- # v x Y Z # first vertex
- # v X Y Z # second vertex
- # v X Y Z # last vertex, define all vertices counter-clockwise
- # }
- # add physical solid with POLY{data},
- # which is defined by normals that face away from the center.
- # example:
- # PHYS{
- # t CONVEX # type of solid, CONVEX or SPHERE possible (latter is faster in processing)
- # v X Y Z # first normal, start point
- # v X Y Z # first normal, end point
- # v X Y Z # second normal, start point
- # v X Y Z # second normal, end point
- # etc.
- # }
- # These normals are used for collision testing,
- # if a point is beneath all of these normals, a collision is happening.
- #
- # all numbers after n, c, v can be seperated by characters of your choice
- FMT XYZ
- POLY{
- t TRIANGLE,
- n 0 0 -1,
- c 1 1 0,
- v -1 0 0,
- v 0 1 0,
- v 1 0 0,
- }
- POLY{
- t TRIANGLE;
- n 1 1 1,
- c 0.5 0.4 0.1,
- v 1 0 0,
- v 0 0 1,
- v 0 1 0,
- }
- POLY{
- t TRIANGLE,
- n -1 1 1,
- v -1 0 0,
- v 0 0 1,
- v 0 1 0,
- }
- POLY{
- t TRIANGLE,
- n 0 -1 0,
- v -1 0 0,
- v 1 0 0,
- v 0 0 1,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement