Brush hacking post at OU

Tutorials and discussions about Mapping - Introduce your own ones!

Brush hacking post at OU

Postby JackGriffin » Wed Apr 03, 2019 3:09 pm

This was posted by a new member at OU named mcfarrel. It's an interesting read. (I cleaned up some of the sentences and spelling in case this gets copied around)
Spoiler: show
Checking some old UrealEd2 Wikis I run into interesting finding of Editor Commands usable for Brush replication and how these work.

When in need of brush replacement the most likely method called "Brush Hacking" would be used by vast majority of mappers. Manually editing the brush t3d structure is a powerful tool indeed but it has its limitations. There are easiest ways to do so.

People who were reading UnrealWiki at beyondunreal (unrealtexture.com nowadays if I am not mistaken) or similar pages came in contact wit two rather cryptic commands called:

ACTOR REPLACE BRUSH and MAP BRUSH PUT

Yet it seems both ed commands does exactly the same (despite the it is said the ACTOR REPLACE BRUSH command does not work - it does!) Both work in different ways!

In the general both editor commands replace selected brush with builder brush (or reshape selected brush to builder brush shape to be precise).

ACTOR REPLACE BRUSH
is suitable for replacing static geometry. Selecting one or more brushes one can easily replace selected brush (or multiple brushes) with the shape of builder brush. The new brushes are placed in the locations of selected brushes.
However it does not affect texture assignment, textures already assigned to brushes to be replaced are the textures that will be used on the new brushes. Only the brush geometry is affected.

It is possible to replace brushes of various solidity (e.g additive solid brush and semisolid brush in one step could be replaced and one that was semisolid is still semisolid but with new brush geometry). In exactly same manner it is possible to replace brushes both subtractive and additive in one step (replacing semisolid additive CSG and subtractive CSG brush selected brushed on one function call)

However this command does not work on movers! The resulting brush is just brush. Under Brush Properties>Brush>CsgOper it says it is CSG_Active as Mover should be. But still it is object of class Brush not Mover. It is shown as grey variant of builder brush and is existing as a junk in the map doing probably nothing (I'm not sure whether or not or how this junk brush does affect build tree yet).

MAP BRUSH PUT
On the other hand can replace exactly one brush at a time. New brush is positioned in the location where the builder brush is located.
The textures assigned to new brush are inherited from the builder brush. So when copying brush to builder brush by using MAP BRUSH GET command both brush geometry and textures are taken from the builder brush.

Solidity and CSG behaviour (additive/subtractive) is taken from existing brush to be replaced.

On the contrary to the ACTOR REPLACE BRUSH command You can replace movers. It is possible to change geometry and textures of existing mover (including additional mover types - subclasses of class mover - even user defined!) to different one.

What is really beautiful on this command is its capability to copy existing movers keyframes to new mover that is replicated. If the existing mover has any keyframes defined.

All Brush Properties defined it the properties tree of the original brush to be replaced are inherited by new replacement brush: Event, Tag, InitialState, Movement, Timing...
With two exceptions Location (X,Y,Z) and Rotation (Pitch,Yaw,Roll) - these are inherited from builder brush

McF


Proper LINK
So long, and thanks for all the fish
JackGriffin
Godlike
 
Posts: 3766
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Brush hacking post at OU

Postby Leo(T.C.K.) » Wed Apr 10, 2019 7:28 am

Thanks, I didn't know it could be used for a mover, that can be very useful and faster than redoing a mover completely...
Leo(T.C.K.)
Adept
 
Posts: 388
Joined: Sat Aug 13, 2011 10:26 pm


Return to Mapping

Who is online

Users browsing this forum: No registered users and 2 guests