Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Galemp on May 25, 2008, 08:26:03 pm

Title: Max to Pof... WITHOUT the exporter
Post by: Galemp on May 25, 2008, 08:26:03 pm
Due to problems I'm having with getting my finished Karnak out into a Pof, and due to a lack of support since I used Styxx's Max plugin, I am now petitioning the community for a method of getting my Max model into Freespace without using the exporter.

Kazan tells me I have to to through COB, but I can't export from Max to Cob. I have tried going through 3DS and OBJ then converting that to Cob, but PCS won't import any geometry from it.

I will NEVER use Truespace again. What do I do?
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Vasudan Admiral on May 25, 2008, 09:25:58 pm
Assuming there are no severe mesh errors, you should be able to stabilise a pof exporter generated mesh by using PCS2 to clear the BSP cache and resaving. That usually fixes collision errors anyway - are those what you're referring to?

Anyway, I've had the most luck exporting from Max to OBJ, and importing that into Blender. However, the cob exporter script from there only supports one texture per mesh object and smoothing options of either all smooth, all autofaceted or all faceted as opposed to the combinations of those settings that would be ideal.

This is usually enough to work well with most models though, which is cool. :)
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Kazan on May 25, 2008, 09:32:54 pm
Assuming there are no severe mesh errors, you should be able to stabilise a pof exporter generated mesh by using PCS2 to clear the BSP cache and resaving.

PCS2 won't even cache BSP from those POFs

they're bad, and automatic correction is impossible on such data
Title: Re: Max to Pof... WITHOUT the exporter
Post by: blowfish on May 25, 2008, 09:35:22 pm
PCS2 won't even cache BSP from those POFs

they're bad, and automatic correction is impossible on such data

Well, do you have a better idea? :rolleyes:
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Kazan on May 25, 2008, 09:36:34 pm
PCS2 won't even cache BSP from those POFs

they're bad, and automatic correction is impossible on such data

Well, do you have a better idea? :rolleyes:

save to .max and use something that does nothing but convert from one format to another to do the conversion from max to cob

the Max POF exporter SHOULD NOT BE USED

once i get time (later part of june) to do more work on PCS2 and Collada gets done.....
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Vasudan Admiral on May 25, 2008, 09:57:52 pm
Applications that go straight from any format to COB usually mess it up in some way. Most commonly they will merge objects, lose hierarchy etc, and they're usually unsalvagable once in the POF format.

As such, it's much better to import it into another modeller that can save correctly formatted COBs, and do any repair work nessecary in them. At this point in time those apps are only Blender with Waters modified COB export script and Truespace itself, and TS' ability to repair models is somewhere between 'none' and 'hinderance'.
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Kazan on May 25, 2008, 09:58:50 pm
yeah... soon as i can get 2.1 out with Collada life will be a lot easier for the non-TS users
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Water on May 26, 2008, 02:05:56 am
I've had good results with AccuTrans  http://www.micromouse.ca/ (http://www.micromouse.ca/)
Mainly going from PCS2>.cob>Accutrans>.dae>Blender.

Your main problem is keeping the turret hierarchy intact through the export. Obj is out, leaving maybe 3ds?

Blender now works well for setting up turret heiarchy for export. It has a good track record and has the ability to export large files to PCS2 (files that made the Max plugin cry)
So if all else fails I can convert a turreted PCS2 frendly cob file.

Title: Re: Max to Pof... WITHOUT the exporter
Post by: Col. Fishguts on May 26, 2008, 03:55:00 pm
Could you elaborate on what problems you are facing exactly with the Max exporter ?
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Kazan on May 26, 2008, 03:55:36 pm
Could you elaborate on what problems you are facing exactly with the Max exporter ?

other than the fact it generates corrupt models
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Galemp on May 26, 2008, 07:01:28 pm
Could you elaborate on what problems you are facing exactly with the Max exporter ?

:rolleyes: No, actually. Kazan won't even look at it. He writes off anything that comes out of the Max exporter, so all I'm left with is hangs and crashes.
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Kazan on May 26, 2008, 10:38:16 pm
i am going to take a peek - but i write off anything coming out of the max exporter because error correction is impossible for such data

take basic error correction theory -

given a n-bit string with r-bits of redundant data as follows

[n data bits][r redundancy bits]

now there is a k-bit error in your n-data bits, how large must r be to automatically correct that error

the answer is 2k+1


and this is SIMPLE bit level errors.... the more complex the data the harder automatic error correction becomes.
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Kazan on May 27, 2008, 06:17:59 pm
So.. Galemps model did find a bug for me - some infinite recursion avoidance code written by bob has a logic bug in it and wasn't giving up trying to correct the error like it was supposed to after 15 tries.. i plopped a breakpoint in the right spot when i twas on try like... 1.6million :D

fixed the logic error and put a small optimization in conversion of the points list.. currently watching it pack the tree into a memory block now.
Title: Re: Max to Pof... WITHOUT the exporter
Post by: Galemp on May 27, 2008, 09:13:28 pm
...
Title: Re: Max to Pof... WITHOUT the exporter
Post by: KewlToyZ on July 16, 2008, 03:36:52 pm
Have you tried Exporting to 3DS or OBJ then convert to COB using 3D Explorer?
I have the 3D Explorer file still if anyone needs it?
Then likely PCS 2 to finish conversion to POF.