Terrain from HeightMap doesnt work

Hi,



i cant create a Terrain out of a height map. With TerrainTest it works with that heightmap, but i seems like the wizzard AssetManager does not know the asset folder from my project:



I cant find in the Wiki anything about adding the asset project folder to “jmp”. I made a clean build, too, but that didnt work either.



[java]

SEVERE [org.openide.util.Exceptions]

com.jme3.asset.AssetNotFoundException: E:ProgrammingJmeProjects2JmeProjectassetsScenessimplescene01heightmap.png (Flipped)

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

at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:325)

at com.jme3.gde.terraineditor.CreateTerrainWizardPanel2.storeSettings(CreateTerrainWizardPanel2.java:143)

at org.openide.WizardDescriptor.setValueOpen(WizardDescriptor.java:1352)

at org.openide.WizardDescriptor.setValue(WizardDescriptor.java:1330)

at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1321)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)

at java.awt.Component.processMouseEvent(Component.java:6504)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)

at java.awt.Component.processEvent(Component.java:6269)

at java.awt.Container.processEvent(Container.java:2229)

at java.awt.Component.dispatchEventImpl(Component.java:4860)

at java.awt.Container.dispatchEventImpl(Container.java:2287)

at java.awt.Component.dispatchEvent(Component.java:4686)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)

at java.awt.Container.dispatchEventImpl(Container.java:2273)

at java.awt.Window.dispatchEventImpl(Window.java:2713)

at java.awt.Component.dispatchEvent(Component.java:4686)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)

at java.awt.EventQueue.access$000(EventQueue.java:101)

at java.awt.EventQueue$3.run(EventQueue.java:666)

at java.awt.EventQueue$3.run(EventQueue.java:664)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)

at java.awt.EventQueue$4.run(EventQueue.java:680)

at java.awt.EventQueue$4.run(EventQueue.java:678)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)

at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)

[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:121)

at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)

at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)

at java.awt.Dialog.show(Dialog.java:1072)

at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1038)

at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1072)

at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1060)

at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:126)

at org.openide.util.Mutex.doEventAccess(Mutex.java:1361)

at org.openide.util.Mutex.readAccess(Mutex.java:271)

at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1045)

at java.awt.Component.show(Component.java:1650)

at java.awt.Component.setVisible(Component.java:1602)

at java.awt.Window.setVisible(Window.java:1013)

at java.awt.Dialog.setVisible(Dialog.java:1003)

at com.jme3.gde.terraineditor.AddTerrainAction.showWizard(AddTerrainAction.java:56)

at com.jme3.gde.core.sceneexplorer.nodes.actions.AbstractNewSpatialWizardAction$1.actionPerformed(AbstractNewSpatialWizardAction.java:69)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at javax.swing.AbstractButton.doClick(AbstractButton.java:376)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)

at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)

at java.awt.Component.processMouseEvent(Component.java:6504)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)

at java.awt.Component.processEvent(Component.java:6269)

at java.awt.Container.processEvent(Container.java:2229)

at java.awt.Component.dispatchEventImpl(Component.java:4860)

at java.awt.Container.dispatchEventImpl(Container.java:2287)

at java.awt.Component.dispatchEvent(Component.java:4686)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)

at java.awt.Container.dispatchEventImpl(Container.java:2273)

at java.awt.Window.dispatchEventImpl(Window.java:2713)

at java.awt.Component.dispatchEvent(Component.java:4686)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)

at java.awt.EventQueue.access$000(EventQueue.java:101)

at java.awt.EventQueue$3.run(EventQueue.java:666)

at java.awt.EventQueue$3.run(EventQueue.java:664)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)

at java.awt.EventQueue$4.run(EventQueue.java:680)

at java.awt.EventQueue$4.run(EventQueue.java:678)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)

at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

[/java]

I forgot: I use JMP current nightly build.



Regards,



snare

“E:ProgrammingJmeProjects2JmeProjectassetsScenessimplescene01heightmap.png” doesn’t look like a proper path (the slashes are missing).

You entered it wrong. Be sure to read the error messages, they usually have all the information you need.

Hi,



the forum ate the slashes, the slashes are in there.



com.jme3.asset.AssetNotFoundException: E:/Programming/JmeProjects2/Necrowunda/assets/Scenes/simplescene01/heightmap.png (Flipped)



I am selecting the PNG file from the filechooser in the “new terrain” wizzard, navigating to my projects asset folder. The filenotfound message will be shown when i click on “next”.



Thanks for your answer anyway.



Regards,



snare



edit

Seems like backslashes arent working at all here in the forum, neither escaped nor normal.

ah ok so you are using it in the sdk.

I just tried it and yes it seems like it is broken. I will fix it today so you should have it in the nightly build tomorrow.



For a temporary fix, just remove this part of the file path: E:/Programming/JmeProjects2/Necrowunda/assets/ (so you have Scenes/simplescene01/heightmap.png)

and then hit Next

1 Like

Thank you for fixing :slight_smile:

no problem