Jump to content
The Dark Mod Forums

OBJ Export proposal


Recommended Posts

I know DR can export into OBJ, but I recall it exports brushes as split planes.

 

Is it possible to add option to export brushes as convex manifold meshes (so that level in OBJ ends up being made of multitextured cubes/parallelepipeds) ?

 

Is it also possible to export patches as meshes (or as patches, if OBJ supports them) ?

 

Is it possible to export lights, entities, etc. as dummy/empty objects (or cubes of a small size) with specific name conventions ? (it would be easier to find them in 3D app)

 

Thanks!

Link to comment
Share on other sites

The code to export OBJ files is relatively simple and it's located in the plugins/wavefront folder. One could also write a Python script to export to OBJ format, based on the ASE exporter script. Anybody wants to have a go at this?

Link to comment
Share on other sites

  • 5 weeks later...

So I am guessing it's a no-go for this project? :/

 

Actually, I just got insane idea - I can export Doom 3 map from DarkRadiant into (as-is I guess, too bad patches don't get exported :/ ), then I can duplicate imported geometry in Blender, merge all faces (probably per room), re-UV map it, bake textures from original to the re-UV mapped model (to reduce draw calls), import that into Unity and bake lighting (which sucks, because Unity's lightmap baking tools are _slow_).

Edited by motorsep
Link to comment
Share on other sites

It would be nice if DarkRadiant could export chunks of mapobjects (exact positions/rotations), so they can be combined in other software. Currently a way I know of doing that is to use the Quake 4 editor, it can export selections of models to 1 OBJ, and even though that version of Radiant is fairly easy to obtain (you can combine the demo PK4s with the patch EXEs and launch the editor from the intro movies, and all freely available) there are a lot of funny-shaped eyebrows about the legality of doing that for "serious" projects.

Link to comment
Share on other sites

It would be nice if DarkRadiant could export chunks of mapobjects (exact positions/rotations), so they can be combined in other software. Currently a way I know of doing that is to use the Quake 4 editor, it can export selections of models to 1 OBJ, and even though that version of Radiant is fairly easy to obtain (you can combine the demo PK4s with the patch EXEs and launch the editor from the intro movies, and all freely available) there are a lot of funny-shaped eyebrows about the legality of doing that for "serious" projects.

 

I have Quake 4. But it would be nice to use DR instead of some unrelated game.

 

Why would you want chunks?

Link to comment
Share on other sites

If working with another engine and wanting to do as much as possible with Radiant in the workflow, placing all the mapobjects in Radiant and being able to export them "per scene" is important for minimising the number of batches and creating texture atlases for everything, instead of ending up with a sandboxed junkyard, like some other indie projects. If not most, dare I say, end up with thousands of batches and everyone too burned-out to want to fix the framerates when it's easier to tell everyone to just suck it up and buy a new PC. I'm not interested in making those same mistakes. It's also handy if there's some mass operation needed on large collections of mapobjects at once, like welding and smoothing, or for unwrapping shared UVs for baking lightmaps. It saves a huge amount of time. The engine I'm working with has LOD stages for static meshes so we can LOD _everything_, including the map itself, and we have a script that can automatically increase and decrease the tesselation of all patches in the entire map just for that purpose. Especially because of that, we need everything to be combined together as whole chunks.

If DarkRadiant could do this, it would not only be more convenient but peace of mind over any legal issues about trying to use it commercially.

Link to comment
Share on other sites

Well, OBJ goes into Blender. You can optimize it in Blender. That's why exporting each brush as single object is the best way to do it. You can pick and choose what to combine in Blender and the export pieces as FBX. It's super easy for DR devs and total freedom for artist in Blender. Win/Win.

Link to comment
Share on other sites

Sure, and mapobjects can be easily split in up by "separating vertices by material", so it's all the same once you're in Blender. I was mainly talking about placement and consistent workflow, to do as much mapping within Radiant as possible, and it's exactly why I'm willing to pay a nice chap to export light information (coords, proportions/rotations, colour, strength, etc) from a .MAP file to something that can be imported into both the engine and possibly Blender, via a Python script. Then it might be possible to set up lights in these Radiants too. This would be a lot better than just having the useless little diamond meshes floating in the air.

Link to comment
Share on other sites

The only other things I can imagine are particles, and that might be going too far, I don't know. Placement of lights and particles are not deal-breakers, in my opinion, they can be redone in other software/engines reasonably quickly.

Beyond that, you are talking about the carving/merging and vis-ing of the BSP/PROC format, and I might be way off about this, but I assume those are proprietary formats and can't be used without a license, else get into some legal problems with big companies. I know this is the case with Valve, but idTech is a little cloudy. This is why we need to be especially careful within Radiant to make sure all edges and vertices align, so we can smooth everything nicely, and also split up the maps into what I call "sectors" so the LOD can function and the whole thing can be portalised. Then the BSP/PROC compiling process isn't much use to us anyway, compared to the ability to LOD _everything_, which idTech could never do.

A small price to pay to be able to stick with beloved Radiant, because you just can't make 3D environments any faster, even very high-detailed ones using modern standards, into the millions of triangles.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
×
×
  • Create New...