Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everybody!
I've written a converter, which read 3DXML files into 3dsMax scenes.
But I have a trouble with matrices.
Can someone tell what's wrong with my code, which is appying transformation matrices to created 3dsMax nodes?
maxobjectSceneNode - the 3dsMax node
objectSceneNode.matrixRelative - relative transformation matrix for the node
Here are my converter and the tested 3DXML file.
The converter is being installed by extracting archive into 3dsMax 2008 or 3dsMax 9 installation folder.
Might require the project folders (Customize -> Configure User Paths...)
I've written a converter, which read 3DXML files into 3dsMax scenes.
But I have a trouble with matrices.
Can someone tell what's wrong with my code, which is appying transformation matrices to created 3dsMax nodes?
maxobjectSceneNode - the 3dsMax node
objectSceneNode.matrixRelative - relative transformation matrix for the node
fn transformSceneNode maxobjectSceneNode = (
idSceneNode = getUserProp maxobjectSceneNode "idSceneNode"
objectSceneNode = objectsSceneNode
matrixRelative = objectSceneNode.matrixRelative
for nodeChild in maxobjectSceneNode do (
if (matrixRelative != undefined) then ( in coordsys parent nodeChild.transform = matrixRelative )
)
for nodeChild in maxobjectSceneNode.children do (
idChildSceneNode = getUserProp nodeChild "idSceneNode"
if (idChildSceneNode != undefined) then ( transformSceneNode nodeChild )
)
)
Here are my converter and the tested 3DXML file.
The converter is being installed by extracting archive into 3dsMax 2008 or 3dsMax 9 installation folder.
Might require the project folders (Customize -> Configure User Paths...)
Solved! Go to Solution.