Milkshape = no surfaces?

Community Forums/Developer Stations/Milkshape = no surfaces?

John Blackledge(Posted 2005) [#1]
I exported a model of a cube as a test from Milkshape, and wanted to draw a red rectangle around it (in the usual way with GetSurface > vertices), but Blitz reports no surfaces!

There appears to be no way around this - no surfaces, no vertex info.

Anyone seen this before, or have a way around it?


Shambler(Posted 2005) [#2]
I can only think that the exported mesh has a root node and your actual mesh is a child of it.


John Blackledge(Posted 2005) [#3]
I just checked (I use) -

cc = CountChildren(pictentity)
For i=1 To cc
ww=GetChild(pictentity,i)
If EntityClass$(ww)="Mesh"
cs = CountSurfaces(ww)
etc...

"Mesh" is returned ok.
Then cs returns zero.
Good, eh? Not!

Any ideas?


*(Posted 2005) [#4]
Hmm, import mesh into Decorator (available from Blitzcoder) export mesh again and then use that. I have had this once on a carrier I was working on and I had to do that as it seemed the ship just had a root and nothing else.


John Blackledge(Posted 2005) [#5]
Thanks, that would do it.

But I was hoping that the user could load their own choice or model (which they had created - that's the kind of app it is).

This is still possible, but I can't put a 2D rect around it to show that it can be dragged. That's all I'm trying to do.


*(Posted 2005) [#6]
I had the same trouble with a targetting reticle in Fury Squadron. That was the way I got round it :)


Ross C(Posted 2005) [#7]
Milkshape has a bug in exporting. It doesn't export entity names, or children names. I don't know if that would affect it? What i ended up doing was taking my model into Ultimate Unwrap, and adding in the names these.


John Blackledge(Posted 2005) [#8]
Thanks, Ross.
But as I said I was hoping that the user could load their own choice or model (which they had created - that's the kind of app it is).

Ah, well, at least I know it's not me, and I can give a warning, or pass on your advice.

Again, thanks to all for your comments.