collada-output-0.3: Generate animated 3d objects in COLLADA

Graphics.Formats.Collada.GenerateObjects

Synopsis

Documentation

aScene :: SceneSource

Example scene with a camera, lights and a cube

animation :: [Animation]Source

Example animation of the cube

cube :: GeometrySource

A blue/textured cube

polys :: [(Float, Float, Float)] -> [(Float, Float, Float)] -> [[Int]] -> [[Int]] -> [Geometry]Source

animation2 :: [Animation]Source

Animation of several cubes

new_channels :: AnimChannel -> [SceneNode] -> AnimChannelSource

generate an animation that points to the cubes

tran :: SceneNode -> (Float, Float, Float) -> String -> SceneNodeSource

a helper function for xyz_grid

xyz_grid :: Int -> Int -> Int -> Float -> SceneNode -> [SceneNode]Source

Generate a 3 dimensional grid where an object (stored in a SceneNode) is repeated in along the grid