Jump to content
The Dark Mod Forums

Recommended Posts

Posted

Hi. I'm a long-time Blender user and was wondering if it's possible, in part or in whole, to use Blender to make levels, mostly the level geometry. I understand that NPC, scripting, partitioning, etc would be something better done in DarkRadiant, but I'd like to use Blender to make the buildings, streets, terrain, etc and to place them.

Posted

Yes, this is possible but there are a few things that make it a little impractical.

1) Models do not seal the void so you need BSP brushes behind or inside models to properly seal a map. As I recall, there are doom 3 and quake map exporters that can export your initial block-out geometry as standard brushes so you could do both modeling and brushwork in blender. You’d just have to do it in phases

2) Visportal placement is crucial to performance so you will need to ensure you blender models are cut at portal boundaries so that you can setup brushes and visportals at choke points to prevent rendering outside the player view area

3) model geometry is often too complex for the physics engine. You will need to make invisible clip models or clip brushes that use a more simplified structure to ensure AI pathing and overall collision physics perform well.

4) Models need to be split at light boundaries. If a single light touches a model the engine will do light geometry calculation for the whole model. If enough lights hit a large model it can severely impact performance. Brushes will auto-split on light boundaries but often split in less optimal locations so it has become the convention to use func_static geometry to force brushes to split in the preferred locations

5) blender has no knowledge of specialty brushes like fog volumes, water, SEED auto dispersal etc

So it’s possible to do the majority of mapping in blender but ultimately you will need to use Dark Radiant to do the finishing touches

The current paradigm is to create modular content in blender and then assemble the modules together in Dark Radiant along with bsp caulking and vidportal placement 

 

  • Like 3

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Posted
1 hour ago, LeiGet said:

Hi. I'm a long-time Blender user and was wondering if it's possible, in part or in whole, to use Blender to make levels, mostly the level geometry. I understand that NPC, scripting, partitioning, etc would be something better done in DarkRadiant, but I'd like to use Blender to make the buildings, streets, terrain, etc and to place them.

nbohr1more already said most of it but if I can add anything, is that the AI traversal system called AAS (Area Awareness system) also requires brush's to work.  

Spoiler

This is what I know about it, others may correct me if something is wrong, AI will walk fine on a complex floor model made in blender but bellow the model, you need a brush for the AI to be able to traverse the space, the brush doesn't need to be accurate to the floor mesh and the AI doesn't need to contact the brush at all, so you can just put a flat brush a few units bellow the floor model, the AI just needs it there to know where to go next, because its AAS system (navigation system) totally ignores mesh's, is like they aren't there at all. This means AI afaik will also bump into mesh based static models in it's path, like headless chickens, if you don't enclose those, in a brush using the special monster_clip texture. My two cents.

 

Posted
15 hours ago, nbohr1more said:

4) Models need to be split at light boundaries. If a single light touches a model the engine will do light geometry calculation for the whole model. If enough lights hit a large model it can severely impact performance. Brushes will auto-split on light boundaries but often split in less optimal locations so it has become the convention to use func_static geometry to force brushes to split in the preferred locations

Is this still true now that 2.11 is out with this feature?

I've been wondering about whether this might open up the possibility to use larger models for things other than terrain, for example modeling a building at a time in Blender and then assembling them into a street in DR.  I'll probably at least test it out someday...

  • 1 year later...
Posted

Turns out long material names will be cut short on export...

Anyway, I made a simple staircase generator in Blender's "geometry nodes":

darkmod_stair_tool_v1.00.blend

It's probably best to stick to multiples of 4 (step count) for nice round values of the diameter.

  • set values
  • apply the modifier
  • separate as objects by loose parts
  • export stairs as "brush", side walls as "shell", top and bottom as "walls"

stair_tool_blender.thumb.JPG.86b8ddaa81e61e252211386c4eccd5d2.JPG

Here in the video side walls were exported with "walls" option, that's why they look like this.

 

It's only a model...

Posted (edited)

@kingsal

Just be careful, or you might get the NPCs confused. Here I just added "simple deform" modifier in Blender to taper the tower. I think the step at the top is too tall.

