Hi
After converting my .blend model to .j3o in SDK it opens correctly in scene composer but after changing it in scene composer (like moving ,scaling, deleting or editing material or any other changes ) and saving , the next time i open it get null error.
It also happens when load that model in code .
java.lang.NullPointerException
at com.jme3.shader.Uniform.setValue(Uniform.java:185)
at com.jme3.material.Technique.updateUniformParam(Technique.java:149)
at com.jme3.material.MatParam.apply(MatParam.java:133)
at com.jme3.material.Material.preload(Material.java:1059)
at com.jme3.renderer.RenderManager.preloadScene(RenderManager.java:613)
at com.jme3.renderer.RenderManager.preloadScene(RenderManager.java:604)
at com.jme3.animation.SkeletonControl.testHardwareSupported(SkeletonControl.java:162)
at com.jme3.animation.SkeletonControl.controlRender(SkeletonControl.java:276)
at com.jme3.scene.control.AbstractControl.render(AbstractControl.java:119)
at com.jme3.scene.Spatial.runControlRender(Spatial.java:681)
at com.jme3.renderer.RenderManager.renderSubScene(RenderManager.java:667)
at com.jme3.renderer.RenderManager.renderSubScene(RenderManager.java:677)
at com.jme3.renderer.RenderManager.renderSubScene(RenderManager.java:677)
at com.jme3.renderer.RenderManager.renderSubScene(RenderManager.java:677)
at com.jme3.renderer.RenderManager.renderSubScene(RenderManager.java:677)
at com.jme3.renderer.RenderManager.renderScene(RenderManager.java:656)
at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:1029)
at com.jme3.renderer.RenderManager.render(RenderManager.java:1088)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:260)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:151)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:192)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:232)
at java.lang.Thread.run(Thread.java:745)
Thanks
Edit: I am using JME SDK 3.1 alpha 2
also my model has rig on it
Edit 2 : When loading the model for first time (I mean before editing and saving in scene composer ) it loads OK in code and i also can move, rotate,scale, generate tangents ,… unless i want to save it as .j3o
Edit 3: Uploaded .j3o model to Dropbox - kang.zip - Simplify your life
without texture.
Edit 4 :
and here is the log i get when converting my .blend file to .j3o file
File D:\Java\jME_NB-PW-11-6-2015\The Night Watchman Test\assets\Models\Kang\cadnav.com_model\Kang.j3o@a7cca284:6667cf0b[invalid] deleted, remove!
Remove file change listener for D:\Java\jME_NB-PW-11-6-2015\The Night Watchman Test\assets\Models\Kang\cadnav.com_model\Kang.blend@29d4ceb1:65fb09b2
Loading animations that will be later applied to scene features.
Found animation: guitar_playing.
Found animation: running_inPlace_2.
Cannot locate resource: C:/Users/ALI/Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped)
Cannot locate resource: Users/ALI/Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped)
Cannot locate resource: ALI/Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped)
Cannot locate resource: Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped)
Cannot locate resource: Kang/cadnav.com_model/hokutex0.tga (Flipped)
Cannot locate resource: cadnav.com_model/hokutex0.tga (Flipped)
Cannot locate resource: hokutex0.tga (Flipped)
Loading model's textures.
The texture Map #7 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
Loading model's textures.
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
Loading model's textures.
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #7 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #7 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #7 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #7 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #7 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #6 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
Loading model's textures.
Cannot locate resource: C:/Users/ALI/Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: Users/ALI/Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: ALI/Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: Kang/cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: hokutex0.tga (Flipped) (Mipmapped)
The texture Map #4 has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
Cannot locate resource: C:/Users/ALI/Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: Users/ALI/Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: ALI/Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: Desktop/Kang/cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: Kang/cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: cadnav.com_model/hokutex0.tga (Flipped) (Mipmapped)
Cannot locate resource: hokutex0.tga (Flipped) (Mipmapped)
Loaded asset Kang
File Kang.blend saved successfully
Notified about change in AssetData properties for Kang
Kang listening for external changes on D:\Java\jME_NB-PW-11-6-2015\The Night Watchman Test\assets\Models\Kang\cadnav.com_model\Kang.blend@29d4ceb1:65fb09b2
Set original path for Kang to Models/Kang/cadnav.com_model/Kang.blend
Removing asset Models/Kang/cadnav.com_model/Kang.blend, from cache via main asset Kang.
Removing asset Models/Kang/cadnav.com_model/Character_A1016A466/hokutex010.tga, from cache via main asset Kang.
Removing asset Models/Kang/cadnav.com_model/Character_A1016A466/hokutex013.tga, from cache via main asset Kang.
Removing asset Models/Kang/cadnav.com_model/Character_A1016A466/hokutex003.tga, from cache via main asset Kang.
Removing asset Models/Kang/cadnav.com_model/Character_A1016A466/hokutex007.tga, from cache via main asset Kang.
Removing asset Models/Kang/cadnav.com_model/Character_A1016A466/hokutex011.tga, from cache via main asset Kang.
Removing asset Models/Kang/cadnav.com_model/Character_A1016A466/hokutex006.tga, from cache via main asset Kang.
Removing asset Common/MatDefs/Light/Lighting.j3md, from cache via main asset Kang.
Can be because of missing that “hokutex0.tga” texture ?