Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +30€

Current balance: -190€
(last updated 04/2017)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
25 user(s) are online (13 user(s) are browsing Forum)

Members: 0
Guests: 25

more...
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 54 users playing Freelancer on 44 servers.
May. 26, 2017

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



Max 2016 Import / export script for .3db?

Joined:
2016/10/3 19:18
Group:
Registered Users
Posts: 34
Offline
This is probably a big ask, but... does anyone have one of these or can anyone make one. Something that would allow me to avoid using Milkshape?

I really want to contribute and do stuff, I have even made things already but milkshape is just terrible, it's holding me back, I cant get it to work properly, it either crashes constantly or the exporter isn't working right for the thing's i'm trying to accomplish.




Posted on: 2016/10/26 17:29
Top
Re: Max 2016 Import / export script for .3db?

Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 33
Offline
I did make my stuff entirely in 3ds max without touching milkshape whatsoever. However there isn't exactly a push-export-button complete solution, as far as I know, exporters I had used have their own quirks too, but ultimately I was able to get things done and test modifications in-game relatively quick. Basically the process consisted of exporting into .cmp and then using UTFEditor to reassemble into .3db (if it's a single-part model) or restructure it for a proper .cmp. Granted I didn't do this entire process every time I had updated model, thankfully copy-pasting specific nodes like VMeshData and VMeshRefs to correct spots makes things a lot easier and doesn't screw up with other data like hardpoints, animations and embedded resources. Had also a few custom made tools to assemble animated parts together, but otherwise it was mostly 3ds max and utfeditor. Made ships, interior/exterior environment models, hitboxes, starspheres with vertex color and opacity as well. Don't need milkshape at all.

edit:

A while ago I started writing doc on cmp/3db internals, how data in nodes is related to other nodes and so forth. I had never finished the doc because quite frankly I realized there isn't really an audience for whom it would be useful, aside may be from one or two persons. Here's the google doc sharing link: google doc. I hope diagrams at least would prove useful to help manipulating mesh data.

Open in new window
Open in new window
Open in new window
Open in new window
Open in new window

Posted on: 2016/10/26 18:21

Edited by Treewyrm on 2016/10/27 1:29:37
Top
Re: Max 2016 Import / export script for .3db?

Joined:
2016/10/3 19:18
Group:
Registered Users
Posts: 34
Offline
That looks very helpful, thank's for sharing the additional guide. I tried a cmp exporter for max, but think possibly it was for an older version and crashed max upon loading.

All I am trying to do, is replace the existing asteroids in the game with refreshed versions so the guide should help me with that.

Posted on: 2016/10/27 12:10
Top
Re: Max 2016 Import / export script for .3db?

Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 33
Offline
I'm not sure which exporter is supported by latest 3ds max, if any. Like said I use old exporter version along with long outdated 3ds max version 2008. Thankfully they both work fine on modern windows and I have not encountered any significant issues (obviously do make iterative backups of your models as 3ds max sometimes has a tendency of taking out saved file during a crash). Exporter I used (attached below) is a slightly customized version to support vertex color and transparency I needed to mimic vanilla starscapes. It's buggy and unfinished but so long as used correctly it works fine, most certainly a lot better than milkshape expoter (which doesn't even export vertex normals correctly), just don't bother with it doing multi-part mesh arrangement, best do it yourself like mentioned in doc.

Converting single-part cmp to 3db is fairly easy, all you need is UTFEditor to open and find "*.3db" node in exported .cmp, look for VMeshPart (probably will be somewhere in "*.3db/MultiLevel/Level0", copy it and its VMeshRef into root node ("\", get rid of "Cmpnd" tree and "*.3db" entirely and save file as .3db.

Attach file:


zip maxCMPExport.zip Size: 306.41 KB; Hits: 49

Posted on: 2016/10/27 14:23
Top
Re: Max 2016 Import / export script for .3db?

Joined:
2016/10/3 19:18
Group:
Registered Users
Posts: 34
Offline
Thank's for that, I tried the modified cmp exporter and that's crashing my version of max so guess I'll need to find an older version.

Posted on: 2016/10/27 14:34
Top
Re: Max 2016 Import / export script for .3db?
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3419
Offline
I made ports for this for 3ds Max 2017 a few months ago, I'll make downloads available for the compiled plugins shortly (the source is on the Forge).

Posted on: 2016/10/27 15:47
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Top
Re: Max 2016 Import / export script for .3db?
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3419
Offline

Posted on: 2016/10/27 18:47
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Top
Re: Max 2016 Import / export script for .3db?

Joined:
2016/10/3 19:18
Group:
Registered Users
Posts: 34
Offline
amazing, thanks for that, hopefully I can start getting things done now, great help lads, cheers.

Posted on: 2016/10/27 19:01
Top
Re: Max 2016 Import / export script for .3db?

Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 33
Offline
@FriendlyFire:
Does this version support exporting vertex alpha/color? I seem to recall some 3ds max exporters floating around had this feature missing entirely.

Posted on: 2016/10/28 16:05
Top
Re: Max 2016 Import / export script for .3db?
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3419
Offline
I've only ported whatever was on the repository. If whoever made the vertex alpha/color changes did not commit them, then they aren't part of it. Since we don't use those at all, I don't know whether they're enabled.

Posted on: 2016/10/28 16:16
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Top