Problem with convert and import models

One more example, I create a three primitives in 3d max 2012 (cube, tube, sphere) export this with ogremax (in settings set checked export xml for meshes) load it with assetManager.loadModel and got NullPointerExeption:

[java]

08.11.2012 10:25:41 com.jme3.system.JmeDesktopSystem initialize

INFO: Running on jMonkeyEngine 3.0.0 Beta

08.11.2012 10:25:41 com.jme3.system.Natives extractNativeLibs

INFO: Extraction Directory: C:Userslykov_veworkspacetest

08.11.2012 10:25:41 com.jme3.system.lwjgl.LwjglAbstractDisplay run

INFO: Using LWJGL 2.8.4

08.11.2012 10:25:41 com.jme3.system.lwjgl.LwjglDisplay createContext

INFO: Selected display mode: 1280 x 720 x 0 @0Hz

08.11.2012 10:25:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Adapter: igdumdx32

08.11.2012 10:25:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Driver Version: 8.15.10.2279

08.11.2012 10:25:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Vendor: Intel

08.11.2012 10:25:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: OpenGL Version: 3.0.0 - Build 8.15.10.2279

08.11.2012 10:25:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Renderer: Intel® HD Graphics Family

08.11.2012 10:25:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: GLSL Ver: 1.30 - Intel Build 8.15.10.2279

08.11.2012 10:25:41 com.jme3.system.lwjgl.LwjglTimer <init>

INFO: Timer resolution: 1 000 ticks per second

08.11.2012 10:25:41 com.jme3.renderer.lwjgl.LwjglRenderer initialize

INFO: Caps: [FrameBuffer, FrameBufferMRT, FrameBufferMultisample, OpenGL20, OpenGL21, OpenGL30, ARBprogram, GLSL100, GLSL110, GLSL120, GLSL130, VertexTextureFetch, TextureArray, FloatTexture, FloatColorBuffer, FloatDepthBuffer, PackedFloatTexture, SharedExponentTexture, PackedFloatColorBuffer, NonPowerOfTwoTextures, MeshInstancing, VertexBufferArray, Multisample, PackedDepthStencilBuffer]

08.11.2012 10:25:41 com.jme3.asset.DesktopAssetManager <init>

INFO: DesktopAssetManager created.

08.11.2012 10:25:41 com.jme3.renderer.Camera <init>

INFO: Camera created (W: 1 280, H: 720)

08.11.2012 10:25:41 com.jme3.renderer.Camera <init>

INFO: Camera created (W: 1 280, H: 720)

08.11.2012 10:25:41 com.jme3.input.lwjgl.LwjglMouseInput initialize

INFO: Mouse created.

08.11.2012 10:25:41 com.jme3.input.lwjgl.LwjglKeyInput initialize

INFO: Keyboard created.

08.11.2012 10:25:41 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread

INFO: AudioRenderer supports 64 channels

08.11.2012 10:25:41 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread

INFO: Audio effect extension version: 1.0

08.11.2012 10:25:41 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread

INFO: Audio max auxilary sends: 4

08.11.2012 10:25:41 com.jme3.material.MaterialDef <init>

INFO: Loaded material definition: Unshaded

08.11.2012 10:25:41 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

08.11.2012 10:25:41 com.jme3.scene.Node detachAllChildren

INFO: Gui Node (Node): All children removed.

08.11.2012 10:25:41 com.jme3.material.MaterialDef <init>

INFO: Loaded material definition: Phong Lighting

08.11.2012 10:25:41 com.jme3.scene.Node attachChild

INFO: Child (building) attached to this node (Root Node)

08.11.2012 10:25:41 com.jme3.scene.Node attachChild

INFO: Child (staticObjects) attached to this node (Root Node)

08.11.2012 10:25:41 com.jme3.scene.plugins.ogre.SceneLoader startElement

WARNING: Unrecognized version number in dotScene file: 1.0

08.11.2012 10:25:41 com.jme3.app.Application handleError

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.NullPointerException

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

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

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

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

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

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

at ru.rcpp.Test.simpleInitApp(Test.java:171)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:225)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:130)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:207)

at java.lang.Thread.run(Unknown Source)

08.11.2012 10:25:41 com.jme3.renderer.lwjgl.LwjglRenderer cleanup

INFO: Deleting objects and invalidating state

08.11.2012 10:25:41 com.jme3.input.lwjgl.LwjglMouseInput destroy

INFO: Mouse destroyed.

08.11.2012 10:25:41 com.jme3.input.lwjgl.LwjglKeyInput destroy

INFO: Keyboard destroyed.

08.11.2012 10:25:41 com.jme3.system.lwjgl.LwjglAbstractDisplay deinitInThread

INFO: Display destroyed.

[/java]



And here is code of 171 line:

[java]

Node test = (Node) assetManager.loadModel("Scenes/OgreMax/Crane.scene");

rootNode.attachChild(test);

[/java]

Try removing the lights from the scene. As said, meshes and textures, no more.

Is some-body have an OgreMax 2.1?

@bobson said:
Is some-body have an OgreMax 2.1?

Did you remove the lights?

I don’t create it. I think some-thing in me 3ds max, try to use 2013, same problem. At the time here is old OgreMax 2.1.3 if smb will be need it

http://narod.ru/disk/63452311001.1099cb1268b87ab0b08f14ca3940c003/OgreMax_2.1.3.rar.html



Why in jme3 is not supported .3ds or .max files ?

Cause somebody will have to write the importer? Listen, this is leading nowhere if you can’t or don’t want to track the actual issue so I’m out of this thread.

Thank you for your help.