CMP to SUR Conversion Tests
-
(grabs a pom pomā¦ stands next to ST)
Lancer Lancerā¦ heās our manā¦ he cant do itā¦ noone canā¦
L.A.N.C.E.R. (shakes pom poms)ā¦ dam not enough for a human pyramid yetā¦ oh well back to the startā¦
-
Hehehe itās getting close. I will post when I have good news.
-
-
ā¦ itās awfully dark in hereā¦
-
**Actually the holdup has been the mesh rebuilder. I have completed that part of the code but unfortunately the mesh isnāt being recognized by FL. I believe the problems lies in the Fix format. After studying multiple different Fix, Pris and Rev nodes in binary, something is amiss in the current knowledge about those node types. Maybe Adoxa might be willing to help determine what values are actually used (hint, hint)
The current is for Fixā¦
Parent name string
Child string at offset 0x40
Center x,y,z at 0x74
Position offset at 0x80
3x3 rotation matrix at offset 0x8c
Next part at offset 0xb0Iāve noticed the 0x70 is always 0x00000000
The position is always valid floats so that part looks good.
The rotation matrix is a different story, the only consistent values are the x,y,z floats, ie at 0x8f, 0x9f & 0xaf, the rest sometimes contain totally invalid float values such as 0x0000000F or 0x80000000 (infinite value, same as 0x7FFFFFFF). For a matrix this doesnāt work since it invalidates the matrix.Everything else seems to work at the present time, the UTF editors and HardCMP have no trouble loading the rebuilt cmp files, any help would be appreciated.**
-
Hereās all the Cons nodes (from the XML Project - when I said it decoded everything I really meant it).
struct Vector { float x, y, z; }; struct Matrix { Vector i, j, k; }; // \Cmpnd\Cons\{Fix,Trans,Loose} // Trans isn't in any of the vanilla files struct FIX { char parent[64]; char child[64]; Vector position; Matrix orientation; }; // \Cmpnd\Cons\{Pris,Rev} struct REV { char parent[64]; char child[64]; Vector position; Vector offset; Matrix orientation; Vector axis; float minmax[2]; // don't seem to be used }; // \Cmpnd\Cons\Cyl struct CYL // not in any of the vanilla files { char parent[64]; char child[64]; Vector position; Vector offset; Matrix orientation; Vector axis; float minmax[4]; // don't seem to be used }; // \Cmpnd\Cons\Sphere struct SPHERE { char parent[64]; char child[64]; Vector position; Vector offset; Matrix orientation; float minmax[6]; // don't seem to be used }; ```I've called it **position** here, but after looking at the UTF Editor, I probably should have stuck with **origin**. I only think it's minimum and maximum angles, but a quick play with the debugger showed they were never read; the problem is some of the bases uses really large values, which seems to belie their use as angles. I've used Matrix as three Vectors, because that's how Paul Isaac defined it in **View UTF**, a mod utility for Conquest: Frontier Wars. (It's a bit temperamental, which is why I've never mentioned it before now. There's also an unpack utility, which should create/extract UTF files, but it didn't work at all.)
-
**Thanks, thats pretty much the same layout Iām using for each of the nodes. Hadnāt seen the CYL type though, good find. I have seen sphere used in the cityscape models.
In this case I will simply run FL in debug mode and see why itās giving me a ācanāt create compound partā error. It gives me exactly the number of errors as there are new parts. Odd since the program completely rebuilds the Fix node from the data it reads and also has all of the children for the VMeshRefās + the Cmpnd entriesā¦**
-
Drat!
Shaved my long grey beard off, thinking I would have LSās utility by now and have to do some fast serious work needing sleek streamlined facial linesā¦
Itās so cold without it!
And I notice some stray mice have moved in here tooā¦
-
**After bugging FF for awhile about FL Dev
Ok, the model rebuilder is not working which means the sur builder is not workingā¦.
Something is missing in the understanding of the cmp model format. I have generated Cons-Fixed entries, VMeshRef entries and all of the Cmpnd entries perfectly according to the layout that is currently understood to be the proper formats. Unfortunately this is is not workingā¦
HardCmp displays it correctlyā¦
UTF editor shows the nodes in the proper place and exports the data as it should beā¦
FL only shows the the original VMeshRefās sometimesā¦One thing I found during this is that ālod1ā is NOT a requirement, look at nomad_lair.cmp for an exampleā¦
Any help would be appreciated, files upon requestā¦**
-
LancerSolurus wrote:
Something is missing in the understanding of the cmp model format. I have generated Cons-Fixed entries,
Errmā¦ I hope you mean Cons-Fix ??
Not Cons-Fixed!!
P1p3rās .cmp exporter also caused a Cons-Fixed problem, we have to rename those nodes as Cons-Fix.
-
Any progress pals?
-
Lancer? Yoo-hoooooo!!! Lan-cer?
Anyone seen him? No posts at digitalbrilliance either!
Maybe heās burning the midnight oils on this utility? Nah? Sure? Hmmmā¦
Eeeee-lo-oooooooo?
Has he been captured by the Thyroids? Toroids? Erā¦ Tannoys? Triffids? Teletubbies! Aha! Theyāre the ones!
-
Okay ST, Iām sorry but donāt post in this topic again. This is spam, plain and simply, and if you donāt want me to consider you a spambot and deal with you as I would with them, cut the chatter.
LS will post back when he has progress and thatās all there is to it.
-
Hello and I hope this is not considered spam.
I was and still having troubles with a mob of mine, i was pointed here and found the beta, or alpha of this cmp to sur convertor. and it has helpped nail down one of the possable problems my Sur file.
My ship is still invisable, but thanks to this program it is taking hits like it should. Iām wondering if the Mat exportor i have for Milkshape 128 is faulty or messed up. It is the āfreelancer mat 0.1ā exporter.
-
Youād be best off to use the topic you already have created on the subject or make a new one if you donāt have one.
Just to give you some possible angles of attack, LODRanges? Groups are named right? Files are referenced properly? Errors in the logs?
-
OK FF, no offence meant.
The reason I keep bumping is that it keeps disappearing, goes way down the forum list, and out of sight out of mind.
I have a serious need for this tool.
As you see I gave up on your FL Dev after you explained your commitments, but I am still waiting for that too.
I will desist, but let it be recorded that I believe I have contributed enough help here to be given some lee-way when I get grumpy or throw in some humourous remark that is irrelevant?
-
Go back, check your posts and count the number of āirrelevantā posts of yours Iāve let through. I think Iām being lenient enough
I just donāt want this to devolve into a bump fest. LS isnāt the kind of guy to forget about something like this and itās far more efficient to remind him on MSN anyways
Heās just a busy man and arenāt we all? Give him time, heāll respond.