I load xml files for my game and after this update the texture attached to a gun model no longer load in fact jme claim they can,t be found but I have not changed anything in my code recently the beretta and related material and textures are sitting in the same directory.
[java]Nov 17, 2011 9:41:33 PM com.jme3.scene.plugins.ogre.MeshLoader applyMaterial
WARNING: Cannot locate beretta for model assets/Models/beretta/beretta.mesh.xml
Nov 17, 2011 9:41:33 PM com.jme3.scene.plugins.ogre.MeshLoader applyMaterial
WARNING: Cannot locate slide.bmp.001 for model assets/Models/beretta/beretta.mesh.xml
Nov 17, 2011 9:41:33 PM com.jme3.scene.Node attachChild[/java]
mat file
[java]material beretta
{
receive_shadows on
technique
{
pass
{
ambient 0.400000 0.400000 0.400000 1.000000
diffuse 0.640000 0.640000 0.640000 1.000000
specular 0.000000 0.000000 0.000000 1.000000 0.250000
emissive 0.000000 0.000000 0.000000 1.000000
lighting off
texture_unit
{
texture handle.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material slide.bmp.001
{
receive_shadows on
technique
{
pass
{
ambient 0.400000 0.400000 0.400000 1.000000
diffuse 0.640000 0.640000 0.640000 1.000000
specular 0.000000 0.000000 0.000000 1.000000 0.250000
emissive 0.000000 0.000000 0.000000 1.000000
lighting off
texture_unit
{
texture slide.png
tex_address_mode wrap
filtering trilinear
}
}
}
}[/java]
anybody? I think something changed with how my folders are getting searched because the textures and material file are in the same folder as the mesh file and old backup 23/10/2011 is working correctly its as if jme3 is no longer searching in the same directory as the mesh file for the material because I have changed nothing, the henchman textures show up because the mesh file for that was adjusted to reference a j3m file directly
“assets/Models/beretta/beretta.mesh.xml” means you do not have the assets folder registered in the assetManager root but rather try to somehow load it from the current directory or something.
ok I"ll check that out but how does something like that just happen?
You apparently try to load the model with a name like “assets/Models/blah/blah.blah”, which causes the other files to fail. e.g. j3m files have absolute paths to the textures, “assets/Models/” != “Models/”
yeah I understand all that, but what I mean is, up until the day I reported this I had no such issues,… this is not a new block of code,… it has been like that for weeks if not months and loaded fine until I updated :? and other tests I have exhibit that very same behavior i.e if it loads a .material file the texture no longer show, although model, material and textures are in the same location…so I guess the big question is y is failing NOW(not shouting) :?
Maybe something is just checked for in a stricter way now? I don’t know about your project setup… All I know it must have something to do with what you know about.
Can you create a test case that reproduces the issue?
it is late now, I’ll try tomorrow…I had also setup shop on my brother’s netbook a while back 23/10/2011 to be exact, so I’ll update that and see if the issue presents there as well…just to eliminate the possibility of corruption on my dev box
thanks
ok testcase didn’t have an opportunity to test by updating the jme3 on my brother’s netbook, but I did have a zip copy of the projects that I transferred to it and sure enough no textures, at the time I transferred those files I was simply seeking to find out if it (small and cheap for what is offered) would run jme, which it did nicely even the ocean demo 9-10 fps, but I digress …I don’t think it’s me this time
any word on this…thanks
OK should be fixed in SVN now
@mcbeth said:
any word on this...thanks
Nothing gets lost, except you title a good bug report like "wtf?". Else the longer it takes to get an answer, the bigger the chances you found an actual bug ;)
@normen said:
Nothing gets lost, except you title a good bug report like "wtf?". Else the longer it takes to get an answer, the bigger the chances you found an actual bug ;)
o.k I'll admit the thread title isn't concise sorry
Actually I didn’t even know there was a test case linked cause when you mouse over it you see the tooltip so I thought thats why its underlined. Bumping up the thread made me realized you did have an actual test case but it was hidden in the link under the tooltip
ok cool will be more careful next time