I recently saw NPC falling to his death in similar fashion in one of the missions.

 

Edited by Arcturus
  • Haha 1

It's only a model...

Posted

Here's a more extreme example, although it took some time to get it to work.

Probably not very practical. There aren't many cases where you would need BSP this complex. I was thinking perhaps if you wanted to show the vaulted ceiling both from the bottom and from the top.

Gda%C5%84sk_Bazylika_Mariacka_02.jpg

Salisbury_Cathedral,_top_of_vaulted_ceil

 

  • Like 1

It's only a model...

Posted

I still feel that brushes should be mostly reserved for simplified collision, monsterclip and map sealing \ caulk due to the inherent performance liabilities of making complex BSP designs.

However... I would love to see some wild texture bake across a large \ complex brush design that puts vertex blended transitions to shame. Downside is that the texture size would be pretty large which would cause it to look pretty nasty for low-end players who use image_downSize for performance.

  • Like 1

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Posted
4 hours ago, nbohr1more said:

I still feel that brushes should be mostly reserved for simplified collision, monsterclip and map sealing \ caulk due to the inherent performance liabilities of making complex BSP designs.

That's the idea. BSP should be simplified when compared to the visible geometry. But if it's too simple, then the visible geometry has to conform. I always looked for a way of building less boxy, angular maps and more organic ones. Keep in mind that those are experiments. I'm looking for the limits of the engine, I'm not saying that the whole map should be this complex. I also think that with this script, building in Blender is a viable option. Back in the Blender 2.7 days I remember I had to use two scripts - one for exporting to Quake .map and one to convert to a Doom 3 .map format. And the geometry would drift apart. It was pain in the ass. This is better.

It's only a model...

Posted

One more thing I noticed is that there is a tab in Object Properties where user can specify type of geometry for each object individually.

map_export_blender.jpg.a85327d309adc64b0e1cb30d0ea87dbe.jpg

This setting will override global export setting. This way one can export multiple objects at once, each as a different type.

It's only a model...

  • 3 months later...
Posted

I wish I saw this thread earlier! I created a cave mesh in Blender with very undulating walls and floor that the AI couldn't navigate. It took me a long time to painstakenly monster clip everything. It would have been awesome to export a simplified low-poly version as brushes to use as a monsterclip.    

  • Like 1

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

    • Goblin of Akenash

      Goblin-Secrets episode 2 is out now!
       
      · 3 replies
    • Airship-Ballet

      https://www.twitch.tv/airshipballet2 There was a mapping stream here, it's gone now.
      · 8 replies
    • peter_spy

      Stumbled upon a documentary on Enki Bilal, he is one of the most influential comic book artists of my adolescence. English auto-subtitles is rubbish, so you might need to brush up on your French
      · 3 replies
    • Goblin of Akenash

      Today I did a bit of an experiment! I wanted to see if I could get a dark radiant map into garry's mod, the quickest and dirtiest and not-workiest method is "OBJ2VMF" which converts .obj models into VMF files for hammer to then compile, the way its supposed to work is that you input a 6 sided cube and it turns it into a 6 brush room (not exactly ideal for this since that's not how TDM maps work, this honestly would have been a better idea with any thief game from 1 to the one from 2014 since they all work like that) so what ended up happening was that for every brush there was 6 brushes would be ontop of that almost inflating everything in the map like a balloon, map scale was also an issue that I couldn't fine-tune easily either so the scale is way off ontop of everything being inflated making the space inside the map very tiny! anyways heres the result of that and it looks almost nothing like footloose (plus I did add a bunch of random props in gmod for funsies and better visibility since the process involved replacing all the textures with dev ones that look very flat when in full-bright)

      https://streamable.com/ctmh58

      (streamable link will expire in 2 days but I'll have a spoken word version of this post along side the video and other fun images relating to the bsp inflation effect in the next "Goblin Secrets" video next month)
      · 0 replies
    • Frost_Salamander

      @taaaki Wiki seems broken. Main page works but click any link and:

      · 2 replies
×
×
  • Create New...