Compeller

Development area for FreeAllegiance's Community Core.
Andon
Posts: 5453
Joined: Sun Jun 03, 2007 8:29 pm
Location: Maryland, USA
Contact:

Post by Andon »

Easiest way to test bases: Edit static_core.igc so that the IC Starbase is whatever base you want.
Image
ImageImage
KGJV
Posts: 1474
Joined: Tue Jul 01, 2003 7:00 am
Location: Transilvania

Post by KGJV »

i've looked at the scaling code for the MDL:

it's done using the same method but, unlike CVH file, there is no OriginalRadius value in the MDL file so this value is actually computed from the actual mesh data.

so if the CVH OriginalRadius (1st number in the file) is different from MDL OriginalRadius (computed from actual mesh data) i guess the scaling of the MDL and the CVH should mismatch at some point...
Image
Andon
Posts: 5453
Joined: Sun Jun 03, 2007 8:29 pm
Location: Maryland, USA
Contact:

Post by Andon »

That makes sense. Are ship CVHs handled differently than base CVHs, by any chance?
Image
ImageImage
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

KGJV wrote:QUOTE (KGJV @ Sep 24 2009, 03:17 PM) i've looked at the scaling code for the MDL:

it's done using the same method but, unlike CVH file, there is no OriginalRadius value in the MDL file so this value is actually computed from the actual mesh data.

so if the CVH OriginalRadius (1st number in the file) is different from MDL OriginalRadius (computed from actual mesh data) i guess the scaling of the MDL and the CVH should mismatch at some point...
Could we change it that if there is a cvh for that model that it's original radius gets used for the model too? (or make it optional by say only having it if the cvh origilan radius is preceded with a * or some other character or something)
KGJV
Posts: 1474
Joined: Tue Jul 01, 2003 7:00 am
Location: Transilvania

Post by KGJV »

Andon wrote:QUOTE (Andon @ Sep 24 2009, 05:08 PM) That makes sense. Are ship CVHs handled differently than base CVHs, by any chance?
same way. Actually all MDL 3D scaling is performed with same code whatever the object is (station, ship,...).


QUOTE (madpeople)Could we change it that if there is a cvh for that model that it's original radius gets used for the model too? (or make it optional by say only having it if the cvh origilan radius is preceded with a * or some other character or something)[/quote]

why would we want to do such a tricky thing ?!

the issue is in generating 'good' CVH files, no point solving this by modifying the code to handle 'bad' CVH files...it's kinda bizarre.
Image
Andon
Posts: 5453
Joined: Sun Jun 03, 2007 8:29 pm
Location: Maryland, USA
Contact:

Post by Andon »

I agree with KGJV - We need to make better CVHs, not make worse CVHs workable. Besides, there's no guarantee that such a hack would work how we want it to.
Image
ImageImage
Ramaglor
Posts: 687
Joined: Sun Aug 28, 2005 7:00 am
Location: Seattle

Post by Ramaglor »

Well, then could we get a utility to read the mesh radius off the mdl so we can then apply it to the cvh?
Spidey's tactical advice on TS during Tourny game
QUOTE We don't need to save our thingy.[/quote]
KGJV
Posts: 1474
Joined: Tue Jul 01, 2003 7:00 am
Location: Transilvania

Post by KGJV »

Ramaglor wrote:QUOTE (Ramaglor @ Sep 24 2009, 08:22 PM) Well, then could we get a utility to read the mesh radius off the mdl so we can then apply it to the cvh?
can't you get this info in MS3D after importing the MDL ?

I don't have MS3D installed so i can verify but IIRC there was some 'info' tool in MS3D that can do this.

Otherwise i guess we could modify mdlc or MDLView to compute the radius.
Image
Andon
Posts: 5453
Joined: Sun Jun 03, 2007 8:29 pm
Location: Maryland, USA
Contact:

Post by Andon »

I'm not one to trust MS3d for this - plus, MS3D isn't the best tool, and I'd love to be able to not have to use it.
Image
ImageImage
Ramaglor
Posts: 687
Joined: Sun Aug 28, 2005 7:00 am
Location: Seattle

Post by Ramaglor »

KGJV wrote:QUOTE (KGJV @ Sep 24 2009, 12:28 PM) can't you get this info in MS3D after importing the MDL ?

I don't have MS3D installed so i can verify but IIRC there was some 'info' tool in MS3D that can do this.

Otherwise i guess we could modify mdlc or MDLView to compute the radius.
Maximum dimension would be the appropriate value? (it gives x-span, y-span, z-span)
Spidey's tactical advice on TS during Tourny game
QUOTE We don't need to save our thingy.[/quote]
Post Reply