TTimo / GtkRadiant

The open source, cross platform level editor for idtech games
http://icculus.org/gtkradiant/
Other
592 stars 156 forks source link

Auto caulk function #381

Open Pan7 opened 8 years ago

Pan7 commented 8 years ago

Would like to see an auto caulk feature like in Q4Radiant that sets all non visible faces to caulk.

ensiform commented 8 years ago

Is it necessary? You can set the default to caulk. Can't you? Also tech 4 doesn't render the non visible faces anyway which is different from tech 3.

Garux commented 8 years ago

This is douplicate issue: https://github.com/TTimo/GtkRadiant/issues/114 Additional comment on that... There was autocaulk function in JK2/SOF2 radiants, but caused problems, so was thrown away later + ydnar implemeted it in q3map2 (that is 'culled faces' stat in the compilation log afaik) Q4edit algorithm is one, ported from that old radiant. So all 3 are using similar math. The problem with it is: it doesn't cull ALL non visible faces. It only works, when face is occluded COMPLELETY by SINGLE occluder

In q3map2 occluder be brush, containing or touching the face; Process makes sense for detail brushes; structural ones surfs are being mangled while creating portals

In q4edit occluder be coplanar face only; also it takes in account its bbox, thus can cull visible faces, if map has something different to cuboids

Pros for autocaulking: -somewhat faster map cumpilation -can apply textures to whole brushes (bes quicker) -free map overview with filters->caulk

ensiform commented 8 years ago

What if there's an option to automatically use the system/caulk or common/caulk of the game/mod instead of "notex" by default (and also option to have all new brushes use that instead of selected)

Garux commented 8 years ago

That is definitely not obvious, but we be talking about auto caulk feature, which is, in other words, getting maps caulked without humans control involved (via computer calculations)

thunderpwn commented 8 years ago

that would likely fail.. think about caves and shit