Scene Converter
Scene Converter
The Scene Converter is a command-line tool.
Usage
scene_converter <param 1> <param 2> ...
Example:
scene_converter.exe -c scene_config.xml -lv -a "fbxName=original/%1.fbx" -a "outPath=converted/" -a "imageNormal=default/default_normal.png" -a "imageSpecular=default/default_specular.png"</c>
Description
--configor-c, optional, multiple : XML configuration file name--attributeor-a, optional, multiple : Attribute assignment for use in XML file (attribute="{}")--analyzeor-z, optional : Scene file name to analyze. Mutually exclusive with--config.--quietor-q, optional, switch : Suppress information printing--debugor-d, optional, switch : Print debug information--launch_vieweror-lv, optional, switch : Launch scene_viewer after successful conversion
XML configuration file
The configuration file is a standard XML file and should start with:
<?xml version="1.0" encoding="utf-8"?>
Valid XML Tags:
<SceneConverter>An XML scene converter file is recognized by its <SceneConverter> root element.
Attributes and child tags:
pathNameString,<InputPackage>Input package description and properties.
Attributes and child tags:
fileNameString,
<InputProperties>Input properties description and properties.
Attributes and child tags:
idString,<ImageLocation>ImageLocation.
Attributes and child tags:
pathNameString,
<Material>Material replacement.
Attributes and child tags:
createWithIdString,createWithGraphNodeIdString,createWithSlotSInt32,findIdMatchingPatternString,replaceWithGraphNodeIdString,replaceWithSlotSInt32,replaceWithMaterialSlotSInt32,replaceWithTextureSlotSInt32,replaceWithParametersSlotSInt32,replaceWithShaderResourceIdPatternString,ignoreBool, defaultNOambientColorColor,diffuseColorColor,specularColorColor,emissiveColorColor,shininessDouble,bumpScaleReal, default0.0blendModeMurl::IEnums::BlendMode,lightingEnabledBool, defaultNOcoloringEnabledBool, defaultYEScanBeMergedBool, defaultYESreplaceWithVertexShaderResourceIdPatternString,replaceWithFragmentShaderResourceIdPatternString,<Texture>Texture.
Attributes and child tags:
findIndexSInt32,findFileNameMatchingPatternString,createWithFileNameString,createWithImageIdString,createWithTextureIdString,createWithSlotSInt32,replaceWithFileNameString,replaceWithImageIdString,replaceWithGraphNodeIdString,replaceWithSlotSInt32,sizeXUInt32,sizeYUInt32,flipXBool,flipYBool,rotationMurl::IEnums::Orientation,ignoreBool, defaultNOsrgbBool,semantic.rMurl::IEnums::TextureSemantic,semantic.gMurl::IEnums::TextureSemantic,semantic.bMurl::IEnums::TextureSemantic,semantic.aMurl::IEnums::TextureSemantic,
<Texture>Texture.
Attributes and child tags:
(see above)<Clip>Clip description and properties.
Attributes and child tags:
createWithIdString,findIdMatchingPatternString,replaceWithIdString,durationDouble,<Skeleton>Skeleton description and properties.
Attributes and child tags:
sourceSkeletonIdString,sourceClipIdString,sourcePoseIdString,destinationPoseIdString,<Constraint>Constraint description and properties.
Attributes and child tags:
nodeIdString,minXDouble,maxXDouble,minYDouble,maxYDouble,minZDouble,maxZDouble,
<MorphTarget>MorphTarget description and properties.
Attributes and child tags:
sourceMorphTargetIdString,keyFrameFileNameString,keyFrameFilePathString,
<Node>Node description and properties.
Attributes and child tags:
createWithIdString,findIdMatchingPatternString,responseGroupsMurlMaskUInt32,flattenBool, defaultNOrotateXAngle,rotateYAngle,rotateZAngle,translateXDouble,translateYDouble,translateZDouble,indexTypeMurl::IEnums::IndexType,
<Mesh>Mesh description and properties.
Attributes and child tags:
findIdMatchingPatternString,findMaterialIdMatchingPatternString,replaceWithIdString,ignoreBool, defaultNOtranslateUDouble, default0.0translateVDouble, default0.0scaleUDouble, default1.0scaleVDouble, default1.0
<InputImage>Input image description and properties.
Attributes and child tags:
idString,fileNameString,sizeXUInt32,sizeYUInt32,flipXBool,flipYBool,rotationMurl::IEnums::Orientation,srgbBool,<Map>Map description and properties.
Attributes and child tags:
sourceImageIdString,sourceComponentMurl::IEnums::ColorComponent,destinationComponentMurl::IEnums::ColorComponent,
<InputScene>Input scene description and properties.
Attributes and child tags:
idString,fileNameString,pathNameString,maxVertexCountSInt32,maxIndexCountSInt32,optimizeGraphBool,splitVerticesBool,maxBoneCountSInt32,maxBoneWeightsSInt32,normalSmoothLimitAngle,tangentSmoothLimitAngle,translateXDouble,translateYDouble,translateZDouble,rotateXAngle,rotateYAngle,rotateZAngle,colorActionMurl::IEnums::ComponentActionSceneConverter, defaultDEFAULTnormalActionMurl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtangentActionMurl::IEnums::ComponentActionSceneConverter, defaultDEFAULTboneWeightActionMurl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordAction0Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordModuloX0Double, default0.0texCoordModuloY0Double, default0.0texCoordAction1Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordModuloX1Double, default0.0texCoordModuloY1Double, default0.0texCoordAction2Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordModuloX2Double, default0.0texCoordModuloY2Double, default0.0texCoordAction3Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordModuloX3Double, default0.0texCoordModuloY3Double, default0.0texCoordAction4Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordModuloX4Double, default0.0texCoordModuloY4Double, default0.0texCoordAction5Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordModuloX5Double, default0.0texCoordModuloY5Double, default0.0texCoordAction6Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordModuloX6Double, default0.0texCoordModuloY6Double, default0.0texCoordAction7Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordModuloX7Double, default0.0texCoordModuloY7Double, default0.0scaleDouble,scaleXDouble,scaleYDouble,scaleZDouble,<ImageLocation>ImageLocation.
Attributes and child tags:
(see above)<Material>Material replacement.
Attributes and child tags:
(see above)<Texture>Texture.
Attributes and child tags:
(see above)
<Texture>Texture.
Attributes and child tags:
(see above)<Clip>Clip description and properties.
Attributes and child tags:
(see above)<Skeleton>Skeleton description and properties.
Attributes and child tags:
(see above)<Constraint>Constraint description and properties.
Attributes and child tags:
(see above)
<MorphTarget>MorphTarget description and properties.
Attributes and child tags:
(see above)
<Node>Node description and properties.
Attributes and child tags:
(see above)<Mesh>Mesh description and properties.
Attributes and child tags:
(see above)<SkeletonSplit>SkeletonSplit description and properties.
Attributes and child tags:
boneIdString,
<Properties>Properties description and properties.
Attributes and child tags:
sourcePropertiesIdString,
<InputPose>Input pose description and properties.
Attributes and child tags:
idString,fileNameString,pathNameString,maxVertexCountSInt32,maxIndexCountSInt32,<Node>Node description and properties.
Attributes and child tags:
(see above)<Mesh>Mesh description and properties.
Attributes and child tags:
(see above)<Properties>Properties description and properties.
Attributes and child tags:
(see above)
<InputSkeleton>Input skeleton description and properties.
Attributes and child tags:
idString,fileNameString,pathNameString,maxVertexCountSInt32,maxIndexCountSInt32,<Node>Node description and properties.
Attributes and child tags:
(see above)<Mesh>Mesh description and properties.
Attributes and child tags:
(see above)<Properties>Properties description and properties.
Attributes and child tags:
(see above)
<InputMorphTarget>Input morph target description and properties.
Attributes and child tags:
idString,fileNameString,pathNameString,maxVertexCountSInt32,maxIndexCountSInt32,colorActionMurl::IEnums::ComponentActionSceneConverter, defaultDEFAULTnormalActionMurl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtangentActionMurl::IEnums::ComponentActionSceneConverter, defaultDEFAULTboneWeightActionMurl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordAction0Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordAction1Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordAction2Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordAction3Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordAction4Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordAction5Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordAction6Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULTtexCoordAction7Murl::IEnums::ComponentActionSceneConverter, defaultDEFAULT<Node>Node description and properties.
Attributes and child tags:
(see above)<Mesh>Mesh description and properties.
Attributes and child tags:
(see above)<Properties>Properties description and properties.
Attributes and child tags:
(see above)
<OutputPackage>Output package description and properties.
Attributes and child tags:
fileNameString,packageIdString,staticInstanceParentIdString,createStaticInstanceBool, defaultYEScreateFoldersBool, defaultNOremoveUnusedBool, defaultNO<GraphInstance>Graph Instance description and porperties
Attributes and child tags:
graphIdString,filePrefixString,rootNodeIdString,generateMeshesBool, defaultNOgenerateCollidersBool, defaultNOgenerateShadowsBool, defaultNOgenerateTriangleStripsBool, defaultNOuseCpuSkinningBool, defaultNOvertexCacheSizeUInt32, default16maxNumberOfLightStagesUInt32, default1shadowMaterialSlotUInt32, default0shadowVolumeGenerationModeMurl::IEnums::ShadowVolumeGenerationMode, defaultDEFAULTshadowFacesToExtrudeMurl::IEnums::PolygonFaces, defaultBACK_ONLY<IncludedNode>IncludedNode description and properties.
Attributes and child tags:
findIdMatchingPatternString,
<ExcludedNode>ExcludedNode description and properties.
Attributes and child tags:
findIdMatchingPatternString,
XML Beispiel
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 Spraylight GmbH -->
<SceneConverter xmlns="http://murlengine.com" sceneId="Scene" ignoreFiles="no" translateX="0" translateY="0" translateZ="0" rotateX="0d" rotateY="0d" rotateZ="0d" scale="1" outPath="../packages/" packageName="bf110mp">
<InputPackage fileName="../packages/materials.murlres"/>
<InputScene id="{sceneId}" fileName="bf110/bf110.obj"
translateX="{translateX}" translateY="{translateY}" translateZ="{translateZ}"
rotateX="{rotateX}" rotateY="{rotateY}" rotateZ="{rotateZ}"
scale="{scale}">
<ImageLocation pathName="./bf110"/>
<Material findIdMatchingPattern="*"
replaceWithGraphNodeId="/myMaterial/mat_color_light_texture"
/>
<Material findIdMatchingPattern="transparent*"
replaceWithGraphNodeId="/myMaterial/mat_color_alpha"
/>
<Material findIdMatchingPattern="transparent*"
replaceWithGraphNodeId="/myMaterial/mat_color_light_alpha_twopass"
ambientColor="0.0f,0f,0.5f,1f"
/>
</InputScene>
<OutputPackage fileName="{outPath}{packageName}" packageId="{packageName}" createFolders="yes">
<GraphInstance graphId="GraphInstance" filePrefix="graph_instance" generateMeshes="yes"/>
</OutputPackage>
</SceneConverter>