Results 1 to 5 of 5

Thread: .map to .obj

  1. #1
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts

    .map to .obj

    Is there any way to convert .map to .obj with all textures?
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  2. The Following User Says Thank You to RobsoN For This Useful Post:

    kubislav23 (26th February 2017)

  3. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    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)
    timescale 0.01

  4. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Make some epic geometry in CoD2Radiant:

    Click image for larger version. 

Name:	a.png 
Views:	65 
Size:	103.9 KB 
ID:	1298

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

    Click image for larger version. 

Name:	b.png 
Views:	62 
Size:	19.5 KB 
ID:	1299

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

    Click image for larger version. 

Name:	c.png 
Views:	63 
Size:	12.5 KB 
ID:	1300

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

    Click image for larger version. 

Name:	d.png 
Views:	59 
Size:	75.3 KB 
ID:	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:

    Click image for larger version. 

Name:	e.png 
Views:	62 
Size:	49.3 KB 
ID:	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.
    timescale 0.01

  5. The Following 2 Users Say Thank You to kung foo man For This Useful Post:

    kubislav23 (17th March 2017),RobsoN (19th March 2017)

  6. #4
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    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
    Last edited by RobsoN; 19th March 2017 at 14:19.
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  7. #5
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    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...Duty_2:_d3dbsp
    attempt to rebuild the brushes from the planes in a d3dbsp: https://killtube.org/showthread.php?...ion-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
    timescale 0.01

  8. The Following User Says Thank You to kung foo man For This Useful Post:

    RobsoN (27th March 2017)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •