- type Point = (Float, Float, Float)
- type Normal = (Float, Float, Float)
- genCollada :: Element -> (Scene, Animations) -> IO ()
- basicFrame :: Element -> (Scene, Animations) -> Element
- standardAsset :: String -> String -> Element
- time8601 :: UTCTime -> IO String
- cam :: SceneNode -> [Element]
- light :: SceneNode -> [Element]
- light2 :: Light -> Element
- im :: [SceneNode] -> [Element]
- getGeometries :: SceneNode -> [Geometry]
- getMeshes :: Geometry -> [Mesh]
- getMaterials :: Mesh -> [Material]
- mat :: [SceneNode] -> [Element]
- eff :: [SceneNode] -> [Element]
- effects :: (SID, Effect) -> Element
- colorNodes :: Fx_common_color_type -> Element
- geo :: [SceneNode] -> [Element]
- mesh_element :: Int -> Geometry -> Element
- material :: [[Int]] -> [[Int]] -> String -> String -> String -> String -> [Element]
- primitives :: String -> String -> [Point] -> [Normal] -> Mesh -> [Element]
- interl :: Int -> [Int]
- visual_scene :: Scene -> Element
- treeToNodes :: Scene -> Element
- ttn :: String -> [(ID, Transform)] -> [Camera] -> [Geometry] -> [Light] -> [Element]
- instances :: String -> String -> Element
- instances_geo :: String -> Geometry -> Element
- hasTextures :: (SID, Profile) -> [Bool]
- transf :: (SID, Transform) -> [Element]
Documentation
genCollada :: Element -> (Scene, Animations) -> IO ()Source
basicFrame :: Element -> (Scene, Animations) -> ElementSource
the basic structure of a Collada file, contains library_... nodes, where library_s are for referencing
standardAsset :: String -> String -> ElementSource
document information: author, time created ...
cam :: SceneNode -> [Element]Source
extract cameras from SceneNodes and remove duplicates
extract lights from SceneNodes and remove duplicates
extract geometries from SceneNodes and remove duplicates
library_cameras
light :: SceneNode -> [Element]Source
Perpective projection: see http://en.wikipedia.org/wiki/Viewing_frustum
library_lights
getGeometries :: SceneNode -> [Geometry]Source
getMaterials :: Mesh -> [Material]Source
mesh_element :: Int -> Geometry -> ElementSource
visual_scene :: Scene -> ElementSource
library_visual_scenes: nested nodes with references to cameras, lights, geometries, ...
treeToNodes :: Scene -> ElementSource
instances_geo :: String -> Geometry -> ElementSource
hasTextures :: (SID, Profile) -> [Bool]Source