Hello… i made a model in 3dsmax, then exported 3ds. From milkshake imported it and saved as a ms3d. I checked the the mapping coords imported from 3ds using the texture coordinate editor form milkshape and looks correct.
and get this error (remember.. from milkshape it opens ok)
com.jme.system.JmeException: Logic error. Unknown parent ID for 4
at com.jme.scene.model.XMLparser.Converters.TDSChunkingFiles.TDSFile.getParentIndex(TDSFile.java:154)
at com.jme.scene.model.XMLparser.Converters.TDSChunkingFiles.TDSFile.putTranslations(TDSFile.java:113)
at com.jme.scene.model.XMLparser.Converters.TDSChunkingFiles.TDSFile.buildScene(TDSFile.java:74)
at com.jme.scene.model.XMLparser.Converters.MaxToJme.convert(MaxToJme.java:42)
at com.vlad.game.main.GameStart.load3DS(GameStart.java:106)
at com.vlad.game.main.GameStart.simpleInitGame(GameStart.java:54)
at com.jme.app.SimpleGame.initGame(SimpleGame.java:329)
at com.jme.app.BaseGame.start(BaseGame.java:63)
at com.vlad.game.main.GameStart.main(GameStart.java:43)[/i][/code]
It appears that there is a repeat on your texture defined in milkshape, but the repeat is not being carried over in the jME texture state. Check the repeat of the texture (you might have to manipulate the state by hand). Do you see anything in the ASCII milkshape file that defines how to repeat the texture?
Load it with .ms3d not the .3ds loader. I’m working on the 3ds loader now, and it should releave most errors soon. The 3ds format is a nightmare. No official documentation, just people’s best guesses so mangled files can appear funky :?
-edit- Update from CVS and try again. The texture should now wrap correctly with the .ms3d file. If it doens’t let me know here.
It appears that there is a repeat on your texture defined in milkshape, but the repeat is not being carried over in the jME texture state. Check the repeat of the texture (you might have to manipulate the state by hand). Do you see anything in the ASCII milkshape file that defines how to repeat the texture?
Thats exactly what happens.. if i do a mapping like
the final texture in the java program goes wrong.. so i have to do something like this
(the wood tile repetead 4 fimes) but now, i have to use a 2048x2048 texture and the in the start it says
...
30-ago-2004 2:01:31 com.jme.scene.Node attachChild
INFO: Child (Milkshape Model) attached to this node (rootNode)
java.lang.OutOfMemoryError
30-ago-2004 2:01:32 com.jme.app.SimpleGame cleanup
INFO: Cleaning up resources.
30-ago-2004 2:01:32 com.jme.app.BaseGame start
INFO: Application ending.
and does not run. The final jpg is 260kb, and guess that the problem is the resoultion of the jpg, not the size in kb, isn´t?
I have no idea how to look in the ascii file to check out what are you saying :S
Its also possible to have multiple UV coordinates for the same XYZ coordinate.
Meaning that you can copy/paste those UV coordinates that are outside the single wood tile and put them ontop of the other UV coordinates that are already there.
This is good because you get to keep the same 512x512 texture.
Did you update from CVS? Update from CVS and try again. Your original .ms3d should work.
it doesnt :( i updated every single class and do the same ugly effect.
"DarkProphet" wrote:
dont use jpg, use TGA.
Its also possible to have multiple UV coordinates for the same XYZ coordinate.
Meaning that you can copy/paste those UV coordinates that are outside the single wood tile and put them ontop of the other UV coordinates that are already there.
This is good because you get to keep the same 512x512 texture.
DP
How do i do the UV copy/paste coordinates (in milkshape?). Also tried the TGA thing but it does the same. Besides the new tga file is 4 times the size of the jpg or png file :?
its true that the TGA is 3 times loader than the png/jpg but it loads 10 times faster.
Anyway, back to the subject; I dont know how to do it in milkshape, but in the “texture coordinate editor” window that you showed in the screenshots, isn’t there a move option? If there is, just selection a couple of vertices and move them to match the vertices that are on the texture properly.
dark: milkshape texturing is very basic. Does not have anything something like "repeat UV map" or something. The same milkshape, in the mesh editor, repeats the texture as you expect (as i guess almost game does in that case) but the program running, only shows that part of the mesh mapped and dont repeat it along the model.
The other thing i thinked is to cut the selections of mesh to be the size the wood texture, and have 4 parts instead of one… but the repeating feature will be very handy instead.
Did you make sure the cvs update did not have any conflicts? That has happened to me in the past where I thought I had the latest but due to conflicts it wasn’t picking something up.