PDA

View Full Version : .map to .obj



RobsoN
26th February 2017, 15:21
Is there any way to convert .map to .obj with all textures?

kung foo man
27th February 2017, 00:01
Might be the easiest: http://www.deep-shadows.com/hax/3DRipperDX.htm

IIRC CoD2Radiant could also export selected brushes to Maya 6 (unsure about that, but should be worth a look)

kung foo man
17th March 2017, 11:46
Make some epic geometry in CoD2Radiant:

1298

Go to Menu: Selection -> Maya Export...

1299

Just click Ok (file will be saved in maya/bin folder in CoD2 folder)

1300

Use the "source" command in Maya6 to import the .mel-file: source "H:\\DATA\\COD2MODDING\\SERVER\\bin\\maya\\radiantI mport.mel";

1301

The brush will be big as fuck, so that the maya camera will far-clip the geometry (and you might see nothing). Either google how to increase far-clip-range or just scale the model down to .01

For that, click ctrl-a to toggle the attribute editor and then just scale it down:

1302

Now you got it in maya, can edit it and just export as .obj

I have no clue about textures tho, probably the dxripper would handle that.

RobsoN
19th March 2017, 13:09
3d ripper doesn't seem to work with cod2 in my case. I just wanted to have cod2 maps in model structure to run them in other engines e.g. Unity. Anyways, thanks for that radiant export tip it could be useful ;) Maybe it's possible to export textures somehow as well

kung foo man
21st March 2017, 08:07
Use this to import .d3dbsp into Unity: https://github.com/CptAsgard/CoD2Unity

Use this to export that mesh to .obj: http://wiki.unity3d.com/index.php?title=ObjExporter More: https://www.google.de/search?q=unity+mesh+to+obj

The .d3dbsp format itself isn't that hard, if you intend to spend some time to analyze it.

Random stuff:

d3dbsp format: http://wiki.modsrepository.com/index.php?title=Call_of_Duty_2:_d3dbsp
attempt to rebuild the brushes from the planes in a d3dbsp: https://killtube.org/showthread.php?1984-D3DBSP-TriangleSoup-and-Brush-generation-in-Unity3D
d3dbsp decompiler from CoDEmanX and Daevius: https://github.com/kungfooman/CoD-BSP-Decompiler

Shouldn't be too hard to come up with something, there was alot of work invested already