how is that? i know JME supportss FBX files
Ok, so i think we keep having this conversation.
Have you spent 1 hour trying to find the answer?
If no, keep investigating, if yes draft a question.
Try to structure your question as:
- Background
- short reproducable example (including the code to show your problem)
- Question (or what you expected to happen and what actaully happened)
As your question includes a model producing the simple reproducable example is harder but a link to a freely available model (that you use in your example code) as an example might be the way forward.
This will probably several paragraphs and maybe 50 to 100 lines of code followed by a question
do i need some kind of plugin for FBXs?
You can also use the SDK to import FBX files, just added to 3.7 version. For more specific answer you need more specific questions…
here is part of the Error message
java.lang.UnsupportedOperationException
at
com.jme3.scene.plugins.fbx.node.FbxNullAttribute.connectObjectProperty(FbxNullAttribute.java:56)
at com.jme3.scene.plugins.fbx.FbxLoader.connectObjects(FbxLoader.java:274)
at com.jme3.scene.plugins.fbx.FbxLoader.loadData(FbxLoader.java:163)
at com.jme3.scene.plugins.fbx.FbxLoader.load(FbxLoader.java:110)
at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:274)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:390)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:441)
at com.jme3.gde.core.assets.SpatialAssetDataObject.loadAsset(SpatialAssetDataObject.java:93)
at com.jme3.gde.core.assets.SpatialAssetDataObject.loadAsset(SpatialAssetDataObject.java:52)
at com.jme3.gde.core.assets.AssetData.loadAsset(AssetData.java:130)
at
com.jme3.gde.modelimporter.ModellmporterVisualPanel3.loadModel(ModellmporterVisualPanel3.java:92)
at
com.jme3.gde.modelimporter.ModellmporterVisualPanel3.loadSettings(ModellmporterVisualPanel3.java:61)
at
com.jme3.gde.modelimporter.ModellmporterWizardPanel3.readSettings(ModellmporterWizardPanel3.java:82
at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:843)
at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:797)
at org.openide.WizardDescriptor ._ updateState(WizardDescriptor.java:775)
at org.openide.WizardDescriptor.goToNextStep(WizardDescriptor.java:1041)
at org.openide.WizardDescriptor.access$1900(WizardDescriptor.java:67)
at org.openide.WizardDescriptor$Listener$1.run(WizardDescriptor.java:2184)
at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1492)
at org.openide.WizardDescriptor.access$2000(WizardDescriptor.java:67)
at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:2203)
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.openide.util.WeakListenerlmpl$ProxyListener.invoke(WeakListenerImpl.java:461)
at jdk.proxy1/jdk.proxy1.$Proxy59.actionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:407)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
Can you please include the model you were trying to import?
Also always prefer glTF where available as a general advice.
JMonkeyEngine’s FBX importer is included in the “jme3-plugins” library. It is very old and often fails on recent FBX files: anything later than FBX version 7.4 (aka version 7400), which is 10+ years old at this point. I suspect that’s the cause of the UnsupportedOperationException
you’re seeing.
If you can obtain models in glTF or GLB format, you’ll have much better success importing them into JMonkeyEngine. GLTF/GLB is our preferred asset pipeline and has been for many years.