Importing a Scene

I’m trying to import a scene, yet an error is coming up. It says that there was an error loading the scene.



Log:



[patch]Camera created (W: 320, H: 320)

DesktopAssetManager created.

Add locator: C:/Users/Mamo/Documents/Scene

Loaded material definition: Phong Lighting

Unrecognized version number in dotScene file: 1.0

Child (Plane01) attached to this node (ThroneRoom-scene_node)

Child (submesh0) attached to this node (Plane01-ogremesh)

Child (Plane01-ogremesh) attached to this node (Plane01-entity)

Child (Plane01-entity) attached to this node (Plane01)

Child (Plane05) attached to this node (ThroneRoom-scene_node)

Child (submesh0) attached to this node (Plane05-ogremesh)

Child (Plane05-ogremesh) attached to this node (Plane05-entity)

Child (Plane05-entity) attached to this node (Plane05)

Child (Floor) attached to this node (ThroneRoom-scene_node)

Component hidden[/patch]



The log from the red button in the bottom-right corner of the screen:



[patch]org.xml.sax.SAXException: dotScene parse error: Expected parent node to be light

at com.jme3.scene.plugins.ogre.SceneLoader.checkTopNode(SceneLoader.java:105)

at com.jme3.scene.plugins.ogre.SceneLoader.startElement(SceneLoader.java:356)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)

at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2715)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)

at com.jme3.scene.plugins.ogre.SceneLoader.load(SceneLoader.java:449)

Caused: java.io.IOException: Error while parsing Ogre3D dotScene

at com.jme3.scene.plugins.ogre.SceneLoader.load(SceneLoader.java:458)

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:282)

Caused: com.jme3.asset.AssetLoadException: An exception has occured while loading asset: ThroneRoom.scene

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:284)

at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:410)

[catch] at com.jme3.gde.ogrexml.OgreSceneDataObject.loadAsset(OgreSceneDataObject.java:89)

at com.jme3.gde.ogrexml.OgreSceneDataObject.loadAsset(OgreSceneDataObject.java:47)

at com.jme3.gde.core.assets.AssetData.loadAsset(AssetData.java:84)

at com.jme3.gde.modelimporter.ModelImporterVisualPanel1.loadModel(ModelImporterVisualPanel1.java:95)

at com.jme3.gde.modelimporter.ModelImporterVisualPanel1.loadModel(ModelImporterVisualPanel1.java:74)

at com.jme3.gde.modelimporter.ModelImporterVisualPanel1$8.run(ModelImporterVisualPanel1.java:305)

at java.lang.Thread.run(Thread.java:722)

[/patch]



The .material file:



[xml]material Podium

{

technique

{

pass

{

ambient 0.588235 0.588235 0.588235 1

diffuse 0.588235 0.588235 0.588235 1

specular 0 0 0 1 10



texture_unit

{

texture Podium UVW.jpg

}

}



}



}







material Chandelier

{

technique

{

pass

{

ambient 0.588235 0.588235 0.588235 1

diffuse 0.588235 0.588235 0.588235 1

specular 0 0 0 1 10



texture_unit

{

texture Chandelier UVW.jpg

}

}



}



}







material Floor

{

technique

{

pass

{

ambient 0.588235 0.588235 0.588235 1

diffuse 0.588235 0.588235 0.588235 1

specular 0 0 0 1 10



texture_unit

{

texture Grid 2.jpg

}

}



}



}







material ReinforcedIronChest

{

technique

{

pass

{

ambient 0.588235 0.588235 0.588235 1

diffuse 0.588235 0.588235 0.588235 1

specular 0 0 0 1 10



texture_unit

{

texture Iron Chest UVW.jpg

}

}



}



}







material 15-Default

{

technique

{

pass

{

ambient 0.588235 0.588235 0.588235 1

diffuse 0.588235 0.588235 0.588235 1

specular 0 0 0 1 10

cull_hardware none

cull_software none



texture_unit

{

texture Tattered Banner.jpg

}

}



}



}







material Roof

{

technique

{

pass

{

ambient 0.196078 0.172549 0.164706 1

diffuse 0.196078 0.172549 0.164706 1

specular 0 0 0 1 1

}



}



}







material BowlTorch

{

technique

{

pass

{

ambient 0.588235 0.588235 0.588235 1

diffuse 0.588235 0.588235 0.588235 1

specular 0 0 0 1 10



texture_unit

{

texture Bowl Torch UVW.jpg

}

}



}



}







material GothicDoorway

{

technique

{

pass

{

ambient 0.588235 0.588235 0.588235 1

diffuse 0.588235 0.588235 0.588235 1

specular 0 0 0 1 10



texture_unit

{

texture Gothic Doorway UVW.jpg

}

}



}



}







material Wall

{

technique

{

pass

{

ambient 0.588235 0.588235 0.588235 1

diffuse 0.588235 0.588235 0.588235 1

specular 0 0 0 1 10



texture_unit

{

texture Wall Complete 2.jpg

}

}



}



}







material Throne

{

technique

{

pass

{

ambient 0.588235 0.588235 0.588235 1

diffuse 0.588235 0.588235 0.588235 1

specular 0 0 0 1 10



texture_unit

{

texture Throne UVW.jpg

}

}



}



}







material 01-Default

{

technique

{

pass

{

ambient 0.588235 0.588235 0.588235 1

diffuse 0.588235 0.588235 0.588235 1

specular 0 0 0 1 10



texture_unit

{

texture Torch UVW.jpg

}

}



}



}[/xml]

Can you post the .scene file?

Just found the problem. Some of the objects I was outputting where just planes. I converted them to Editable Polys and it worked.